jangellx / MagicMirror

My variant of Michael Teeuw's Magic Mirror website
40 stars 14 forks source link

Dark Sky API #3

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, are you going to change the API to openweathermap when it shuts down?

jangellx commented 3 years ago

Sorry, but I don't plan on doing much else with this version of this project. It probably isn't super hard for someone to update the code to switch away from DarkSky, though. OpenWeatherMap has a DarkSky-like API (most of the same info, but since it's a different format, it's not a drop-in replacement), so that does seem like the simplest way to do it. I'm going to miss DarkSky, both the app and the API.

As for me, I re-implemented the whole thing as an iOS app that I run on used later-mdeol iPod touch. It uses the Apple calendars API, OpenWeatherMap, and features a UI for changing all the settings, selecting calendars and adding RSS feeds. I plug that into the TV I used as a smart mirror through an HDMI adaptor. It's more expensive than a Raspberry Pi or Intel Compute Stick (about $150 total for the iPod on eBay and an official Apple HDMI adaptor), but I've found it to be more reliable and easier to deal with overall. Also, it was an excuse for me to learn more Swift and SwiftUI.

It works pretty well, but it's a little rough, and I'm pretty sure I can't put it on the App Store while still requiring you to type in API keys for the MBTA and OpenWeatherMap, which probably means that I'd have to do a subscription model to cover OWM costs, and that's probably a non-starter for a lot of people.