PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Pocket PC Themes (http://forum.ppcgeeks.com/forumdisplay.php?f=31)
-   -   [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions) (http://forum.ppcgeeks.com/showthread.php?t=68289)

storyr 05-11-2009 08:31 PM

[Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
8 Attachment(s)
Introducing WP-Activate (v 2.0)

A self-updating WeatherPanel widget widget for Mobile Shell 3.0.


http://www.venusware.net/images/widg...s/screen42.png

Overview
  • Displays current weather condition data (and icon) inside Mobile Shell widgets
  • Weather information is extracted from WeatherPanel (source: weather.com)
  • The widgets are extensions of the Mobile Shell Link widget
  • The overall solution is a combination of Mobile Shell, Mortscript, Total Commander and custom code written by me (WP-Activate.exe)
Widget Features
  • Shows current weather conditions on your Lifestyle screens
  • Multiple widgets, with different sizes and layouts
  • Opens WeatherPanel when activated
  • Configurable widget refresh rate
  • Uses WeatherPanel's hourly forecast data if current data expires (after one hour without an update)
  • No need to manually update qa_layouts.dat or the registry (see WidgetInjector)
  • Works fine with VGA and QVGA (sorry, I haven't tested WVGA or WQVGA)
Prerequisites
  • Spb Mobile Shell 3.0
  • WeatherPanel must be installed and running in your Today screen (get it HERE)
  • Must use custom WeatherPanel theme (not default themes)
Diffuculties/Shortcomings
  • Currently shows data for only one city (the default city configured in WeatherPanel). Of course, you can always scroll through all of your cities after opening WeatherPanel.
  • Mobile Shell does not display partial transparency in icons. So basically, most weather icons look like crap. To counteract this problem, I made up a new set (using Yahoo icons) - with backgrounds.
  • I couldn't figure out how to align the text (it may not even be possible with the link widget). So, it's always centered.
Layouts
http://www.venusware.net/images/wpa/screen14a.png-http://www.venusware.net/images/wpa/screen14b.png
On the upside - there's a lot of potential here! :mrgreen:

UPDATES
Code:

May 24, 2009 6:10 PM
  + Revamped "widget injector" to use Rar instead of Total
    Commander (thanks to Strops over at Spb Club)
  + Streamlined install - widget injector and configuration are
    now part of the initial CAB install.

May 20, 2009 10:00 PM
  + Added new icon set (Flat White Icons)
  + Added two methods for scheduling refreshes. This is to
    address issues some have had getting the widgets to
    refresh they're data.
  + Updated configuration script - can now pick icon set and
    method for scheduling refreshes. See 2nd post for screen-
    shots.
  + Tweaked the Pro widget a little - increased font size and
    moved icon a little higher.

May 15, 2009 7:50 AM
  Made the compact widget even more compacter ;)

May 14, 2009 11:30 PM
  Added compact layout. Repackaged widget xml into it's own
  standalone xml file (WpWidgets.xml). Injector now has less
  work to do.

May 14, 2009 11:20 AM
  Updated the WidgetInjector... yes again. Got a little over-
  zealous with the "kill FingerMenu" change.  This version should
  work fine with FingerMenu running, and hopefully will work with
  the HTC menu enhancement too.

May 13, 2009 7:48 PM
  Tweaked the WidgetInjector again. The issues had nothing
  to do with timing, but rather menu enhancement software. 
  This version kills FingerMenu before starting the widget injection
  process.

May 12, 2009 7:30 AM
  Tweaked the WidgetInjector. It's not working for some folks,
  so I slowed it down to see if that helps.

More information on the following posts...
|
v

storyr 05-11-2009 08:31 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Installation Instructions

1. Start in Mobile Shell

2. Download WP-Activate.CAB file, copy it to your device, and install it.
http://www.venusware.net/images/wpa/screen18.png-http://www.venusware.net/images/wpa/screen19.png-http://www.venusware.net/images/wpa/screen20.png-http://www.venusware.net/images/wpa/screen21.png-http://www.venusware.net/images/wpa/screen22.png-http://www.venusware.net/images/wpa/screen23.png-http://www.venusware.net/images/wpa/screen24.png-http://www.venusware.net/images/wpa/screen25.png
3. Exit Mobile Shell, then restart it (or soft-reset).
http://www.venusware.net/images/wpa/screen27.png-http://www.venusware.net/images/wpa/screen28.png
6. Go to a Lifestyle page and select Add Widget. You'll now see WeatherPanel widgets in the Indicators section.
http://www.venusware.net/images/wpa/screen29.png-http://www.venusware.net/images/wpa/screen30.png-http://www.venusware.net/images/wpa/screen31.png-http://www.venusware.net/images/wpa/screen32.png
7. Enjoy!

storyr 05-11-2009 08:32 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Like is said in the first post, Mobile Shell will not display partial transparency in icons (it shows black). To counteract, I made this set of cropped Yahoo icons with backgrounds:

http://www.venusware.net/images/wpa/icons.png

New set added. Flat White icons:

http://www.venusware.net/images/wpa/icons2.png

storyr 05-11-2009 08:32 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Tips and Tricks

Change what the widgets do when activated
Navigate to the following registry keys:
[HKEY_LOCAL_MACHINE\Software\Spb Software House\Shared\Spb Menu\Customize2\WeatherPanel\Widget1]

- and -

[HKEY_LOCAL_MACHINE\Software\Spb Software House\Shared\Spb Menu\Customize2\WeatherPanel\Widget2]
Change the "File" string value to point to whatever you want, such as you Second Today link or the Show Today link.

Show Today link = \Windows\Start Menu\Programs\Spb Mobile Shell\[Show Today].lnk
Move the WeatherIcons.dll somewhere else
The WeatherIcons.dll is fairly large. If you'd like to move it to your storage card - go ahead and move it, then navigate to the following registry entry:
[HKEY_LOCAL_MACHINE\Software\UranusWare\WP-Activate]
Change the "IconSource" string value to point to it's new location.
Change the display units to Fahrenheight or Celcius
The widgets display the units that are configured in WeatherPanel. Change the WeatherPanel settings to adjust the units.

See THIS post for more info.

CozBoogie 05-11-2009 09:25 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Ooooooooo....you're such a tease! Can't wait!

late,
Coz

safety officer 05-11-2009 10:25 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
That what I have been waiting for, can't wait any more. Thank you so much.

HBOOT 05-11-2009 11:04 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Thank you sir, we ll try. I assume this can run with other weather app,say spb weather...

storyr 05-11-2009 11:08 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by hbenz2008 (Post 909663)
Thank you sir, we ll try. I assume this can run with other weather app,say spb weather...

Yea - it's completely independent of Spb - requires WeatherPanel to be running on your Today screen (or in Second Today, Ultimate Launch, etc.)

Spb will probably release a better weather widget soon, making all this work moot... :angry7:

HBOOT 05-11-2009 11:13 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Cool man, I for one am ok with spb weather (not the one built in MS3) I dont mind having current temp showing up...dowloading now:mrgreen: I think an official MS3 upgrade should be coming up soon as I believe they are responsive

darren.wlsn1 05-11-2009 11:29 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
http://img144.imageshack.us/img144/6986/screen02m.png storyr, im getting this error on a stock tp. any ideas?

HBOOT 05-11-2009 11:38 PM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
I get loading weather panel for 1 sec once I try to configure/activate, and loading wether panel for a sec and nothing else,mmmm stock TP here...could it have something to do with the fact that I have three icons in the bottom of MS3..opposed to two ...
Widget was added sucessfully...

weather panel not found...

darren.wlsn1 05-12-2009 12:02 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
storyr, im getting that error i posted when i try to inject widget.

storyr 05-12-2009 12:06 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by hbenz2008 (Post 909749)
I get loading weather panel for 1 sec once I try to configure/activate, and loading wether panel for a sec and nothing else,mmmm stock TP here...could it have something to do with the fact that I have three icons in the bottom of MS3..opposed to two ...
Widget was added sucessfully...

weather panel not found...

Is WeatherPanel installed into a Today plugin? Also, it won't work with default themes - it has to be an installed theme. I should have mentioned that...

Quote:

Originally Posted by darren.wlsn1 (Post 909798)
storyr, im getting that error i posted when i try to inject widget.

Crap... Can you move that error page out of the way a little so I can see what's behind it?

darren.wlsn1 05-12-2009 12:11 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
http://img149.imageshack.us/img149/173/screen01o.pngi also have a stock tp with stock tf theme or does theme on ms3 have to be custom? my ms3 theme is custom, is that ok? ill post another ss also. thats behind the error.

HBOOT 05-12-2009 12:17 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Today plugin not installed and it is UNCHECKED from Today/item...trying...ERROR: Weather panel not found

storyr 05-12-2009 12:19 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909817)
i also have a stock tp with stock tf theme or does theme on ms3 have to be custom? my ms3 theme is custom, is that ok? ill post another ss also.

While working the the Total Commander zip/unzip stuff, one of my concerns is that the script depends on the first file that starts with 'w' to be the Widgets.xml file. Maybe you could post your qa_layouts.dat file so I could have a look at it...

On second thought, I doubt if that's it...

darren.wlsn1 05-12-2009 12:20 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
http://img359.imageshack.us/img359/4149/screen02e.png looks like something loaded.

storyr 05-12-2009 12:27 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909834)
looks like something loaded.

Yea, but based on the error you saw, I doubt if you have working widgets. Do you?

darren.wlsn1 05-12-2009 12:28 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
wheres the file you want me to post? im also only using ppc for this, sorry.

storyr 05-12-2009 12:30 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909849)
wheres the file you want me to post? im also only using ppc for this, sorry.

