Page 3 of 3

Re: FYI Apple buys dark sky

PostPosted: Tue Jul 05, 2022 9:49 am
by roquej
Awesome on the alerts via NOAA. Living in South Florida, alerts is the single most important feature I use of the weather plugins.

And yes, I did enter my cc info in OpenWeather and got the One Call API with alerts, but they are unruly. Also, not concerned about costs, as I don't expect to ever exceed the 1000 per day limit. OpenWeather is only used for the forecast in irrigation triggers. All the actual weather info is provided by a Davis weather station on the roof. The weather is PARTICULARLY important in South Florida.

JP

Re: FYI Apple buys dark sky

PostPosted: Tue Jul 05, 2022 12:21 pm
by DaveL17
I get it for sure. We live in tornado alley here. While our alerts might be fewer and farther between, you really don't want to miss any.

Re: FYI Apple buys dark sky

PostPosted: Sun Oct 09, 2022 2:34 pm
by zoff
roquej wrote:
Awesome on the alerts via NOAA. Living in South Florida, alerts is the single most important feature I use of the weather plugins.

And yes, I did enter my cc info in OpenWeather and got the One Call API with alerts, but they are unruly. Also, not concerned about costs, as I don't expect to ever exceed the 1000 per day limit. OpenWeather is only used for the forecast in irrigation triggers. All the actual weather info is provided by a Davis weather station on the roof. The weather is PARTICULARLY important in South Florida.

JP


Hi, how do you parse the forecast page? I only need a daily forecast to use for irrigation.
I have just stated using OpenWeather and through lots of trial and error I'm able to extract current weather but the forecast page looks a lot more complicated.

Thanks in advance

Re: FYI Apple buys dark sky

PostPosted: Sun Oct 09, 2022 2:55 pm
by DaveL17
My suggestion would be to use the GhostXML plugin. It will assign each data point to an individual device state. I would recommend using the Open Weather "One Call" API which gets everything at once. Set the device to Real Type and configure it for a JSON payload.

Use this URL -- replace `my_lat`, `my_long` and `my_api_key` with your information (and any other parameters you want to include):
https://api.openweathermap.org/data/2.5/onecall?lat=my_lat&lon=my_long&units=imperial&APPID=my_api_key

Once the device has downloaded the data, look for a device state that starts with "daily_X_". For example, `daily_1_temp_max` would be the maximum temperature for tomorrow (daily_0 is the current day's forecast).

Let me know if you need more help. Good luck!

Re: FYI Apple buys dark sky

PostPosted: Mon Oct 10, 2022 12:51 pm
by zoff
Thanks.
When I use onecall I get a message of "Invalid API key". I have to use either weather or forecast.
I have to look into this when I have time.

Re: FYI Apple buys dark sky

PostPosted: Mon Oct 10, 2022 2:11 pm
by DaveL17
Make sure you're using API v2.5 -- IIRC, I wasn't able to get the one call API to work with v3.0.

Re: FYI Apple buys dark sky

PostPosted: Tue Oct 11, 2022 11:05 am
by zoff
Hi, the problem is that I had to be subscribed to the "One Call by Call" plan.
Finally got GhostXML going, now the problem is that there is no item for daily_0_rain, only daily_1_rain, daily_4_rain and daily_5_rain. No daily_6_rain or daily_7_rain but that doesn't matter I only need daily_0_rain.
Any ideas?

TIA

Re: FYI Apple buys dark sky

PostPosted: Tue Oct 11, 2022 11:53 am
by DaveL17
Hmmm. I can't explain that. My API key is working for the v2.5 API. I don't think I have any kind of special plan and I definitely don't have a subscription.

Re: FYI Apple buys dark sky

PostPosted: Tue Oct 11, 2022 12:00 pm
by DaveL17
Hey, maybe I signed up for this plan:

Screen Shot 2022-10-11 at 12.56.36 PM-2.png
Screen Shot 2022-10-11 at 12.56.36 PM-2.png (103.19 KiB) Viewed 1939 times

Re: FYI Apple buys dark sky

PostPosted: Tue Oct 11, 2022 3:30 pm
by zoff
Hmmm. I can't explain that. My API key is working for the v2.5 API.


Hmmm, thanks! That gave me an idea, when I subscribed it seemed like API 3.0 was the only one available, since you mentioned v2.5 I just change 3.0 to 2.5 in the URL and its works now! Thanks.

Re: FYI Apple buys dark sky

PostPosted: Tue Oct 11, 2022 4:10 pm
by DaveL17
Good deal. Thanks for reporting back.