Dark Sky Weather Forecast
Dark Sky is shutting down its API after being acquired per https://blog.darksky.net/dark-sky-has-a-new-home/. As such, this project is here for archival purposes, and it really shouldn't be utilized moving forward given the current status of things.
Get the embeddable weather widget you've always wanted. Customizable. Scriptable. Excellent.
This is a working demo. I haven't turned it into a distributable package yet.
The top widget is entirely customizable courtesy of Flot, and the data pulls from Dark Sky's API.
Example themes: Default, Day, and Night
The current setup is showing the current temperature, precipitation chart for the next hour, the next hour's forecast, and the day's forecast.
It starts by showing the weather in the lovely city of Cedar Rapids, but selecting a location on the right shows how the information can be updated dynamically (the list on the right is actually pulling from Dark Sky's list of "interesting storms" so they should have some precipitation).
- Set the chart up to use a logarithmic scale when reporting precipitation intensity. dBZ (what forecast.io uses) makes it so preventing the heavy precipitation doesn't get cutoff forces the light precipitation to be shown as a hairline. Might need to pre-convert measurements if graphing plugin doesn't provide logarithmic graphs.
- Restructure to make the layout flexible, elements customizable (which ones are shown, should the graph be the upcoming day or upcoming hour, should the graph be temperature or precipitation, etc.), visually adaptable, new elements (humidity, wind speed, timestamp of when it was last updated, etc.) and self-contained.
- Assess if Flot is the best graphing option available (was at the time, but it's been a while since that decision was made).
- Create a distributable package that can be relatively simple to implement on a site.
- Consider building out as WordPress sidebar widget (ability to call via function included) for those looking to avoid dealing with code.
Work-in-Progress - *Active*
- Rewrite to make a distributable package & utilize version 2 of the Dark Sky API.
Pre-release - April 1, 2013
- Removed PHP script in favor of JSONP call for getting data cross-domain.
- Updated to use version 2 of the Dark Sky API.
- Icons added using animated Skycons.
Proof-of-Concept - October 26, 2012
Download Not Yet Available
This is still a work-in-progress, and I don't want to release it in a state where it's buggy or difficult to use.
Email me to express your interest in this, and I'll jump it to the front of the line & get to work on it.