OS4 DepotLogo by invent 
(anonymous IP: 3.135.212.183,2257) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (602)
   o Document (24)
   o Driver (97)
   o Emulation (148)
   o Game (1011)
   o Graphics (500)
   o Library (118)
   o Network (234)
   o Office (66)
   o Utility (932)
   o Video (69)

Total files: 4398

Full index file
Recent index file

 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.5
Date: 28 Aug 2022
Category: network/misc
FileID: 12203
RSS Feed url: https://os4depot.net/modules/comments/rssfeed.php?file=network/misc/weather.lha

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

Comment by: DaveyW (60.234.236.153)At: 29 Aug 2022, 10: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, 12: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:

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


Enjoy!
 
 
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
 
 
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
 
 
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 © 2004-2024 by Björn Hagström All Rights Reserved