naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
314 stars 63 forks source link

New Weather Underground Implementation #72

Closed knuckleheadsmiff closed 5 years ago

knuckleheadsmiff commented 5 years ago

I've tested with the Eve iOS App, Apples Home App, and homebridge-config-ui-x.

Forecasts are no longer supported. These are the characteristics pulled from Weather Underground:

this.reportCharacteristics = [ 'ObservationStation', 'ObservationTime', 'WindDirection', 'Humidity', 'SolarRadiation', 'UVIndex', 'Temperature', 'DewPoint', 'AirPressure', 'WindSpeed', 'WindSpeedMax', 'RainDay' ];

The implementation is basically all new. This is my first NPM, and Git experience so please forgive me if I've done a no-no.

I also added a few extra debug lines to index.js to help e track down issues that should be useful to others.

I completely replaced the old implemention because that feed was completely turned off by IBM so old keys no longer worked (as of last March 2019.) So it was unnecessary to preserve that old code.

Attached is an example of my data from the Eve app.

IMG_2801

knuckleheadsmiff commented 5 years ago

I implemented this because it is more generally useful and the more broadly useful than Ambient Weather API that I was also interested in. I do happen to also push my data to the "Ambient Weather" cloud. but there API is slightly less robust on the back-end as they have had minor teething pains scaling up that new service.

This API is useful to anyone from a larger variety of manufactures that can post to WU (their posting of data API never changed.) So as long as someone can post they can get a new key to pull their own data...but not other peoples I believe (I could be wrong about that.)