Okay, this was a lot of work! But give it a try:
Instructions:
- Download and extract the attatched
- Right Click →
Show Package Contents
and open weatherParser.js
in a text editor.
- Make accounts at DarkSky and MapQuest to get API keys. Paste the API keys into the quotes at the top of the file you opened. So the top of the file should look something like this:
Code:
// https://darksky.net/dev
var darkSkyApiKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
// https://developer.mapquest.com/user/me/plan
var mapQuestApiKey = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
//-------------------------------------------------------------------------------------
- Save and close
weatherParser.js
, then install Weather.wdgt
like any other widget.
It should work on the full gamut of Tiger through Mojave, but let me know if it doesn't. I'm also wondering if there are any locales or locations which cause the widget to break. If you find a problem, please go into the Mac OS X console, search for "weather", and copy paste any errors.
Possible weather conditions are
clear
,
partly cloudy
,
rain
,
snow
,
rain & snow
,
wind
,
fog
,
lightning
, and
freezing rain
. This leaves out without a few that were in the original (flurries, drizzle, haze, etc), but the DarkSky API doesn't have such granularity. Similarly, the moon will always be full at night.
Please let me know if you manage to spot lightning or freezing rain in the wild. These also aren't really in the DarkSky API, so I did a bit of a hack to make them work—but I couldn't find any locations with the right weather forecast to properly test them out.
If no one finds anything wrong, I'll package this into a nice DMG and look into sharing it a bit more widely.
Edit: Alpha down for now while I work to fix issues.