OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP: 54.80.198.173,1191) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (533)
   o Document (21)
   o Driver (88)
   o Emulation (141)
   o Game (859)
   o Graphics (458)
   o Library (93)
   o Network (201)
   o Office (56)
   o Utility (807)
   o Video (61)

Total files: 3873

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 File comments for:  Network » Misc » weather.lha

weather.py

Description: weather env vars for your titlebar
Download: weather.lha
Version: 0.3
Date: 02 Jul 14
Category: network/misc
FileID: 8831
RSS Feed url: http://os4depot.net/modules/comments/rssfeed.php?file=network/misc/weather.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: daveyw (118.93.219.231)At: 09 Apr 2018, 08:35File version: 0.3
As of Good Friday, this doesn't seem to work anymore, the vars are not being populated. I don't know if BBC have changed the format of the RSS feeds.
 
 
Comment by: daveyw (210.246.15.12)At: 20 Nov 2014, 08:22File version: 0.3
Thanks, S bit not set.
 
 
Comment by: Severin (80.189.163.5)At: 19 Nov 2014, 16:20File version: 0.3
I have no idea what could cause your problem. have you tried weather-test.py?

> setenv weather.cfg 2193733
> weather-test.py
URL: http://open.live.bbc.co.uk/weather/feeds/en/2193733/observations.rss
Location: Auckland
Temperature: 14°C (57°F)
Wind Direction: West South Westerly
Wind Speed: 25mph
Humidity: 84%
Air Pressure: 1012mb Rising
Visibility: Good

maybe you need to use

run <>NIL: python c:weather.py

are the S and E bits set?
 
 
Comment by: daveyw (121.75.47.217)At: 15 Nov 2014, 23:26File version: 0.3
I can't seem to get this to work. I have the env weather.cfg set (2193733). I have RUN <>NIL: C:weather.py added to my Network-Startup. However, none of the envirnonment variables are being created, eg, getenv w_tmpc yields "object not found".
 
 
Comment by: Severin (146.90.180.148)At: 29 Jun 2014, 18:08File version: 0.3
All I can suggest is that you go to your own national weather websites and find their RSS feeds and edit my scripts to fit their feed, there's nothing very difficult in the scripts. You just need to adjust the search terms and offsets, or just use your closest major city.

That's the reason I released them with no restrictions on what you do with them.
 
 
Comment by: Danica (92.201.0.173)At: 29 Jun 2014, 16:57File version: 0.3
@ tommysammy: My town "Gummersbach" too
 
 
Comment by: tommysammy (79.195.210.198)At: 29 Jun 2014, 11:07File version: 0.3
Sadly that my town"Isselburg" is not supported
 
 
Comment by: Danica (92.201.42.82)At: 24 Jun 2014, 17:26File version: 0.2
YES! It works .... :-)
 
 
Comment by: Danica (92.201.42.82)At: 24 Jun 2014, 17:26File version: 0.2
YES! It works .... :-)
 
 
Comment by: Severin (146.90.180.148)At: 24 Jun 2014, 16:56File version: 0.2
You have to edit your worbench title in workbench prefs. eg.

Amiga Workbench %mgm MB graphics mem %mm MB other mem %e w_locn weather: %e w_tmpc, %e w_wspd %e w_wdrs, %e w_hmid %e w_visl

Or for dopus5:

DOpus Magellan %dv Free Fast: %ff Screens: %sc Temp: %evw_tmpb% Wind: %evw_wspd% %evw_wdrs% Humidity: %evW_hmid% Pressure: %evw_prsr% %evw_prds% Visibility: %evw_visl%

The readme lists all the env: names and what they do.
 
 
Comment by: Danica (92.201.42.82)At: 24 Jun 2014, 16:09File version: 0.2
The weather.cfg is empty. Only my City-Code is available. How can see my weather in Titlebar?
 
 
Comment by: Danica (92.201.142.223)At: 23 Jun 2014, 22:13File version: 0.2
Okay, thx.
Now, Python is loaded, but i have not Weather in my Titlebar. :(
 
 
Comment by: Severin (146.90.180.148)At: 23 Jun 2014, 20:55File version: 0.2
Your run command is also wrong, try

RUN <>NIL: AmigaOS:Internet/Wetter/weather.py
 
 
Comment by: Severin (146.90.180.148)At: 23 Jun 2014, 20:51File version: 0.2
The "SetENV Save weather.cfg 6296510" command creates the weather.cfg file in ENVARC:

Occasionally the script fails due to a bad responce from the server. a reboot usually fixes it.

Use the weather-test.py script to test your settings.

you can use the status command in a shell to check it's running:

>status
process x: c:python
Process x: Loaded as command: wait
 
 
Comment by: Danica (92.201.142.223)At: 23 Jun 2014, 19:53File version: 0.2
Hi,

your Script doesn’t work on my Peg with OS4.1.

<Copy the script anywhere you want.>

AmigaOS/Internet/Wetter/weather.py

<London is: http://www.bbc.co.uk/weather/2643743
Copy 264374>
http://www.bbc.com/weather/6296510

copied 6296510

<SetENV Save weather.cfg 2643743>

SetENV Save weather.cfg 6296510
Where is weather.cfg?


<Edit your s:network-startup file and enter the following at the end.

Run <>nil: <YourPath>weather.py>


RUN <>NIL: AmigaOS/Internet/Wetter/weather.py

After reboot weather.py doesn’t work ….
 
 
Comment by: zzd10h (93.10.96.114)At: 16 Jun 2014, 23:47File version: 0.1
Script very useful (since that FlipCLock is no more fonctional).

Thank you
 
 
Comment by: zzd10h (93.10.96.114)At: 16 Jun 2014, 23:47File version: 0.1
Script very useful (since that FlipCLock is no more fonctional).

Thank you
 
 
Comment by: zzd10h (93.10.96.114)At: 16 Jun 2014, 23:46File version: 0.1
Script very useful (since that FlipCLock is no more fonctional).

Thank you
 
 
Comment by: Severin (84.93.191.117)At: 16 Jun 2014, 21:29File version: 0.1
I have done version 0.2 with easier configuration. I will test it for a few days before uploading. If anyone wants to risk it sooner email
me at weather at x1k dot co dot uk
 
 

Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment