Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP][22 Feb 2011] Mwunderground - Weather Underground application for Windows Mobile

OP i_konst

21st January 2011, 07:42 PM   |  #1  
OP Member
Flag Athens
Thanks Meter: 21
 
68 posts
Join Date:Joined: May 2006
Donate to Me
Hi,

This is my first real Windows Mobile application.

Website:
Mwunderground on SourceForge

Description:
This is a weather application. It uses data from Weather Underground to show current weather conditions, forecast and weather alerts.

Features:
- Weather Underground data for Current Conditions, Forecast, Radar and Alerts
- Can use Personal Weather Station (PWS) as well as Airport station data
- Tower and GPS location
- Working version for VGA, WVGA, WQVGA, QVGA phones
- Sense Look and Feel for settings (thanks to SenseSDK)
- Free and Open-Source (developer contributions encouraged)
- S2U2 support with wildcards (see 2nd post)

License:
LGPL

Tested on:
HTC Raphael (Touch Pro, Fuze)

Screenshots:


TODO/Known Issues:
- Show All Data (to show both metric and standard units)
- Language Support
- CHT weather support
- Multiple Locations
- Color customizations
- More optimizations (especially xml parsing)
- Port to Android and maybe Windows Phone 7
- Others (suggestions welcome)?

Changelog:
v0.4: Added radar for US Cities (landscape mode using internal browser), customizable in registry (see 2nd post). Moved Settings button on top next to newly added Exit button. Displaying 5 days of forecast instead of 6 with slightly bigger text. Improved QVGA/WVGA support (bigger buttons for WVGA, fixed missing text for QVGA/WQVGA). Many bug fixes (value checking in forecast, GPS thread termination, station re-searching, duplicate location station search). Removed Exit button from Settings as now there is a main Exit button on top right.
v0.3: More error checking (locations and stations). Better resource management on exit. Moved Tower and GPS finding to a timed thread (timer is customizable in registry, see 2nd post). Fixed small bug with showing high and lows of today's rather than tomorrow's forecast. S2U2 support with wildcards in registry (see 2nd post). Better support for browser link (when clicking on logo). Changed chance of rain to chance of precipitation (moved some things around). Enabled stations picking when using GPS.
v0.2.3: Better error handling (more messages, more checks). Faster connection checking. Some Bug fixes (alerts on startup, lows and humidity on non-metric).
v0.2.2: Better error messages. Connection checking. Some GPS fixes. Exit button added on Settings.
v0.2.1: Fixed a bug with startup registry keys
v0.2: Added support for QVGA and WVGA devices
v0.1: Initial release

Download (cab):
v0.4
v0.3
v0.2.3
v0.2.2
v0.2.1
v0.2
v0.1

Latest Build (cab):
Here. Click download on latest revision.



Credits:
Weather Underground, Inc. (permission to use data)
eboelzner (SenseSDK)
OpenNetCF (Smart Device Framework - Community Edition)
Acoustic (at CodeProject, author of DeepCast)


Any feedback/suggestions very much appreciated.
Last edited by i_konst; 22nd February 2011 at 03:56 PM. Reason: Added link to latest build.
The Following 12 Users Say Thank You to i_konst For This Useful Post: [ View ]
21st January 2011, 07:47 PM   |  #2  
OP Member
Flag Athens
Thanks Meter: 21
 
68 posts
Join Date:Joined: May 2006
Donate to Me
Post Reserved
Hints:
- To update the data, either click on the button that is highlighted (i.e. if you are viewing Current data, click on the Current button again to update, etc.), or go to Settings and click Save Settings.
- For using GPS Location, when you enable the option on the settings, it will first try to find your location based on tower information (i.e. you cell provider towers). This does not block the system. Mine takes about 2-3 seconds. If it finds your location, it will show something like: Approx. Location: 37.861111,23.759126. Regardless of finding an approx location, the app will continue on to find your GPS location, based on your GPS receiver. This could take a while but it also does not block the system. Mine (with latest quick gps data) takes another 2-3 seconds. If it finds a GPS location, it will show something like: GPS Location: 37.861123,23.759145. GPS location obviously overwrites Approx Location. You could wait or save settings and come back to settings again later to check if the GPS location is found, at which point you can do save settings again to update with your exact location weather data. By default the app takes 60 seconds to look for a tower location and a GPS position. You can change the timeout in the registry (see Customizations).

