themoosman / weewx-ambientweatherapi-json

An AmbientWeather API driver for the weewx weather software using JSON.
14 stars 0 forks source link

Missing API values cause error #6

Closed uajqq closed 4 years ago

uajqq commented 4 years ago

When a given value is not present in the data returned from the API call (for me, “yearlyrainin” and “pm25”), the driver throws an error and will not build the packet. Is there any way to have the driver continue and just not include data if it isn’t present?

themoosman commented 4 years ago

Yeah, I've got that on the TODO list.

uajqq commented 4 years ago

Thanks so much for making this driver, yours is the only one that actually makes these stations usable!

themoosman commented 4 years ago

I've got a couple of ideas on how I can solve the problem. Now that you've opened the issue it will motivate me to sit my rear in the chair and implement the fix.