Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
superflysocal
Old
(Last edited by superflysocal; 25th November 2008 at 05:40 PM.)
#1  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
Default WeatherWallpaper 0.36 Nov25,2008: For S2U2. New version for Manila2D Weather!

A mortscript that changes s2u2 wallpaper based on current weather condition. Now there is support for Weatherpanel, HTC Weather, and the original Yahoo feed (based on notiweather script)

FOR INFO ON ANIMATED WALLPAPERS, see post #4 (but if you don't have this installed already, finish reading this first post first!)
post #4: http://forum.xda-developers.com/show...30#post2182530

I wanted a way to change the wallpaper of s2u2 wallaper based of the weather forecast.

Since Schettj has created such a fantastic script to user Userweather without a weather app (feed from yahoo), the easiest way for me to start was just build on this, so many thanks to schettj for building a fantastic script.

I have now added scripts for Weather Panel and HTC Weather support that doesn't require data connection. (except for the WP and HTC weather application update itself) Please note that since HTC weather does not autoupdate, there will be times of discrepancy between what htc weather shows and s2u2 wallpaper show. In other words, after you manually update HTC weather, s2u2 wallpaper won't reflect this until the next time the script is scheduled to run (which depends on delayhour variable). This is why I was never crazy about writing a version for HTC weather. For weatherpanel version it is best that you set weatherpanel application to update more often or same as the WeatherWallpaperWP.mscr script.

Create a folder that have 48 wallpapers in jpg from 0.jpg, 1.jpg...47.jpg corresponding to the different weather forecast icons. Or use one of the wallpaper set I have below.

Notiweather link:
http://forum.xda-developers.com/showthread.php?t=358952

S2U2 link:
http://forum.xda-developers.com/showthread.php?t=381588

Sample Customizations

1. Also, to display current , high and lo temp in notiweather change the weather line to this:
weather="C|"&code&"| "&temp&"º H"&hitemp&"º\L"&lotemp&"º"
There should be about 5 or 6 spaces between &code&"| and ", but I don't know why it is not displayed correctly.
(Edit: Current version implements this already)

2. I believe animated gifs would be possible if you change the part in bold again above from ".jpg" to ".gif" and fill the folder full of gifs.
(Edit: On current version, just change the wallpapertype variable at the top to = ".gif" instead of ".jpg", make sure to include quotes)

Update: WeatherWallpaper0.36 now also has version for Manila2D Weather (look for the Weather_WallpaperM2D0.35.mscr script). See the replies below for "u" version.

Update: WeatherWallpaper v0.36 (yahoo only): line 176 fixed with missing ")"

Update: WeatherWallpaper v 0.35 and .35u
A slight modification to the script that will hopefully fix some of the refresh issues. I have ran this for a week and have not encountered coming out of standby without S2U2 lock screen coming up. Please let me know how it goes for you. I also have made a new naming convention. The "u" version refers to the version of the script which will display Last Updated time (like the old v.33). Again, this "u" version will be posted on the third post like before. Thanks goes out to Holmann.

Update: WeatherWallpaper v0.33
I also made a version of WeatherWallpaper for HTC, Yahoo, and Weather Panel that displays the last updated time (version .33). This can be found on the third post on this page. If you don't want the last updated time displayed, then use the version on this first post. Update v.33b: got rid of the extra 0 bug ie 007:30

Update: WeatherWallpaper v 0.32
- don't use v.31, there's a bug. Please use v0.32 for WP only.

Update: WeatherWallpaper v 0.31
- small bugfix. on WP version only, at night slide forecast may display -9999

UPDATE: WeatherWallpaper version 0.3
- contains updated versions for Weatherpanel and Yahoo. HTC version is unchanged.
- updated versions for WP and Yahoo now has a new variable slideforecast:
slideforecast=0 (default) no change to slide2unlock text
slideforecast=1 slide2unlock text will display daily forecast (match lower left icon if s2u2 weather is set to userweather)
slideforecast=2 slide2unlock text will display current condition (match wallpaper)
Please note this feature is for S2U2 v 1.02 or higher (preferably 1.05 or higher). Do not change the slideforecast variable if you are running v 1.01 or less.

Please note if you change slideforecast to 1 or 2 and then decide to change back to 0, the display will not automatically revert back to whatever it is you have ( ie "slide to unlock"). You will have to change it back your self using this utility by l3v5y or through registry edit:
http://forum.xda-developers.com/show...&postcount=923