Customizations:
Most of the settings data are stored in the registry key (HKCU) HKEY_CURRENT_USER\Software\Mwunderground. You can use Total Commander or Registry Editor to modify these values. Only do so if you know what you are doing. If something is broken, just reinstall the cab (which uninstalls first and clears the registry).

Radar Customization
To modify the Radar, you can edit the registry key HKEY_CURRENT_USER\Software\Mwunderground\RadarURL. The current value is:
Code:
http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=*RADARID*&brand=manmade&num=6&delay=50&type=N0R&frame=0&scale=1.000&noclutter=0&t=1297546449&lat=*LAT*&lon=*LON*&label=you&showstorms=10&map.x=400&map.y=240&centerx=400&centery=240&transx=0&transy=0&showlabels=1&severe=1&rainsnow=0&lightning=0&smooth=1
The *RADARID* will be replaced in the application by the proper RadarId based on your location, *LAT* and *LON*, Latitude and Longitude, which are replaced by the station's Latitude and Longitude location. You can modify the remainder of the values. For example, to change the speed of the animation, modify delay=50, to delay=75 (will slow it down by 25%), or to not show labels, set showlabels=1 to showlabels=0.

Tower and GPS connection timeout
To modify the Tower and GPS connection timeout, you can edit the registry key HKEY_CURRENT_USER\Software\Mwunderground\GPSTimer to the number of seconds you'd like. Default is 60.

