What if you try NASA's database? It's used by an app called "Seasonality Core" https://getseasonality.com/core/, loads of information.
Thanks for the tip about the calendar, but I don't actually care to know what phase of the moon is in, I just want the widget to work correctly. It was a nice touch in the original. But if we can't get good data I guess the moon will just always be full...
Nice one!
Unfortunately, when I tried to create the MaQuest's API Key, it gives me this error
I think this is a bug in their form...
- There was a problem with your form submission. Please wait 2592000 seconds and try again.
- CAPTCHA session reuse attack detected.
I think there is an issue, it shows me the forecast starting in monday, but we are in tuesday...
Works great, thank you very much!The attachment in the first post has been updated to fix the timezone error reported by @madrag. Please update—this is one of those bugs that can result in inaccurate weather forecasts (by way of mismatched day of the week labels), and I really hate to think there are people out there getting misinformation because of me.
Hopefully this is the last bug of this sort? Unfortunately, handling time zones actually gets pretty complicated—there's the local time of your computer, the local time of the location your viewing, and UTC time all combining in different ways. Tracking which is in use at a given point in the code gets tricky.
The Weather dashboard widget that ships with Mac OS X 10.4 – 10.14 broke in 2019, when the APIs it uses went offline. Luckily, the widget is all just editable Javascript code, so I rewrote a portion of the code to use the freely-accessible DarkSky and MapQuest APIs. Then I rewrote it again a few months later to use the Weatherbit API after Apple bought DarkSky.
Here's my modified widget. It requires a small amount of setup:
This widget has been tested on 10.6 "Snow Leopard" and 10.9 "Mavericks", but it should run on the full gamut of Tiger through Mojave. Please let me know if it does not.
- Download and extract the attached file.
- Right click
Weather.wdgt
and selectShow Package Contents
.- Open the file
weatherParser.js
in a text editor.- Make accounts at Weatherbit and MapQuest to get API keys for each service.
- Paste your API keys into the quotes at the top of the file you opened. When you're done, the beginning of the file should look something like this:
Code:// https://www.weatherbit.io/account/create var weatherbitApiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // https://developer.mapquest.com/user/me/plan var mapQuestApiKey = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" //-------------------------------------------------------------------------------------
- Go ahead install the modified widget, either by double-clicking
Weather.wdgt
(recommended), or by replacing Apple's original version in/Library/Widgets/
(if having two copies on your machine would offend your sensibilities).
Please also post if you encounter problems, notice something wrong, or just find something that could improved.
Thats for catalina too?
The download in the first page has been updated to fix... wait for it... yet another timezone bug! ?♂️
Previously, the widget would sometimes show a purple "night" background during the day, and vice versa. Now that shouldn't happen... I think. If not, let me know...
I am from the exact opposite side of the world from the US and find that the widget shows the correct day/night here but seems to show Washington DC to be at night all the time.
Turns out that the Yahoo Finance stocks widget has stopped working now. Any chance of a fix, similar to the Weather Widget?
Is your Unit Converter widget still updating currency rates? Mine has stopped working and is stuck at "Retrieving data".That leaves ESPN, Movies, and the currency-conversion portion of Unit Converter as the only internet-connected stock widgets that are still working, and I think we can safely expect them to go down one-by-one. I would be interested in fixing Unit Converter when it goes down; should be relatively easy, and I use it a lot.
Is your Unit Converter widget still updating currency rates? Mine has stopped working and is stuck at "Retrieving data".