FYI Apple buys dark sky

Posted on
Thu Apr 02, 2020 8:14 pm
DaveL17 offline
User avatar
Posts: 5520
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: FYI Apple buys dark sky

Apologies mclass -- I took a quick look at both and didn't come up with global reach for either. My mistake.

I will take a closer look at them. Thanks very much for the suggestion!

Cheers.
Dave

p.s. There is *no* prerequisite that the API be US-based. None. Nada. Zilch. Just global.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jun 28, 2020 7:02 pm
Monstergerm offline
Posts: 164
Joined: Sep 01, 2009

Re: FYI Apple buys dark sky

Dave,
did you look at WeatherFlow? They have a free API and they are pushing into home automation and making this API better over time. Similar to WUnderground, they have a global network of really cool weather stations. You can access any public station, or your own station. The API pushes data every minute. They are working on improving the API to include forecast data and everything else their free iOS app offers. By the time DarkSky stops working this might be a pretty good service.
There is already an Indigo plugin that works nicely with WeatherFlow.

Posted on
Mon Jun 29, 2020 5:25 am
DaveL17 offline
User avatar
Posts: 5520
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: FYI Apple buys dark sky

I haven't looked at Weather Flow in detail, but their API should work with the GhostXML plugin. Personally, I think I've settled on OpenWeather (which also works well with the GhostXML plugin by the way). Given that the data is easily accessible through GhostXML, there's not a lot of added value in rewriting the Fantastic Weather Plugin yet again. To be honest, it's unlikely that I'll port FUWU to yet another service, but I haven't ruled it out completely.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Jun 29, 2020 2:50 pm
Monstergerm offline
Posts: 164
Joined: Sep 01, 2009

Re: FYI Apple buys dark sky

I have to checkout the GhostXML plugin.

OpenWeather now has a new One Call API that gives you for free 1000 calls per day. You get with just one API request Current Weather, Minute Forecast for 1 hour, Hourly Forecast for 2 days, Daily Forecast for 7 days. Seems to be a good service unless you want to target a particular weather station like WU or WeatherFlow has.

They also provide a detailed migration guide for how to switch from DarkSky to OpenWeather.

OpenWeather recommends no more than 1 call per 10 minutes since their internal data for geo locations or cities update every 10 minutes. So 1000 calls per day is plenty and allows you to place some extra calls for Historical weather data or other locations. Their website mentions that if you exceed your call limits they send you an email first and only after not getting any feedback will suspend your account You would then have to renew it.

BTW, for those people who need instantaneous windspeed data, WeatherFlow has an API that gives you real time wind data from your own station or any public station.

Posted on
Mon Jun 29, 2020 3:53 pm
DaveL17 offline
User avatar
Posts: 5520
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: FYI Apple buys dark sky

The GhostXML plugin has two device types--one that saves all the data as strings and another which tries to coerce the data into the most obvious type (boolean, string, float, etc.). I would recommend trying the second one which will greatly reduce the amount of work when using the data for logic. I've been testing it on the side with Open Weather and it seems to work well.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Jun 29, 2020 4:07 pm
Monstergerm offline
Posts: 164
Joined: Sep 01, 2009

Re: FYI Apple buys dark sky

I guessed correctly and chose the second device type.
I haven't done anything with logic, but what is the best way to display formatted data on control pages? With your regular weather plugin you had the option of displaying formatted data with a certain decimal precision and units, like mph. How do I now display 'Windspeed: 10.0 mph' on a control page without making this too complicated, i.e. Static text for 'Windspeed: ' combined with device state and caption, or first converting device states into Indigo variables with desired decimal precision and unit strings added?

Posted on
Mon Jun 29, 2020 5:02 pm
DaveL17 offline
User avatar
Posts: 5520
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: FYI Apple buys dark sky

You'll need to provide for the conversion yourself--the GhostXML plugin is agnostic and presents the data the way it's received. There are other plugins that do a great job of handling data conversion like this (like the Adapters plugin for example). Then you can link directly to the Adapters plugin device state. That's what I do in these circumstances.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 0 guests