- Add more logic to prevent location coordinates being null or provide better logging when that cannot be prevented (hub's location coordinates are null).
That seems to have done the trick, @Matthew. Thanks!
To help keep this thread code focused.
My initial conversion of this driver to use Open WeatherMap was just published. It is very Alpha stages still so be cautious. I started a separate thread:
uffff, I'm guessing if you dont already have this, then you arent getting it.
Our API service for existing customers is not changing today, but we will no longer accept new signups. The API will continue to function through the end of 2021.
Hi @Matthew - I can't get percentPrecip to work properly. On the device page, at the top under "current states", it reads 19 and never changes. This value of 19 is what gets set if I try to reference the parameter into a variable.
Direcrly below this in the weather summary text, it shows a value of 25...
In the data section at the bottom of the device page today it reads 25 (which matches the weather summary) and that value changes correctly on a daily basis after I poll the data again.
How to get the percentPrecip data to update properly into a variable instead of being 19 all the time?
First question is do you have that optional attrbribute turned on?
Thanks. Will check it again...
Yes, both options are on. I've polled again and refreshed. Still no change to the current states value for PercentPrecip. It remains on 19.
Okay, Thanks for checking. I'll look into it.
Since DarkSky was purchased by Apple, Apple has discontinued issuing new API Keys. If you had a valid API Key it is support to continue working through 2021. If you do not have one this driver will not work for you. Try this one instead:
I cannot replicate this? Mine changes in all appropriate places ('Current States', 'data', 'Tile' attributes). I looked at the code and do not see any obvious reasons for what you are describing.
Only suggestions are to clear your browser cache, reboot the Hub, reboot the PC.
Ok, thanks will try that. But it's been like this for a while on my system so not sure what it can be. Maybe I will try to reload the driver code. Anyway, will also try what you suggest. Sorry for the trouble and thanks again.
Reloaded the driver code and now it is fine.
Sorry to bother you.
Are you sure this is this driver? There is no 'getWeatherData' routine in this driver? Click on the 'dev:1227' in the log and see which driver these warnings are associated with.