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

I just realized I'm getting data for some place in Kansas. That's what it takes me to when I click my city name. Is there a more precise way to specify location?

Actually, its giving me that data regardless of what I put in the City name preference. Did I miss something completely about setting a location?

Edit2: I reread the notes in your original posting and I did indeed not have the Lat/long set correctly in my settings. I suppose you lose that when you do a soft reset (?)

It does use the hub's location coordinates. There is an enhancement request to allow an override of those and to use independently entered coordinates. I have not had time to work on that yet.

I do when I have done a soft reset. Just needed to re input them in the settings.

1 Like

This is helpful. It's an interesting approach. I'm glad that twilight was considered!

Does anyone have one of those fancy graphs for a lux reading over a day? I'm not sure how to make one for myself. Also - I don't have a paid account with darksky's api for that amount of polling

Aside from having echo play alert there is no way for it to play the exact weather alert is there?

I don't use echo. I just use Rule Machine and send it to my speakers and Pushover.

OCD kicking in, missing the "END-IF"?

2 Likes

Thanks. I have corrected it now.

2 Likes

:crazy_face:
:pray: Much nicer, i can sleep now :smiley:

1 Like

Hi - whats your speaker set up? Are they all standalone or are they connected through recievers?

Stand alone Fabriq Chorus and Fabriq Riff speakers using the Media Renderer driver here:

1 Like

[UPDATE]
V1.3.7
03/20/2020

Changes

  • Added the ability to override the Hub's location coordinates.
  • Corrected the data type for forecastHigh/Low from "string" to "number"

To override the Hub's location coordinates first select:
image
then click "Save Preferences"
then after the screen refreshes input your desired latitude and logitude:
image
image
then click "Save Preferences" again.

To revert back to the Hub's location coordinates de-select:
image
then click "Save Preferences"

You can now create multiple virtual devices and set each one to unique coordinates.

1 Like

Wow I missed that - a very cool date - 03 20 2020
three lots of 20

its already ruined here - it's 21/03/2020
no where near as cool. :slight_smile:

I’m not able to pull anything until I turn on override now.

@mik3:

Please help me to help you. Many of the developers of open source apps and drivers are hobbyist, such as myself. I do not write code for a living, I do it in my spare time because I enjoy it and thought I would share it for others that may enjoy the app/drive too. As such, my code is never perfect. While it often times works flawlessly on my specfic system, that is not always the case on other's systems. I would like to improve the code if I can, but I need the users help to do so. Given that can you answer a few questions that would help me help you?

You stated (in a withdrawn post) "Im getting the error now." It would be very helpful to know what that error is. Please copy/paste it so I can see what you see. In most cases the specfic error message gives a great of information to help me understand the issue and the location within the code to start debugging.

What does "I’m not able to pull anything until I turn on override now." Are you getting an error message? Please send that if you are. If no error message please explain what "I’m not able to pull anything" means. Walk me through the steps you are using to come to that conclusion.

Was it ever working? If it was working, what happened or what did you change just before it started the error/not working?

When you turned off override, did you then click on "Save Preferences" to save that setting?

Thank you.

4 Likes

I updated the driver, noticed lux wasn’t updating.

Check logs and it showed the following.

I then went into the driver and turned on override and it started working.

That indcates that Darksky is not returning data to the pull request. If 'Override' is not on then it defaults to the Hub's cordinates. What is your Hub's coordinates set to? Settings --> Location and Modes:
image
Make sure there are no leading or trailing spaces in the latitude and longitude fields. I can add code to remove those spaces, but if they are there now it will produce the error you are seeing.

[UPDATED]
V1.3.8
03/22/2020

Changes:

  • Added some additional logging messaging to show the full URL sent to Darksky if the data pull is not sucessful. This should make it easier to identify errors.
  • Added code to remove any 'spaces' typed or copied into the latitude or longitude corrdinate fields. Any spaces in these fields will cause an error in the Darksky data pull.

The exact same coordinates that are in the override section.

Load the updated code published this afternoon. That will show more detail in the log on the URL being sent to Darksky to help see if there is an issue there. The code works on my system, and I have not seen anyone else say it is not working for them so don't think it happens to everyone. We need to find out why your's isn't returning data and the first step it to look at what the driver is sending to request that data.