5,593,793 Members 45,186 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
i_konst
Old
(Last edited by i_konst; 22nd February 2011 at 02:56 PM.) Reason: Added link to latest build.
#1  
Member - OP
Thanks Meter 21
Posts: 68
Join Date: May 2006
Location: Athens

 
DONATE TO ME
Default [APP][22 Feb 2011] Mwunderground - Weather Underground application for Windows Mobile

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.
The Following 12 Users Say Thank You to i_konst For This Useful Post: [ Click to Expand ]
 
i_konst
Old
(Last edited by i_konst; 15th February 2011 at 02:33 PM.)
#2  
Member - OP
Thanks Meter 21
Posts: 68
Join Date: May 2006
Location: Athens

 
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!
 
glaucos
Old
#3  
glaucos's Avatar
Senior Member
Thanks Meter 1
Posts: 277
Join Date: Jan 2007
Location: Torino
No QVGA support?
 
i_konst
Old
#4  
Member - OP
Thanks Meter 21
Posts: 68
Join Date: May 2006
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by glaucos View Post
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.
 
AthenaLod
Old
#5  
AthenaLod's Avatar
Senior Member
Thanks Meter 26
Posts: 561
Join Date: Feb 2008
Location: Amman, Jordan
very nice interface... will give it a shot
Current smartphones:
Samsung Galaxy S3 (GT I9300) Stock 4.1.2 - Rooted
2012 Nexus 7 (16GB, WiFi): Stock 4.4 - Rooted
HTC TouchPro (AT&T Fuze): ROM: [15.May.2011] Energy WM 6.5, Build 21916 with Sense 2.5

Previous smartphones:
T-Mobile HTC HD2: Tytung's Dec. 9, 2012 NexusHD2-JellyBean-4.1.2-CM10 V1.3a (NAND)
HTC TyTN II (AT&T Tilt)
Palm Treo 600
HTC Wizard (Cingular 8125)
 
i_konst
Old
#6  
Member - OP
Thanks Meter 21
Posts: 68
Join Date: May 2006
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by i_konst View Post
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.
 
Kameirus
Old
#7  
Kameirus's Avatar
Senior Member
Thanks Meter 2122
Posts: 5,662
Join Date: Feb 2010
Location: Redding, California

 
DONATE TO ME
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
Please Use the Links below to ask questions and support for Pixeldroid roms

Q&A/T for [Dec 31,2013][KK4.4.2][PixelDroid AOKP ROM][Unofficial][Source Compile]

Q&A/T for [Dez 29,2013][JB4.3.1][PixelDroid SLIM ROM][Unofficial][Source Compile]

Rom [Jan 07/2014][KK4.4.2][PixelDroid CARBON ROM][Unofficial][Source Compile]
Kokotas black lk 1.5.1.9
4ext recovery
HSPL 3.03
sys part 500
 
i_konst
Old
#8  
Member - OP
Thanks Meter 21
Posts: 68
Join Date: May 2006
Location: Athens

 
DONATE TO ME
Quote:
Originally Posted by Kameirus View Post
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.
 
ai6908
Old
#9  
ai6908's Avatar
Senior Member
Thanks Meter 262
Posts: 3,593
Join Date: Nov 2006
Location: Land of Lincoln

 
DONATE TO ME
Wow, I love munder weather...thanks bro, will give this a whirl...
Hit "THANKS" button if you like the above post!!
Moto Atrix HD ROM - Batakang
HTC Flyer (WiFi) ROM - Stock Honeycomb3.2 No Root
My UnderVolt Tweak for cfX
 
ottoman96
Old
#10  
ottoman96's Avatar
Senior Member
Thanks Meter 2
Posts: 144
Join Date: Nov 2007
Location: Sky Harbor, Minnesota

 
DONATE TO ME
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:	89
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!
Device: HTC Surround (Surround)
Status: MP3 Player
ROM: Stock ROM
Radio: Stock Radio
SPL: N/A


Device: HTC Pure (Topaz)
Status: Spare
ROM: Energy ROM
Radio: 4.48.25.20
SPL: 2.51 Hard


Device: HTC Pure (Topaz)
Status: GPS Unit
ROM: Energy ROM
Radio: 4.48.25.20
SPL: 2.51 Hard


Device: HTC Vivid
Status: Primary Phone (Attempting To Root)
ROM: Stock Ice Cream Sandwhich
Radio: Stock

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

Advanced Search
Display Modes