Total files: 3899
Full index file. Download
Recent index file. Download
Support the site
[Show comments] [Show snapshots] [Show videos] [Show content] [Show crashlogs]
weather.py by Nick Clover Released as DWYWWI-Ware (do what you like with it) This is my first attempt at writing a python script with a lot of help from Andy Broad. It basically grabs an rss feed from BBC weather and converts it to envvars so you can display your local weather in the workbench or dopus5 titlebar. Installation: Copy the script anywhere you want. Configuration: You will need to edit the script to set your local area, to do this use odyssey to go to: http://www.bbc.co.uk/weather/ Search for your local forcast. when the page has loaded copy the numbers at the end of the url eg. London is: http://www.bbc.co.uk/weather/2643743 Copy 2643743 *Update V0.2* Open a shell and enter: SetENV Save weather.cfg 2643743 If you prefer you can enter the complete rss url as the script will look for 7 characters, if not found the entire envvar is passed without modification. This should allow you to use other servers but I can't guarantee that it will work as the format may be different. Running the script: Edit your s:network-startup file and enter the following at the end. Run <>nil: <YourPath>weather.py Env Vars: The following Env Vars are produced: w_locn - Name of locaction (UTF8 not supported) w_tmpb - temperature in both °C and °F w_tmpc - temperature in °C w_tmpf - temperature in °F w_wspd - wind speed w_wdrl - wind direction long format eg. North, South, East, West etc. w_wdrs - wind direction short version eg. N, E, W, S, NW, NNE, SSW etc w_hmid - humidity percentage w_prsr - air pressure in milibars w_prdl - air pressure direction long format, "Rising" or "Falling" w_prds - air pressure direction short format, "R" or "F" w_visl - visibility, long format w_viss - vilibility, short format E = Excellent, VG = Very Good, G = Good, M = Moderate, P = Poor, VP = Very Poor, N/A = Not Available History: V0.4 - Fixed a bug in weather-amigavars.py that prevented it setting Rising or Falling air pressure and stopped the script updating. V0.3 - Added support for amigavars module by Andy Broad. Kept V0.2 in the archive in case you don't have it installed. V0.2 - Added SetENV configuration. - Added version string. - Now has two scripts, weather.py and waether-test.py. The test version runs once for testing your config. - Reformatted readme to under 80 characters wide. V0.1 - Initial release.
|Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved |
Amiga OS and its logos are registered trademarks of Hyperion Entertainment