WeatherWallpaper version 0.2:

- Now contains three scripts, WeatherWallpaperYah0.2.mscr (for standalone use getting weather data from yahoo feed), WeatherWallpaperWP0.2.mscr (for WeatherPanel), and WeatherWallpaperHTC0.2.mscr (for HTC Weather). You only need one of these scripts!

- Two new user settings at the top of the script:

# folder containing your weather wallpaper
wallpaperfolder = "\storage card\my documents\download\wallpaper\weather\"

# wallpaper type jpg or gif
wallpapertype= ".jpg"

- Display is now set at Current temp followed by High and Low temp, but only if you select Userweather in S2U2. For example:
80º H86º\L71º

- Also, it now only writes into registry and "update" s2u2 if the current condition has changed, avoiding too many s2u2 updates, which can cause some delay in s2u2 sometimes.

- Please note that the wallpaper by default is based on current condition (ccode) while the lower left icon is based on forecast (code), so it may not be the same sometimes. i did this on purpose because, with current conditions, the wallpaper will change more often, like 3-4 times a day, giving it a nicer effect. If it was forecast it would chnage like 1-2 times a day.


PocketWeather users: rifraf1 has written a script that supposedly works with PocketWeather. However, I will not be supporting this since I don't have PW installed, but feel free to try. See this link. Thanks rifraf1!!
http://forum.xda-developers.com/show...er#post2289453

Wallpaper Update

There are now three sets of wallpaper to choose from. My original vision was to use natural appearing wallpapers that shows the weather forecast. Obviously it has been hard to find for all 47 situations. I have about 10 or so and have filled up the remainder using Bliss Alive for WAD from Doreen at Lakeridgesoftware.com forum. This is now called Wallpaper MyCombo0.3.zip.

It appears that some or most of your would rather us use a more related computerized graphic set, so i have also included the complete set I made from Bliss Alive from Doreen. This is called Wallpaper Bliss Alive.zip. See pics from post #6 below.
Update 5-27-2008: Bliss Alive 0.3 is posted. Cleaned up the graphics for nicer look on PPC.

There is a third set which is a modification of Bliss Alive made by Bob_55 from SBSH forum. This is called samurize.zip. See post #5.

You can mix or match the jpgs.

Still waiting for someone to step up and provide a complete set of animated gifs. I have seen some but not enough to make a set.

Installation
1. download one of the wallpaper set below and extract and place in any folder you like.
2. install mortscript 4.1, and s2u2 at least v 1.01
3. download WeatherWallpaper0.2.zip and extract the three mscr files: WeatherWallpaperYah0.2.mscr (for standalone use getting weather data from yahoo feed), WeatherWallpaperWP0.2.mscr (for WeatherPanel), and WeatherWallpaperHTC0.2.mscr (for HTC Weather). You only need one of these!!
4. edit the .mscr file of your choice with Notepad on PC and change the following data:


