OS4 DepotLogo by Alkaron 
(anonymous IP: 216.73.217.15,2529) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
   Markdown composer
 

 Categories

   o Audio (353)
   o Datatype (52)
   o Demo (214)
   o Development (632)
   o Document (24)
   o Driver (104)
   o Emulation (157)
   o Game (1069)
   o Graphics (519)
   o Library (124)
   o Network (248)
   o Office (75)
   o Utility (962)
   o Video (75)

Total files: 4608

Full index file
Recent index file

 Links

  Amigans.net
  Aminet
  IntuitionBase
  Hyperion Entertainment
  A-Eon
  Amiga Future


Support the site


 File comments for:  Network » Misc » weather.lha

weather.py

Description: weather env vars for your titlebar
Download: weather.lha
Version: 0.5
Date: 28 Aug 2022
Category: network/misc
FileID: 12203
RSS Feed url: https://www.os4depot.net/modules/comments/rssfeed.php?file=network/misc/weather.lha

[Back to readme page]   
Username: 
Comment:
Markdown help
Keyword*:Keyword image
[Refresh page]

Comment by: DaveyW (60.234.236.153)At: 29 Aug 2022, 08:38File version: 0.5

Thanks for the update, I kinda fixed it myself a few years back, but glad to see an "official" one.

 
 
Comment by: djbase (87.147.44.219)At: 22 Aug 2022, 10:27File version: 0.3

The script still works but the URL has changed. So edit the Python-Script and change the address in line 17 to:

[code]url = "https://weather-broker-cdn.api.bbci.co.uk/en/observation/rss/" + url[0:7][/code]

Enjoy!

 
 
Comment by: daveyw (118.93.219.231)At: 09 Apr 2018, 06: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, 07:22File version: 0.3

Thanks, S bit not set.

 
 
Comment by: Severin (80.189.163.5)At: 19 Nov 2014, 15: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, 22: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, 16: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, 14:57File version: 0.3

@ tommysammy: My town "Gummersbach" too

 
 
Comment by: tommysammy (79.195.210.198)At: 29 Jun 2014, 09:07File version: 0.3

Sadly that my town"Isselburg" is not supported

 
 
Comment by: Danica (92.201.42.82)At: 24 Jun 2014, 15:26File version: 0.2

YES! It works .... :-)

 
 
Comment by: Danica (92.201.42.82)At: 24 Jun 2014, 15:26File version: 0.2

YES! It works .... :-)

 
 
Comment by: Severin (146.90.180.148)At: 24 Jun 2014, 14: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, 14: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, 20: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, 18: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, 18: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, 17:53File version: 0.2

Hi,

your Script doesnt 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 doesnt work .

 
 
Comment by: zzd10h (93.10.96.114)At: 16 Jun 2014, 21: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, 21: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, 21: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, 19: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 © 2004-2026 by Björn Hagström All Rights Reserved