It's in your Mobile Shell installation folder. But hold off for now, I'm checking something else...

darren.wlsn1 05-12-2009 12:32 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by storyr (Post 909848)
Yea, but based on the error you saw, I doubt if you have working widgets. Do you?

all other widgets work on ms3 including the first version of the app. the non temp one.

HBOOT 05-12-2009 12:35 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
I am on stand by...lol. Uninstalled from TP, ran it on Mogul , same error: Weather panel not found.... Dallas may win...

storyr 05-12-2009 12:36 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909861)
all other widgets work on ms3 including the first version of the app. the non temp one.

Right - I meant only the WeatherPanel widgets. I noticed in your Total Command screenshot that the files were sorted by date (not name). This could be the issue, as the script assumes they are sorted by name.

Did you have total commander already installed? Try setting it's default sort to name, the run the inject again.

If that's the issue, then I'll need to update my script to sort the files first...

storyr 05-12-2009 12:37 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by hbenz2008 (Post 909866)
I am on stand by...lol

Your inject worked, right? Did you get WeatherPanel up and running yet?

HBOOT 05-12-2009 12:39 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
The inject worked ok, just didnt update...had the WP widget up in MS3 saying Pending....had total commander in TP already....reinstaling in TP AGAIN

darren.wlsn1 05-12-2009 12:40 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
http://img148.imageshack.us/img148/5687/screen01y.png im also running this weather setup that uses mort script to add to what problem could be, on my end. ill switch tc and report back.