SU2U Wildcards
To modify the S2U2 format, you can edit the registry key HKEY_CURRENT_USER\Software\Mwunderground\S2U2Forma t.
Code:
Possible S2U2 formats:
  ICONS=S, P, W, C
  If icon is S, P, W, format is for example: S|*NUMBER*|High|Low
  If icon is C, format is: C|*NUMBER*|MESSAGE
      *NUMBER* will be replaced by the appropriate icon number based on the ORIGINAL S2U2 icon numbers
          Weather Underground icon to S2U2 icon matching:
          clear=32(Day)/31(Night), cloudy=26/27, flurries=13, fog=20, hazy=21, mostlycloudy=28/27, 
          mostlysunny=30/29, partlycloudy=30/29, partlysunny=28/27, rain=12/45, sleet=7, 
          snow=16/46, sunny=32/31, tstorms=3/47, unknown=0
      MESSAGE= can be anything and you can use the following wildcards
                  *TEMP_C* is replaced by the current temperature in C
                  *TEMP_F* is replaced by the current temperature in F
                  *TEMP* is replaced by the current temperature based on your selection in settings (will append C or F)
                  *HIGH_C* is replaced by High temperature in C
                  *LOW_C* is replaced by Low temperature in C
                  *HIGH* is replaced by High temperature with units based on your selection in settings (will append C or F)
                  *LOW* is replaced by Low temperature with units based on your selection in settings(will append C or F)
                  *DAY_0_HIGH_C* is replaced by High temperature in C for day 0 (today) of forecast (same as *HIGH_C*)
                  *DAY_0_LOW_C* is replaced by Low temperature in C for day 0 (today) of forecast (same as *LOW_C*)
                  *DAY_1_HIGH_C* is replaced by High temperature in C for day 1 (tomorrow) of forecast
                  ...
                  *DAY_5_LOW_C* is replaced by Low temperature in C for day 5 of forecast
                  *DAY_0_HIGH* is replaced by High temperature with units based on your selection in settings for day 0 (today) of forecast (same as *HIGH*) (will append C or F)
                  *DAY_0_LOW* is replaced by Low temperature with units based on your selection in settings for day 0 (today) of forecast (same as *LOW*) (will append C or F)
                  *HIGH_F* ...
                  *LOW_F* ...
                  *DAY_0_HIGH_F* is replaced by High temperature in F for day 0 (today) of forecast (same as *HIGH_F*)
                  *DAY_0_LOW_F* is replaced by Low temperature in F for day 0 (today) of forecast (same as *LOW_F*)
                  ...
                  *DAY_5_LOW_F* is replaced by Low temperature in F for day 5 of forecast
                  *DAY_5_LOW* is replaced by Low temperature with units based on your selection in settings for day 5 of forecast (will append C or F)
                  *WEATHER* is replaced by the weather message (i.e. Clear, Heavy Thunderstorms and Snow, etc.)
                  *WEATHER_ICON* is replaced by the text for the weather icon (i.e. clear, mostlycloudy, etc.)
  EXAMPLES=
              C|*NUMBER*|*HIGH*/*LOW*
                  will display the icon with 12C/6C underneath (default)
              C|*NUMBER*|*HIGH_C*C/*LOW_C*C
                  will display the icon with 12C/6C underneath
              C|*NUMBER*|H:*HIGH_F*F/L:*LOW_F*F
                  will display the icon with H:65F / L:45F underneath 
              C|*NUMBER*|*WEATHER* (*HIGH_F*F/*LOW_F*F)
                  will display the icon with Clear (65F/45F) underneath
              C|*NUMBER*|*DAY_0_HIGH_C*C/*DAY_0_LOW_C*C - *DAY_1_HIGH_C*C/*DAY_1_LOW_C*C - *DAY_2_HIGH_C*C/*DAY_2_LOW_C*C 
                  will display the icon with 65F/45F - 75F/55F - 85F/65F underneath
              Go crazy!
Last edited by i_konst; 15th February 2011 at 03:33 PM.
21st January 2011, 11:47 PM   |  #3  
glaucos's Avatar
Senior Member
Flag Torino
Thanks Meter: 1
 
277 posts
Join Date:Joined: Jan 2007
More
No QVGA support?
21st January 2011, 11:51 PM   |  #4  
OP Member
Flag Athens
Thanks Meter: 21
 
68 posts
Join Date:Joined: May 2006
Donate to Me
Quote:
Originally Posted by glaucos

No QVGA support?

Once I get in the mode of changing things for WVGA, it'll probably not be too hard to make a QVGA one as well.
22nd January 2011, 12:53 AM   |  #5  
AthenaLod's Avatar
Senior Member
Flag Amman, Jordan
Thanks Meter: 27
 
565 posts
Join Date:Joined: Feb 2008
More
very nice interface... will give it a shot
22nd January 2011, 01:59 AM   |  #6  
OP Member
Flag Athens
Thanks Meter: 21
 
68 posts
Join Date:Joined: May 2006
Donate to Me
Quote:
Originally Posted by i_konst

Once I get in the mode of changing things for WVGA, it'll probably not be too hard to make a QVGA one as well.

QVGA support added.
Just grab the v0.2 cab.
22nd January 2011, 02:43 AM   |  #7  
Kameirus's Avatar
Senior Member
Flag Red Bluff, California
Thanks Meter: 2,293
 
5,848 posts
Join Date:Joined: Feb 2010
Donate to Me
More
doesnt work on my fuze
tried both cab files
after install i soft reset and try to run program but it crashes
before it even starts
22nd January 2011, 02:53 AM   |  #8  
OP Member
Flag Athens
Thanks Meter: 21
 
68 posts
Join Date:Joined: May 2006
Donate to Me
Quote:
Originally Posted by Kameirus

doesnt work on my fuze
tried both cab files
after install i soft reset and try to run program but it crashes
before it even starts

Strange. Does it give you any errors? Data plan/wifi working? .NET framework 3.5 installed? I'll do more investigating tomorrow based on your ROM.
22nd January 2011, 03:11 AM   |  #9  
ai6908's Avatar
Senior Member
Flag Land of Lincoln
Thanks Meter: 267
 
3,609 posts
Join Date:Joined: Nov 2006
Donate to Me
More
Wow, I love munder weather...thanks bro, will give this a whirl...
22nd January 2011, 09:13 AM   |  #10  
ottoman96's Avatar
Senior Member
Flag Sky Harbor, Minnesota
Thanks Meter: 2
 
144 posts
Join Date:Joined: Nov 2007
Donate to Me
More
Won't work on my Topaz (WVGA). Not sure if its the screen size not being supported or something else. .Net 3.5 is installed and i tried both CABs and same result.

Click image for larger version

Name:	ScreenShot1.jpg
Views:	90
Size:	43.7 KB
ID:	496711

A screenshot of the message I'm getting. thanks for the effort tho- I look foward to this program!

Post Reply Subscribe to Thread

Tags
app, forecast, radar, underground, weather
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes