OS/2, eCS & ArcaOS - Technical > Programming
Desktop Weather
Jan-Erik Lärka:
Hello,
I've created a rexx script that should show you the current weather.
It has been designed to be used with PNG Desktop as it update the image (icon) and desktop text to describe the current weather and temperature.
The script download png images from the net and use a Smart Guide to guide you through different possible settings you may tweak.
Please do note that you shouldn't make to drastic changes nor to many images (icon) on the desktop as it should be rewritten to handle such situations better. Stop the script in the startup folder and restart it to update the desktop image icon right away. The program object in the startup folder handle updates and you have to delete it by hand if you want to get rid of the desktop image (icon) as well or it will try to recreate it all over again. ;)
Jan-Erik Lärka:
Example weather
Stop the corresponding script (in the startup folder) if the desktop image (icon) says "Locating..." and animate several times. It indicate that it can't connect and/or fetch data for the location. That is a situation that has to be addressed in the future.
Doug Bissett:
--- Quote ---I've created a rexx script that should show you the current weather.
It has been designed to be used with PNG Desktop as it update the icon and desktop text to describe the current weather and temperature.
--- End quote ---
I don't use the PNG desktop (it causes way too many problems), but the script seems to almost work anyway. The location, weather description, and temperature seem to be okay, but the sun icon always shows (even at night). When I find some time, I may see if I can modify it to use normal OS/2 icons.
The other "problem" that I had, was that the default location selected was 500 KM away from where I live. I was able to use the local coordinates to fix that problem. Is there anything that I can do to determine why it is so far off?
Jan-Erik Lärka:
I've only added a few of the required OS/2 icons (native OS/2 .ico files) to the weather.dll and it doesn't change them in the script (yet) because of that, so you'll only get the sun as it is now.
Anyone who feel like it can create a full set of nice icons (native OS/2 .ico files) can send them to me. ;)
The script use some services to try to locate you. The location is often based on the nearest station that your ISP allow that service to spot, so it may be your ISPs headquarters...
OpenWeather also need to have weather information for the area you live in.
Jan-Erik Lärka:
Ohh, make a copy of bigicons.txt and place it in the bigicons folder in case something happen... like you restart your computer and you have 1+ desktop widget.
Navigation
[0] Message Index
[#] Next page
Go to full version