[Windows Mobile Development and Hacking General] Sid-Shrunk:
Weathericon showing Temperature and Condition

Weathericon showing Temperature and Weathercondition

Hi,

as I've announced some posts before, I've done a Mortscript(based on work of this thread) that replaces an IFonz icon by an weathericon(showing actual weather) and shows temerature as Icon name. At the moment the mort will replace the fourth Icon on first page(later will be configurable). As I've solved the problem of refreshing the iFonz screen, after getting new weather data automatically, I think, you'll like it.

What does the script do:

It downloads the actual weathercondition in a place you select and the forecast for two days from Yahoo.weather.com and saves them. It uses the internetconnection available(I've testet via wlan and activesync)

It canges the 4th iFonz icon on the first page to show the picture of the actual weatherconditions.

it changes iconname shown, to a combination of actual temp and forecast(highes and lowest temp).

It sets the icon, to start the Browser, you've chosen in the mortscript, and opens the yahoo page showing further weatherinformation to your selectet place. You can disable this if you like to start an other app.

It will retry to get weater every hour(but you can change the timeintervall to any time in mortscript.

If connection is not available, it will replace Icon with pic of saved forecast. if there is no saved forecast. For actual day it will show Icon "Not available"

What do you need/have to do:

Download and install the Mortscript-4.1PPC.cab

Download my Mortscript iFonzWeather.mscr (see end of post)

S2U2 has Weathericons included, but you can also download the ones i've created of them(complete set but not perfect). (see end of post)

Modify script with texteditor(at least change your location/descriped further down).

Start it manually by doubleclicking on script to start or put a lnk to windows\autostart(startup)\

Needed changes in script(iFonzWeather.mscr)

The mortscript should work without any changes on english devices. It is by default set, to use the weatherpictures of s2U2, if S2U2 is installed in "\program files\s2u2\gfx\weather\". Pressing the Icon will start Internetexplorer and show the weather of Rosenheim(Germany).

Here you see the settings you can change in an texteditor

Set location to your locationcode.For finding your locationcode, enter http://weather.yahoo.com/ and click trough the countries and the cities untill you find your place.

Then you'll see your needed location in the adressfield of your browser.

http://weather.yahoo.com/Rosenheim-Germany/GMXX0115/forecast.html

You want farenheit, not centigrade? Change units from c to f

You want other Pix? Change iFonzPixPath to the folder containing the pictures. The mortscript uses 0.png up to 47.png and nb.png for weather not available. So check if NA-Picture is called 0.png or NA.png and eventually change iFonzWNA from "0" from to "na"

You want iFonz to start an other browser(please Internetexplorer is a shame), for showing further weather information ? Set iFonzBrowser to an other browser.

You don't want iFonz to open a browser, but any other app when weathericon is pressed? Set iFonzOpenYahoo from true to false and enter Prog in iFonz directly in the icon settings.

So, this was a long Post. I hope you like it.

Download removed cause I've opened a

new Thread with new version http://xdaforums.com/showthread.php?t=439875