wallpaperfolder (where your weather wallpapers are located from #1 above)
wallpapertype (jpg or gif, leave as ".jpg" if using any wallpaper set from here)

For Weathepanel and Yahoo versions only also change:
units (f or c, fahrenheit or celsius)
location (where you are located, see http://developer.yahoo.com/weather/ on finding your location)
delayhours (how often you want it to update)

5. save this mortscript and transfer to ppc in \windows\startup\
6. tap to run it or soft reset. you should see data activity (in yahoo version)
7. see links for notiweather and or s2u2 for further details

Troubleshooting

There appears to be issues arising espceially when using custom Roms or foreign language users. this script was written under the presumption that s2u2 was installed in standard location as well as weatherpanel (if you are using that). If you are having these issues try these two helpful posts:
http://forum.xda-developers.com/show...&postcount=144

http://forum.xda-developers.com/show...&postcount=139

If you are using the latest Mortscript 4.11b you may have issues as well. Or you unit may be looking to connect to "Internet" instead of "The Internet". Look at this post:
http://forum.xda-developers.com/show...&postcount=160

If you cannot get the forecast to show on the slider (and the registry info is correct), see this thread (thanks Holman):
http://forum.xda-developers.com/show...57#post2547257



Thanks:
Schettj for original notiweather script
alanlsmith for the WP script version. His original version is on page 4 of this thread.
toniolol for help with HTC weather script
Attached Thumbnails
Click image for larger version

Name:	thunderrain_ss.jpg
Views:	3008
Size:	14.9 KB
ID:	104584   Click image for larger version

Name:	cloudsun_ss.jpg
Views:	1441
Size:	13.6 KB
ID:	104585   Click image for larger version

Name:	windrain_ss.jpg
Views:	1655
Size:	14.8 KB
ID:	104586   Click image for larger version

Name:	37.jpg
Views:	1418
Size:	13.7 KB
ID:	104588  
Attached Files
File Type: zip Wallpaper MyCombo0.3.zip - [Click for QR Code] (805.0 KB, 3050 views)
File Type: zip Wallpaper Samurize.zip - [Click for QR Code] (367.0 KB, 2083 views)
File Type: zip Wallpaper Bliss Alive0.3.zip - [Click for QR Code] (666.8 KB, 2131 views)
File Type: zip Weather_Wallpaper0.36.zip - [Click for QR Code] (7.0 KB, 1451 views)
 
superflysocal
Old
(Last edited by superflysocal; 18th June 2008 at 03:55 PM.)
#2  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
here are wallpapers i have so far (taken from pocketpcscreens.com)
2nd to last pic is screenshot including forecast on slide bar (optional)

in last pic, screenshot shows slide bar removed altogether leaving only forecast/summary

see this link for how:

http://forum.xda-developers.com/show...&postcount=212
Attached Thumbnails
Click image for larger version

Name:	4.jpg
Views:	1034
Size:	10.5 KB
ID:	84767   Click image for larger version

Name:	23.jpg
Views:	671
Size:	23.8 KB
ID:	84768   Click image for larger version

Name:	s2u2_screenshot.jpg
Views:	1710
Size:	17.5 KB
ID:	93433   Click image for larger version

Name:	Screen01.jpg
Views:	1293
Size:	22.0 KB
ID:	93575  
 
superflysocal
Old
(Last edited by superflysocal; 25th November 2008 at 05:38 PM.)
#3  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
I also made a version of WeatherWallpaper for HTC, Manila2D, Yahoo, and Weather Panel that displays the last updated time (version .33). On the WP version only, there is a humidity variable now. However, if you use this humidity or make any changes to how the data is displayed, then you need to change this appropriately (WP only):
oldmax =SubStr(curweather,-23,2)
oldmin =SubStr(curweather,-18,2)

If you don't know what I mean by this, then i recommend you change this:
If ( maxtempf = -9999)
maxtempf = oldmax
maxtemp = oldmax
EndIf
#
If ( mintempf = -9999)
mintempf = oldmin
mintemp = oldmin
EndIf

change oldmin and oldmax both to "--"

Update: v.36u now also has script for Manila2D (Weather_WallpaperM2D0.35u.mscr)

Update v.36u: changes made to Yahoo version only. fixed line 176 with missing ")"

Update v.35u: fixes some refresh issues

Update v.33b: got rid of the extra 0 bug ie 007:30

If you want 12hr format instead of 24hr then see this post:
http://forum.xda-developers.com/show...07#post2521007


If you don't want the last updated time displayed, then use the version on the first post above.
Attached Thumbnails
Click image for larger version

Name:	30.jpg
Views:	581
Size:	13.3 KB
ID:	84770   Click image for larger version

Name:	34.jpg
Views:	465
Size:	8.8 KB
ID:	84772   Click image for larger version

Name:	27.jpg
Views:	752
Size:	17.0 KB
ID:	85111  
Attached Files
File Type: zip Weather_Wallpaper0.36u.zip - [Click for QR Code] (7.3 KB, 651 views)
 
superflysocal
Old
(Last edited by superflysocal; 19th November 2008 at 02:13 PM.)
#4  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
Default Animated Wallpapers

You asked for it, you're gonna get it! ANIMATED WALLPAPERS.

Since Rumball made the great set of animated weather Diamond icons for WeatherPanel, he has given me permission to do a set of animated wallpapers based on his work. These take a long time (I can see now why he asked for donation...he deserves it).

I plan on making a modified set which has shorter animation. The advantage besieds being less time consuming for me is that it is smaller in size and doesn't weigh down the device too much on resources to run. Also, I picked part of the animation which will allow it to run continuosly without the appearance of a break or pause.

I believe Rumball will also try to do a set which will have the full animation like his icon set so look out for that as well.

THE SET IS NOW COMPLETE!!! It was a lot harder than I thought but everyone's inspiration has fueled me on!

These are for QVGA only.

Instructions:
Download WeatherWallpaperAnimated1.0.zip and extra the content onto the folder which contain your weather wallpaper.

On your script, change wallpapertype= ".gif"
(default is ".jpg")

Soft reset.

Download:
http://rapidshare.com/files/13714092...ed1.0.zip.html

Lastly, I don't know how to upload animated gifs for preview...probably need imageshack account or something. If anybody can do that, I can post the link here.

[/
Attached Thumbnails
Click image for larger version

Name:	cloudthunder_sample.jpg
Views:	606
Size:	17.7 KB
ID:	104412   Click image for larger version

Name:	suncloud_sample.jpg
Views:	323
Size:	16.6 KB
ID:	104413   Click image for larger version

Name:	windcloud_sample.jpg
Views:	371
Size:	17.3 KB
ID:	104414  
 
superflysocal
Old
(Last edited by superflysocal; 11th May 2008 at 07:10 PM.)
#5  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
i will put more wallpaper here:

samples of the remainder of the wallpapers based on Bob_55 modification which is based on Vista Alive WAD theme from Doreen. This is called samurize. It is not a full size wallpaper!
Attached Thumbnails
Click image for larger version

Name:	28.jpg
Views:	560
Size:	7.9 KB
ID:	85098   Click image for larger version

Name:	0.jpg
Views:	366
Size:	7.7 KB
ID:	85099   Click image for larger version

Name:	33.jpg
Views:	288
Size:	7.6 KB
ID:	85100   Click image for larger version

Name:	39.jpg
Views:	474
Size:	9.0 KB
ID:	85101  
 
superflysocal
Old
(Last edited by superflysocal; 10th May 2008 at 03:44 PM.)
#6  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
and hopefully more wallpapers here:

here are wallpapers based on Bliss Alive WAD theme made by Doreen from lakeridgesoftware.com forum.
Attached Thumbnails
Click image for larger version

Name:	4.jpg
Views:	409
Size:	14.1 KB
ID:	85211   Click image for larger version

Name:	30.jpg
Views:	325
Size:	14.5 KB
ID:	85212   Click image for larger version

Name:	27.jpg
Views:	310
Size:	19.8 KB
ID:	85213   Click image for larger version

Name:	47.jpg
Views:	368
Size:	12.3 KB
ID:	85214  
 
superflysocal
Old
#7  
Senior Member - OP
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
other possible wallpapers we can use:
Attached Thumbnails
Click image for larger version

Name:	sunbright.jpg
Views:	277
Size:	8.2 KB
ID:	84775   Click image for larger version

Name:	snowmountain.jpg
Views:	269
Size:	11.0 KB
ID:	84776   Click image for larger version

Name:	clear cloud.jpg
Views:	261
Size:	12.2 KB
ID:	84777   Click image for larger version

Name:	rainforest.jpg
Views:	312
Size:	17.4 KB
ID:	84778  
 
TheChampJT
Old
#8  
TheChampJT's Avatar
Senior Member
Thanks Meter 6
Posts: 2,015
Join Date: Feb 2008
Nice work, gif animations would be awesome!
Samsung Captivate
Samsung Galaxy Tab
 
curious george
Old
#9  
Senior Member
Thanks Meter 0
Posts: 533
Join Date: Nov 2006
Nice work!!! I knew that this would be a good idea. Way to run with it! This looks awesome.
Curious George
--------------
Cingular 8125(Wizard)
TNT .19199 WM 6.1 Prof ROM
IPL/SPL 3.08
GSM 2.71.11
OS 11.0.1.1
 
Kpyto
Old
#10  
Kpyto's Avatar
Senior Member
Thanks Meter 2
Posts: 123
Join Date: Sep 2007
Location: Kyiv
Please, add support for HTC Home Weather!

Idea is GREAT!

Nice work!
Motorola T192 → Siemens A65 → Nokia 6822i → Palm Zire 71 → Motorola MPX200 → SonyEricsson K750i → HTC Wizard → HTC TyTN → Toshiba G900 → SonyEricsson K810i → iPhone → iPhone 3GS → iPhone 4 → iPad → HTC HD7 → Nokia N79 → Motorola Defy → iPhone 4S → Google Nexus S → Samsung Galaxy SII → Samsung Galaxy Note → iPad 4G 32Gb White → Nokia N9 → iPhone 5 → Sony Xperia T

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more