[Windows Mobile Development and Hacking General] Pfischi:
Hi Guys,

i wrote a small C#-Application for updating SpbWeather (maybe it should work also with other Weather-Applications) despite Proxy-Restrictions (like Vodafone, o2 etc.). This program emulates a normal Wap-Browser (with an exact User-Agent) and downloads a Weather-html-File of your choice to your PDA. In combination with Pico-WebServer and some little tweaks , SpbWeather updates with this local file.

First of all, it is a beta program. Use this program at your own risk. I will take no responsibilities for malfunctions or/and unintentional data traffic (and costs). It should be working fine, but nobody is perfect.

--------------------------------------------------------------------------------------

Ok, here is the Step-by-Step guide what you have to do:

1. Install the lastest Microsoft Compact .Net-Framework on your PDA (http://www.microsoft.com/downloads/...FamilyID=9655156b-356b-4a2c-857c-e62f50ae9a55)

2. SpbWeather

You need a actual version of SpbWeather (it should be with working with other Weather-Programs too, e.g. HTC Weather or PocketWeather)

3. Download the SpbWeather-Template from Spb-Weather-Forum (or somethere else) you want to use. I attached a working template for www.wetter.com

4. Edit the Template-File and search the line "open_url(.......)" . Edit the value in the brackets to open_url("http://localhost/wetter.htm", "GET"); (the name of the .htm - file its your choice).

5. Copy the .tpl - File in the templates - Folder of SpbWeather and add a new City with this edited Template.

6. Install Pico Webserver on your PDA ( http://http://www.tucows.com/preview/200784)

7. Start Picowebserver, goto Settings and edit the Alias Settings. You can choose the default path of the webserver or you can choose another path. But remember this path, we'll need it. Now start the Server.

8. Ok, now you need the WeatherUpdater. Just copy it to a location of your choice and start it. Go to "Settings" and configure the Programm. There are five entrys you can edit.

a. WebServer:

Enter the complete url of the weather site and your town: (wich matched to the template you use for Spb Weather). In my case the Url is: http://www.wetter.com/mobile/wetter.php?id=43367&type=WORLD (enter wetter.com/mobile and you can search your town)

b. Local Web-Server

Enter the Path to the Root-Directory of your Picowebserver (see 6.)

c. Name html-File:

Enter the Name of the htm(l)-file to download...it must matched with the name you edited in the template-File (see 3.)

d. Update on Start:

Downloads the html-Weather-File on Programstart

e. Update-Interval:

Choose an interval for updating the Weather-html-File. You can chosse values between 1 and 1440 minutes. (1min - 24h). Remember, it produces data traffic you have to pay for (or you have a flatrate etc., that's your own risk)) In my example, one update produces 15kb of data traffic. Check various templates with less traffic (maybe less weather info).

With runnig Picowebserver and WeatherUpdater in the background, you can now Update SpbWeather every hour.

What do do next:

-----------------

a. It would be fantastic to integrate the webserver functionality into WeatherDownloader. But i've to check out how to make a Webserver in C#. Maybe someone can help me :)

Please report any bugs or wishes for further versions.

b. automatic installation with a cab-file and AutoStart functionality

c. HowTo for other Weather Programs like HTC Weather and PocketWeather

d. and many many more features

Pfischi

P.S: Sorry for my English :)

------

Screenshots in Progress