HBOOT 05-12-2009 12:48 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
ok I have a widget with the current temperature up, think having TC sorting by name helped....

darren.wlsn1 05-12-2009 12:51 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
changed tc to name and got same error, i also softreset first.

storyr 05-12-2009 12:56 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909877)
im also running this weather setup that uses mort script to add to what problem could be, on my end. ill switch tc and report back.

I doubt if the other weather app is it. Try this: Start Total Commander, then File -> Exit. This will cause it to close. The try the inject.

btw - thanks for helping me debug this. It figures that the first folks to try it would have issues...

Quote:

Originally Posted by hbenz2008 (Post 909890)
ok I have a widget with the current temperature up, think having TC sorting by name helped....

Great! I'll fix script to sort by name...

HBOOT 05-12-2009 12:56 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
looks ok now, wonder if this will stick after a softy..will c:mrgreen:

So u will u update now? just asking i definitely can wait...got it to work on Mogu,trying TP....UNLESS u say hold up...

....Mogul woke up with the right temp....shouldnt WP icon update once it is hit...

storyr 05-12-2009 01:01 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by hbenz2008 (Post 909907)
looks ok now, wonder if this will stick after a softy..will c:mrgreen:

So u will u update now? just asking i definitely can wait...got it to work on Mogu,trying TP....UNLESS u say hold up...

No, you're fine - the inject is a one time deal, and your's worked.

darren.wlsn1 05-12-2009 01:04 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
maybe uninstall ms and try stock ms3?

storyr 05-12-2009 01:05 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
Quote:

Originally Posted by darren.wlsn1 (Post 909917)
maybe uninstall ms and try stock ms3?

Not yet. Did you try exiting total commander first (File, Exit)? Or, just make sure it's closed in the task manager...

HBOOT 05-12-2009 01:07 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
when u hit TC under Uranus....it doesnt take u straight to it (files of the app), navigate and make sure it is seing the aplication directly,then sort.

darren.wlsn1 05-12-2009 01:08 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
no go,im using custom weather icons on ms3, would that matter?

HBOOT 05-12-2009 01:14 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
doubt it, i am back on my TP lemme c what it does, u have Skinchanger??

darren.wlsn1 05-12-2009 01:16 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
no, all themes changed with tc, but i think i found the problem, gimmi a minute.

JZ* 05-12-2009 01:18 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
storyr...works for me...BIG THANKS for making this the best weather app out there (IMHO) :headbang:

PS...I really like the traffic cams!...I use them for the "bridge" where the state patrol hangs out...now I know when their there!:mrgreen:

HBOOT 05-12-2009 01:19 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
thxx 4 sharing dude, hopefully patrol wont catch u

darren.wlsn1 05-12-2009 01:49 AM

Re: [Mobile Shell 3.0 Widget] WeatherPanel (with current conditions)
 
guess im done, i uninstalled everything and redid all files, no luck, same error.


All times are GMT -4. The time now is 09:59 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0