Ultimate Weather Script Status
I have been mentioning for a while that I'm working on this Ultimate Weather script. I've had some time to actually write code this past week, so I figured I'd throw out some status for anyone who's interested in hearing what this thing will be able to do when complete.
This is turning out to be a very complex script, the list of command line arguments quadruples my other scripts and that list isn't complete.
Here is the list of list of features the script will support, what is highlighted in green is stuff that is currently working, yellow is in process, and red is not implemented. I'll update this post when features are complete.
Updates:
- Started adding in support for BBC Weather, automatic location grabbing will not work for this service, you will have to feed in the url, sorry.
- Accuweather support is 85% complete, don't have support for automatic image downloading
- Beta 03 has been out for quite some time, according to my google code site, there have been 582 downloads!
- Beta 02 has been sent out to the initial 4 Beta testers
- Don't seem to care about the Yahoo thing. Ultimately, I'm using Yahoo Query Language to pull the data from Yahoo and the other weather sites, so I don't think it is much of an issue. (I've even found Yahoo Developer forum posts pulling data from the 5 day site (
crzn22 reminded me of this)
- Haven't started looking into Weatherbug yet, and Weather Channel seems to be a pain, but using the stuff I learned from US National Weather Service might help parse those pages.
- Weather Underground is fully supported!
- US National Weather Service is fully supported!
- Yahoo! Weather is fully supported!
- Moved script to a modular approach over multiple files to ease maintenance
- Started adding in support for AccuWeather
Sneak Peak
Script Code - Hard Coding location to San Diego California and having it grab the current weather from Weather Underground
Code:
python ultimate_weather_parserv1.py -L ipinfodb -q full -T wunderground -g current -B -C "san diego" -S california -Z 92108 -O "united states"
Output
Code:
Condition: Mostly Cloudy
Temperature: 65.1°F
Feels Like: 65.1°F
Dew Point: 28°F
Humidity: 25%
Pressure: 29.92in
Wind: Calm
Gust: 0.0mph
Visibility: 10.0miles
---------------
Sunrise: 6:34 AM
Sunset: 7:09 PM
wunderground.com
Adding screenshot showing Weather Underground forecast set for 3 days, with the images displayed in separate geeklets. This is with automatic location grabbing for where I'm currently sitting (at home).
General Script Features
- Automatic Location Grabbing via http://ipinfodb.com/my_ip_location.php
- Automatic WOEID and LocationID (Weather.com) grabbing based upon Location
- Specifying your location via the command line (if auto-detection is incorrect) (need to specify city, state/province, country, and postal code otherwise it will not work)
Yahoo! Weather Support
- Yahoo! Weather: Current Conditions based upon WOEID (Automatic Location) (forecastrss based)
- Yahoo! Weather: Current Conditions based upon WOEID (Provided URL) (forecastrss based)
- Display Yahoo! Weather Current Conditions
- Yahoo! Weather: 2 Day Forecast based upon WOEID (Automatic Location) (forecastrss based)
- Yahoo! Weather: 2 Day Forecast based upon WOEID (Provided URL) (forecastrss based)
- Display Yahoo! Weather 2 Day Forecast
- Yahoo! Weather Condition Image download to /tmp for Current and 2 Day Forecast
- Yahoo! Weather 5 Day Simple Forecast (Automatic Location)
- Yahoo! Weather 5 Day Simple Forecast (Provided URL)
- Display Yahoo! 5 Day Simple Forecast
- Yahoo! Weather 5 Day Detailed Forecast (Automatic Location)
- Yahoo! Weather 5 Day Detailed Forecast (Provided URL)
- Display Yahoo! 5 Day Detailed Forecast
Yahoo! Weather Condition Image download to /tmp for 5 Day Forecasts - Not going to happen
Weather.com (Weather Channel) Support
- Weather.com Current Conditions (Automatic Location)
- Weather.com Current Conditions (Provided URL)
- Display Weather.com Current Conditions
- Weather.com 5 Day Forecast (Automatic Location)
- Weather.com 5 Day Forecast (Provided URL)
- Display Weather.com 5 Day Forecast
- Weather.com 10 Day Forecast (Automatic Location)
- Weather.com 10 Day Forecast (Provided URL)
- Display Weather.com 10 Day Forecast
Weather Underground Support (lots of good stuff on this site)
- Weather Underground Current Conditions (Automatic Location)
- Weather Underground Current Conditions (Provided URL)
- Weather Underground Condition Image download to /tmp for Current Forecast
- Display Weather Underground Current Conditions
- Weather Underground Multi-Day (1 to 10 Days) Forecast (Automatic Location)
- Weather Underground Multi-Day Forecast (Provided URL)
- Weather Underground Condition Image download to /tmp for Multi-Day Forecast
- Display Weather Underground Multi-Day Forecast
- Weather Underground Display Multi-Day Forecast Orientation: Horizontal/Vertical
- Weather Underground Display Current Forecast Options: Simple/Verbose
WeatherBug Support
- Capabilities not yet defined
US National Weather Service Support
- Current Conditions (Automatic Location)
- Current Conditions (Provided URL) - will work, but you have to copy exactly what the browser has for the url otherwise it won't work
- Display Current Conditions
- Display Current Forecast Options: Simple/Verbose
- Forecast at a Glance (Automatic Location)
- Forecast at a Glance (Provided URL)
- Display Forecast at a Glance
- Display Forecast at a Glance Orientation: Horizontal/Vertical
- Forecast Condition Image download to /tmp for Forecast at a Glance
- 7 Day Detailed Forecast (Automatic Location)
- 7 Day Detailed Forecast (Provided URL)
- Display 7 Day Detailed Forecast
AccuWeather Support
- AccuWeather Current Conditions (Automatic Location)
- AccuWeather Current Conditions (Provided URL)
- AccuWeather Condition Image download to /tmp for Current Forecast
- Display AccuWeather Current Conditions
- AccuWeather Multi-Day Forecast (Automatic Location)
- AccuWeather Multi-Day Forecast (Provided URL)
- AccuWeather Condition Image download to /tmp for Multi-Day Forecast
- Display AccuWeather Multi-Day Forecast
- AccuWeather Display Multi-Day Forecast Orientation: Horizontal/Vertical
- AccuWeather Display Current Forecast Options: Simple/Verbose
BBC Weather Support
- BBC Weather Current Conditions (Automatic Location)
- BBC Weather Current Conditions (Provided URL)
- BBC Weather Condition Image download to /tmp for Current Forecast
- Display BBC Weather Current Conditions
- BBC Weather Multi-Day Forecast (Automatic Location)
- BBC Weather Multi-Day Forecast (Provided URL)
- BBC Weather Condition Image download to /tmp for Multi-Day Forecast
- Display BBC Weather Multi-Day Forecast
- BBC Weather Display Multi-Day Forecast Orientation: Horizontal/Vertical
- BBC Weather Display Current Forecast Options: Simple/Verbose