profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/joeshaw/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

joeshaw/envdecode 183

Go package for populating structs from environment variables using struct tags

joeshaw/cuckoofilter 28

An implementation of Cuckoo Filters in Go

joeshaw/carwings 22

Go package and CLI tool for the Nissan Leaf Carwings API

joeshaw/banshee-web 7

A web interface to the Banshee music library

joeshaw/beagle 4

A desktop indexing and search system for Linux

joeshaw/carwings-homekit 4

HomeKit support for Nissan Leaf

joeshaw/cipherlist 4

Example code from https://www.joeshaw.org/abusing-go-linkname-to-customize-tls13-cipher-suites/

joeshaw/doc-extract 4

Go tool for extracting text from specially tagged Go comments

joeshaw/customerio 2

A Go package for the customer.io email service

joeshaw/busybox-nonroot-docker 1

Docker image based on busybox:glibc with "nobody" user with UID 1.

startedcarbon-app/carbon

started time in 5 days

issue commentfastly/terraform-provider-fastly

Unable to upload/update intermediary certificate for `fastly_tls_certificate`

@joshsouza Yep, we're going to work on automatically updating these certs so they have the longer-lived intermediate. I appreciate you looking out for everybody!

joshsouza

comment created time in 15 days

issue commentfastly/terraform-provider-fastly

Unable to upload/update intermediary certificate for `fastly_tls_certificate`

@joshsouza Quick update on the wrong intermediate: we've fixed that on our end so that uploading just the leaf Let's Encrypt certificate will get the right intermediate now (R3 issued by ISRG Root X1).

joshsouza

comment created time in 15 days

issue commentjoeshaw/myq

API change

It looks like there's a new version of the API that we'll need to support and that the old one has been discontinued. I've filed #3 to track it.

lyleberman

comment created time in 23 days

issue openedjoeshaw/myq

Support v6 API

It looks like the v5 API we were previously using has been discontinued and no longer works.

There is a new v6 API that is mostly the same, but requires OAuth for authentication. Some new info on that here:

https://github.com/hjdhjd/homebridge-myq/blob/master/src/myq-api.ts#L21 https://github.com/arraylabs/pymyq/issues/67

Looks like it's going to be a fairly involved update.

created time in 23 days

starteddeweller/switchaudio-osx

started time in a month

issue openedlostintangent/wikilens

Images support (or documentation on best practice)

This is a feature request for some native image support in the extension, perhaps with a syntax like ![[An image]] to embed it.

What I've done so far is create an images subdirectory and embed using <img src="images/foo.png" />. This is fine, but it'd be nice if the extension called that out as the Right Way to do image embedding.

created time in a month

startedArwalk/zig-protobuf

started time in a month

startedvk-rv/pvx

started time in a month

issue commentswiftbar/SwiftBar

Vertical alignment

Great idea. Tabs don't work, but spaces do.

joeshaw

comment created time in a month

startedawnumar/memguard

started time in 2 months

issue openedswiftbar/SwiftBar

Vertical alignment

I have a plugin that outputs data like:

A Foo       100
Some Bazzes 200
Quux        300,000

It does this using tabs.

I would like for that alignment to be maintained by SwiftBar. It isn't because SwiftBar uses a variable width font. However, it was aligned in BitBar. (Not sure the mechanism there.)

I'm not wedded to using tabs, though. I'd be happy to format things another way to get this kind of vertical alignment.

created time in 2 months

issue commenttailscale/tailscale

iOS client routing through exit node has no DNS

Neat idea, and it works well. The downside is increased latency of using a DNS server not in my local network (for example: DNS server in home network, exit node in DO, I am in a third location) but it's definitely something I can live with.

joeshaw

comment created time in 2 months

startednanopb/nanopb

started time in 2 months

push eventjoeshaw/myq-homekit

Joe Shaw

commit sha c6336d1ece4cf4347996be8b6f70a1a2e3655f37

update myq requirement

view details

push time in 2 months

push eventjoeshaw/myq

Joe Shaw

commit sha 87e31ab22cb4f38f877f1a35b8de1e87332728de

update liftmaster API key Fixes #2

view details

push time in 2 months

issue closedjoeshaw/myq

API change

Looks like Chamberlain changed their API today. Here's the new one: JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu I downloaded the myq-master src and edited myq.go with the new API. Then re-built and all is working again.

closed time in 2 months

lyleberman

issue commentjoeshaw/myq

API change

@lyleberman Do you know if there are similar changes for other manufacturers? As the code is today, there is one API key per manufacturer (liftmaster, chamberlain, craftsman, merlin).

I personally have a LiftMaster, and your updated key works for me, so I'll commit it. Thanks!

lyleberman

comment created time in 2 months

starteddlmiddlecote/sqlstats

started time in 3 months

push eventjoeshaw/carwings

jrester

commit sha f6594d3351b2b89ec32a065ad1dbdfc19c75644e

Fix #37

view details

Joe Shaw

commit sha 7ce4ec17db73a6ba59c716bfc7313c705a57413a

Merge pull request #41 from jrester/fix_37 As described in #37 the BatteryRemainingAmountWH of BatteryStatus may be an empty string which results in an error when the carwings response is unmarshaled. By parsing the string externally parsing the error is dropped and remainigWH is set to zero in case of an empty string.

view details

push time in 3 months

PR merged joeshaw/carwings

Fix #37

fixes #37

As described in #37 the BatteryRemainingAmountWH of BatteryStatus may be an empty string which results in an error when the carwings response is unmarshaled. By parsing the string externally parsing the error is dropped and remainigWH is set to zero in case of an empty string.

+3 -2

1 comment

1 changed file

jrester

pr closed time in 3 months

issue closedjoeshaw/carwings

BatteryStatus() fails because BatteryRemainingAmountWH is an empty string

Error

When calling BatteryStatus the function returns an error with the message ERROR: json: invalid use of ,string struct tag, trying to unmarshal "" into int. This happens because the BatteryRemainingAmountWH field of the response for my nissan leaf is an empty string which cannot be parsed to an valid integer.

Response

I am receiving this response:

{
   "OperationResult":"START",
   "OperationDateAndTime":"2021\/06\/01 16:39",
   "BatteryStatus":{
      "BatteryChargingStatus":"NOT_CHARGING",
      "BatteryCapacity":"10",
      "BatteryRemainingAmount":"9",
      "BatteryRemainingAmountWH":"",
      "BatteryRemainingAmountkWH":""
   },
   "PluginState":"CONNECTED",
   "CruisingRangeAcOn":"78848.0",
   "CruisingRangeAcOff":"85888.0",
   "TimeRequiredToFull":{
      "HourRequiredToFull":"3",
      "MinutesRequiredToFull":"0"
   },
   "TimeRequiredToFull200":{
      "HourRequiredToFull":"1",
      "MinutesRequiredToFull":"30"
   },
   "NotificationDateAndTime":"2021\/06\/01 14:39",
   "TargetDate":"2021\/06\/01 14:39"
}

Possible Fix

A possible fix could be to remove the struct tag which tries to unmarshal the string and instead check afterwards if the string is empty and set the value of RemainingWH for BatteryStatus accordingly. I would be happy to implement a fix, if you approve.

closed time in 3 months

jrester

pull request commentjoeshaw/carwings

Fix #37

Excellent, thank you!

jrester

comment created time in 3 months

startedjedisct1/rust-sealed_box

started time in 3 months

startedjedisct1/rust-ffmpeg-wasi

started time in 3 months