[RELEASE] DarkSky.net Weather Driver, no PWS Required

[UPDATED]
V1.3.9
03/26/2020

Changes:

  • Add more logic to prevent location coordinates being null or provide better logging when that cannot be prevented (hub's location coordinates are null).
1 Like

That seems to have done the trick, @Matthew. Thanks!

1 Like

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:

4 Likes

[UPDATED]
V1.4.0
04/19/2020

Changes:

  • Included code cleanup and optimizations that @nh.schottfam provided for the new OWM driver, that also work in this driver.
  • Improved log messaging when 'Extended Logging' is selected.
  • Various other code clean ups and bug fixes.
3 Likes

[UPDATED]
V1.4.1
04/20/2020

Changes:

  • Refactored much of the code.
  • Made the driver compatitible with the Hubitat Package Manager in the 'Integrations' category.
1 Like

uffff, I'm guessing if you dont already have this, then you arent getting it.

API

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.

As part of this transition, use of Dark Sky by Apple is subject to the Apple Privacy Policy, which can be found at apple.com/privacy.

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?


If you don't have it turned on, then it will not update in the 'Current States' or change for any dashboard or Rule Machine. If you do have it turned on, then I need to fix something. Let me know which, please.

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.

1 Like

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.
Thanks again!

1 Like

Great!

1 Like

Since latest update V1.4.1, receiving following errors


Thx

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.

Sorry, weather.gov
Thx

1 Like