FYI Apple buys dark sky

Posted on
Thu Apr 02, 2020 8:14 pm
DaveL17 offline
User avatar
Posts: 5943
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: 188
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: 5943
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: 188
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: 5943
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: 188
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: 5943
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]

Posted on
Mon Nov 30, 2020 8:37 am
cesarvog offline
User avatar
Posts: 96
Joined: Aug 13, 2016
Location: Brazil

Re: FYI Apple buys dark sky

DaveL17 wrote:
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.


Many thanks for both Fantastic Weather and GhostXML plugins. I've been using Fantastic Weather w/ DarkSky data for some time and always thought it to be the superior alternative in the Indigo plug-in store for obtaining weather information. Unfortunately, with Apple buying DarkSky, and you advising users to search for an alternative, I decided to heed your recommendation and give GhostXML w/ openWeatherMap.org data a try. Worked like a charm on first try!

Once again, thanks for you hard work enhancing Indigo with your great plug-ins.
Last edited by cesarvog on Mon Nov 30, 2020 10:24 am, edited 1 time in total.

Posted on
Mon Nov 30, 2020 9:26 am
DaveL17 offline
User avatar
Posts: 5943
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: FYI Apple buys dark sky

Thanks for letting me know. I do hope that Apple will reverse course and keep the API for those of us that aren't using the data for commercial purposes--perhaps with an API usage limit that would stop any commercial use from being viable. Even 100 calls a day would suit my needs (that'd be roughly every 15 minutes which would be plenty). I'm not holding my breath; however.

I've been keeping an eye on OpenWeather for my own use and plan to use the GhostXML plugin with it. My future plans--probably when the DarkSky API goes down for good--is to sunset WUnderground, WUnderground7, WUnderstation and Fantastic Weather. I plan to leave the code on my GitHub for the foreseeable future (just in case).

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 1 guest