yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] holmanm:
Mine always comes on with S2U2. Here is the script as I use it.

# Quietly ignore all errors
ErrorLevel("off")
Run("\Program Files\MarsWare\WeatherPanel\WPHourlyDataFix.exe")
GetTime(hour,min,sec,day,month,year)
Copy("\Program Files\MarsWare\WeatherPanel\data\42066-radar-00.000005","\Program Files\S2P\gfx\pmusic.png",TRUE)
today= ( day & "/" & month & "/" & year )
hourlyfile= "\Program Files\MarsWare\WeatherPanel\data\42066-hourly"
currentfile= "\Program Files\MarsWare\WeatherPanel\data\42066-current"
forecastfile = "\Program Files\MarsWare\WeatherPanel\data\42066-forecast"
filedata = ReadFile( currentfile )
for line = 1 to 17
segment[line] = Part( filedata, "^NL^", line )
Next
tempf = segment [ 3 ]
feeltempf = segment[ 4 ]
ccode = segment[ 7 ]
summary = segment[ 8 ]
#Find High / Low temps & forecast icon
forecastdata = ReadFile(forecastfile)
for line = 1 to 170
segment[line] = Part( forecastdata, "^NL^", line )
Next
for count=0 to 9
If (count=0)
ind=1
Else
ind=((count*17)+1)
EndIf
day_no=((segment[ind]-25569)*86400)
daystring = Format( day_no, 6)
Day_no=FormatTime( "d/m/Y", daystring)
if (day_no eq today)
forecast_code_day = segment[ ind + 5 ]
forecast_code_night = segment[ ind + 11 ]
maxtempf = segment[ ind + 1 ]
mintempf = segment[ ind + 2 ]
rain_AM = segment[ ind + 9 ]
rain_PM = segment[ ind + 15 ]
If ( maxtempf = -9999)
maxtempf = tempf
EndIf
If ( mintempf = -9999)
mintempf = tempf
EndIf
If ( hour > 6 AND hour < 18 )
forecast_code = forecast_code_day
Else
forecast_code = forecast_code_night
EndIf
EndIf
next
weather="C|"&forecast_code&"| "&maxtempf&"º("&tempf&"º)"&mintempf&"º "&rain_AM&"%%\"&rain_PM&"%%"
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2UText", summary)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", "\storage card\WPWP\"&ccode&".jpg")
RegWriteString("HKCU", "\Software\A_C\S2U2\", "WallpaperL", "\Program Files\S2P\gfx\pmusic.png")
res2u2=0
if (WndActive("S2U2") = True)
res2u2=1
EndIf
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (res2u2=1)
Run("\Program Files\S2U2\s2u2.exe")
EndIf
# set up for next notification in 50 Min
set utime,TimeStamp() + 3000
# kill any lingering notification
RemoveNotifications("\Windows\StartUp\notiweather.lnk")
# set notify for myself at next time
RunAt( utime,"\Windows\StartUp\notiweather.lnk")
Exit
[Windows Mobile Apps and Games] Nagrom Nniuq:
Yes, I have Mortscript installed. I downloaded the script from the first page. I changed the location code and the path to my wallpaper folder and put the script in startup. I switched S2U2 to User Weather and the soft reset. I don't get any wallpaper change.
[Windows Mobile Apps and Games] AGY:
holmanm

You'r assumtion is right I only used the arrows to show what I did.

my color is also not working and I don't think my bold letter either so that's why I decided to used capital letters.

still no solution to my problem :confused:
[Windows Mobile Apps and Games] superflysocal:
Holman,

I tried using these lines but it wouldn't work. slideforecast never gets updated.

res2u2=0

if (WndActive("S2U2") = True)

res2u2=1

EndIf

Run("\Program Files\S2U2\iLock2.exe","-refresh")

if (res2u2=1)

Run("\Program Files\S2U2\s2u2.exe")

EndIf

I removed the

if (WndActive("S2U2") = True)

line and then it works again. Maybe I typed it in wrong, but you sure that is a valid line that doesn't require any other declarations?
[Windows Mobile Apps and Games] dimitris_tsak:
I use spb weather!Can i use the weather wallpapers on s2u2?How can i do it?Plz help!
[Windows Mobile Apps and Games] superflysocal:
currently there is no support for spb weather
[Windows Mobile Apps and Games] superflysocal:
New release with refresh fix hopefully

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 to Holmann for his help.
[Windows Mobile Apps and Games] del4:
RunAt() fix not included in latest release?

Had this script on my todo list for awhile now and finally got around to installing and configuring it to work with WeatherPanel on my Mogul. Worked fine initially, working when manually launched, but couldn't get the following auto updates to occur, as they would throw an error.

Reviewing the thread, I found that this issue, involving the RunAt() call, had been discovered and resolved some time back in this post. In my case, I chose to replaced RunAt(utime, mort, script) with RunAt(utime, script) and it began working like a charm.

Seems like this should be incorporated into the latest release of the WeatherWallpaper scripts, no?
[Windows Mobile Apps and Games] del4:
autofill active location

I assume what you are asking for is to have the script autodetect which location is active/selected on the today screen and use this location in the WeatherWallpaper script?

I would like this functionality too, but unfortunately, I couldn't find a registry key, file or any other mechanism whereby the active location is available for us to reference. Anyone know if this info is stored somewhere or if there's some way of figuring it out?
[Windows Mobile Apps and Games] del4:
Mobile Shell weather data

Anyone know where the weather data for Spb Mobile Shell is stored? As part of this script, I'd like to update the weather data displayed in MS (after turning off its auto-update feature) since the data source that's hardcoded doesn't seem to be very accurate...
[Windows Mobile Apps and Games] superflysocal:
sorry, i don't have that software. try looking into registry keys.
[Windows Mobile Apps and Games] Soniku007:
does this work with landscape mode??
[Windows Mobile Apps and Games] superflysocal:
I did not make these for landscape but if you search this thread I think someone made a landscape version.
[Windows Mobile Apps and Games] superflysocal:
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 am making a modified set which has shorter animation. The advantage besides 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.

For now, I created a set with about 18 animated wallpapers. These happen to be the ones my location use the most at this time, so for most of you this might be all you need until winter hits. The rest of the wallpapers are taken from my Bliss Alive collection (static) posted above converted to gifs. I will continue to make more but wanted to give you guys what I have so far. These are for QVGA only.

Instructions:

Download WeatherWallpaperAnimated_alpha.zip and extra the content onto the folder which contain your weather wallpaper.

On your script, change wallpapertype= ".gif"

(default is ".jpg")

Soft reset.

see post #4 for download:

http://xdaforums.com/showthread.php?p=2182530#post2182530
[Windows Mobile Apps and Games] Nagrom Nniuq:
superflysocal, you are THE MAN! I know you are giving Rumball the credit for this and yes he did do a lot of work, but so did you and so have a lot of XDA guys and yet you guys don't demand a donation. So, I would like to donate to you (as soon as I get paid) what I would have given to Rumball had he not chosen to demand payment for his images. Do you have a donation link? I don't even see you asking for any donation.
[Windows Mobile Apps and Games] bikertibi:
Somebody can reupload the WeatherWallpaperAnimated_alpha.zip to other server than rapidshare?

Thanks!
[Windows Mobile Apps and Games] superflysocal:
yes if somebody can upload somewhere else I will change the link, but I can't seem to upload directly to xda even though it is less than 6mb.
[Windows Mobile Apps and Games] haiopei:
Hi,

is it only by me, or is in the yahoo-script an error at Line 176, missing a ")" at the end of line ?

Is it possible to the Yahoo script to modify the weather data from weather.com to? On the one hand they are precisely my feeling on the other hand, are more data available?
[Windows Mobile Apps and Games] superflysocal:
haven't use or tested Yahoo version in a while. What does line 176 say?
[Windows Mobile Apps and Games] superflysocal:
I believe you are referring to:

Sub getValue

offset = Find(argv[1],argv[2]) + Length(argv[2])+2

endoff = find(argv[1], """", offset)

return(SubStr(argv[1], offset, endoff-offset) <---

EndSub

Are you actually getting an actual error with this? It would appear you are correct but I never get an error with this and it works. It was taken directly from notiweather script which has worked as well. What happens when you add the extra ")"? Advise and I will update if needed.
[Windows Mobile Apps and Games] haiopei:
Hello superflysocal,

thats what i mean.

I have switched errormessages on, because no values entered into the registry and s2u2 did not show anything.

It was then the reporting of these ")" is missing.

After adding ")" all works perfect.

I use MortScript in the last version 4.11b7, perhaps that is why?

return(SubStr(argv[1], offset, endoff-offset)

open 1 (... open 2 ( .... close 2)... < close 1 missing i mean
[Windows Mobile Apps and Games] superflysocal:
Thanks, it has been updated now. it only pertains to the Yahoo version.
[Windows Mobile Apps and Games] holmanm:
Just in case any body used my edited versions of the Weather Wallpapers I updated them with the animated Wallpapers superflysocal made.

http://rapidshare.com/files/135584995/WPWPAnimated.zip.html
[Windows Mobile Apps and Games] holmanm:
Animated Wallpapers

I edited the 36.gif file that represents "Hot" to try to show it visually. It makes the sun ripple as if to show heat waves. The other static wallpaper I used had the word hot in the sun.
[Windows Mobile Apps and Games] superflysocal:
thanks for this. I will add this to my set.
[Windows Mobile Apps and Games] superflysocal:
I am bit surprised at the lack of response to the animated wallpaper set. Throughout the thread, people have been asking for it and now it is here and only a few response/testers. It's a lot of work, and this makes me hesitant to finish out the set.
[Windows Mobile Apps and Games] Airpil:
thory for Offtop but i was shocked by untrue... the war in georgia started 08.08.2008 NOT 09.08.2008 whiy famous news sytes don't wont to tell the truth ??? Russians peacemakers WAS ATAKtED 08.08.2008. NOT 09.08.2008 10 Russians peacemakers and 1000s peace residents of OsSetiya was killed by georgians soldiers.!!!!	THEY WAS KILLED BY GEORGIANS SOLDIERS 08.08.2009!!!!!!

Russia entered in georgia 09.08.2008 becouse 08.08.2008 georgians soldiers killed 10 russians peacemakers. most of the south ossetiya residents russians sitizens

if you want to know the truth translate this by google

http://top.rbc.ru/incidents/09/08/2008/217873.shtml

thory for my bad english thory for OFFtop
[Windows Mobile Apps and Games] Nagrom Nniuq:
Did you see that I asked you for a link so I can donate to you? I am very happy and I am one of the original people who asked for the set. Thanks much again! I love it. The twinkling stars at night are my favorite so far.
[Windows Mobile Apps and Games] omahajs:
I just found this software and have it installed with the animated wallpaper and showing my wp details just fine. It works very well and thank you for the work on this and the animated wallpapers.

One question though (my first time using mortscripts) - is there any way to change the updated time format? From 15:12 to 3:12PM??

Thanks again.
[Windows Mobile Apps and Games] superflysocal:
Yes, thank you and I appreciate your response. I guess i just want more comments like this that tells me people are actually trying this out. Tell me which you like and which you don't like, etc.

Yeah, i thought the twinkiling star was neat. That was not on rumball's set...I like it better than the strange moon rotation.

Any more feedback is appreciated.
[Windows Mobile Apps and Games] superflysocal:
not sure. It is taken from registry. Of course we can just put a simple script to convert time.
[Windows Mobile Apps and Games] wparisi:
I am using your animated wallpaper set. Great work.
[Windows Mobile Apps and Games] Legolus:
I LOVE IT

I BEEN WAITING FOR THIS AND I LOVE IT.

THANK YOU SO MUCH

LEGOLUS
[Windows Mobile Apps and Games] Nessy:
Hi,

Really nice Script! I am from Germany and at first I have Problems with this Script. But all problems belong to a little wrong path. In Englisch Programs get installed to "Program Files\S2U2" for exapmle. In Germany Programs get installed to "Programme\S2U2" :cool:
[Windows Mobile Apps and Games] XTREEM|RAGE:
I cant get on rapidshare from work :(. Can some plz upload it to another location! tnx!
[Windows Mobile Apps and Games] del4:
+1 for the great animated wallpaper set. Please do continue as they are excellent!!!
[Windows Mobile Apps and Games] omahajs:
As I've never used mortscripts before, is this something you could help me with that I could just change or add myself? Thanks for any help, if not I can probably live with the time format.
[Windows Mobile Apps and Games] superflysocal:
Open your .mscr file in notepad. Find this line:

CurrentTime = Fullhour&":"&min

and replace with these:

If (Fullhour=12)

CurrentTime = Fullhour&":"&min&" p.m."

Else

If (Fullhour>12)

Fullhour= Fullhour-12

CurrentTime = Fullhour&":"&min&" p.m."

Else

CurrentTime = Fullhour&":"&min&" a.m."

Endif

Endif
[Windows Mobile Apps and Games] omahajs:
Thank you very much!! That change works perfectly and now I don't have to think too hard when looking at the update time...Again, great job on the script and the animated weather wallpapers.
[Windows Mobile Apps and Games] superflysocal:
Animated Wallpaper v1.0 is now complete

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

see the first page!

http://xdaforums.com/showthread.php?p=2182530#post2182530
[Windows Mobile Apps and Games] Nagrom Nniuq:
Awesome work m8. Props to you for sticking with it!
[Windows Mobile Apps and Games] superflysocal:
Thanks. You're part of the reason i finished. Did you like the way I redid 29.gif? Moving clouds WITH twinkling stars!
[Windows Mobile Apps and Games] pmsmob:
Superb Work! Keep it up!!! :)
[Windows Mobile Apps and Games] Legolus:
Superb Work!

THANK YOU,

I HAVE BEEN WAITING FOR THIS, IT IS GREAT!

LEGOLUS
[Windows Mobile Apps and Games] joshuaberman:
Animation

I think it's absolutely great! And considering how much of a pain it's been for an amateur like me just to get it to work properly (thanks to alanlsmith for his script for WP), I'm sure it was time consuming to create the set. Thank You for your work.

It's possible that most are concentrating on just getting the setup correct.
[Windows Mobile Apps and Games] superflysocal:
if you know how to go into your registry, ie Resco Registry, look uner HKCU\software\A_C\S2U2\wallpaper and tell me what is your value?
[Windows Mobile Apps and Games] superflysocal:
change this line:

display6 = " " & summary & " -High:" & maxtemp & "°" & " -Feels:"& feeltemp & "°"

to :

display6 = " " & summary & " -High:" & maxtempf & "°" & " -Feels:"& feeltempf & "°"

You can also change that whole section (display 1-7) for future use. change all **temp to **tempf (f stands for fahrenheit). ie maxtemp, mintemp, and feeltemp (only do this in the display(1-7) section).
[Windows Mobile Apps and Games] joshuaberman:
C to F (Thanks)

Thank You for your quick response. Still tryin' to figure this script thing out.
[Windows Mobile Apps and Games] superflysocal:
did it work?
[Windows Mobile Apps and Games] MrEous:
Thank you for your help...I actually got it to work but decided to use the HTC script instead of Yahoo. I did have to change that value in S2U2, it now reads:

"\Storage Card\My Pictures\19.gif" (I changed the location of the .gifs in the script too)

One other question though, if you don't mind, for cloudy is the animation supposed to be the sun (gif #19)? Here is the new script:

# fetch weather from htc weather registry
# Run every XX Hours
# Version 2.2 using Notification Queue, System Paths
# USER SETTINGS, CHANGE AS DESIRED
# how often to try and get the weather
delayHours = .5
# folder containing your weather wallpaper
wallpaperfolder = "\Storage Card\My Pictures\"
# wallpaper jpgtype jpg or gif
wallpapertype= ".gif"

GetTime(hour,min,sec,day,month,year)
# set up for next notification
utime = TimeStamp() + (delayHours*60)*60
mort = SystemPath("ScriptExe") & "\MortScript.exe"
script = SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt")
# kill any lingering notification
RemoveNotifications(mort, script)
# set notify for myself at next time
RunAt( utime, mort, script)
# Quietly ignore all errors
ErrorLevel("off")
# avoid registry writes if no change
curweather = RegRead("HKCU", "\Software\A_C\S2U2\", "UserWeather")
currlweather = RegRead("HKCU", "\Software\emerym\", "Weather")
curpic= RegRead("HKCU", "\Software\A_C\S2U2\", "wallpaper")
curforecast = SubStr(curpic,-6,2)
weather = ""
rlweather = ""
# Array for the HTC Home Weather to BackGround JPG
HHW["01"]=32
HHW["02"]=30
HHW["03"]=44
HHW["04"]=30
HHW["05"]=30
HHW["06"]=28
HHW["07"]=19
HHW["08"]=20
HHW["11"]=26
HHW["12"]=40
HHW["13"]=39
HHW["14"]=39
HHW["15"]=38
HHW["16"]=37
HHW["17"]=37
HHW["18"]=35
HHW["19"]=13
HHW["20"]=14
HHW["21"]=16
HHW["22"]=15
HHW["23"]=14
HHW["24"]=15
HHW["25"]=15
HHW["26"]=46
HHW["29"]=46
HHW["30"]=36
HHW["31"]=25
HHW["32"]=20
HHW["33"]=31
HHW["34"]=29
HHW["35"]=27
HHW["36"]=27
HHW["37"]=31
HHW["38"]=33
HHW["39"]=45
HHW["40"]=45
HHW["41"]=47
HHW["42"]=47
HHW["43"]=5
HHW["44"]=46
# get data from registry
# HKLM\Software\HTC\HTCHome\Weather\
temp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\", "CurrentTemp")
ccodeHTC = RegRead("HKLM","\Software\HTC\HTCHome\Weather\", "Icon")
hitemp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "HighTemp")
lotemp = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "LowTemp")
codeHTC = RegRead("HKLM","\Software\HTC\HTCHome\Weather\Forecast0\", "Icon")
#convert HTC code to weatherpanel/Yahoo code
ccode = HHW[%ccodeHTC%]
code = HHW[%codeHTC%]
weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"

if (curweather ne weather)
#for s2u2 UserWeather
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)
if (ccode ne curforecast)
wallpaper=wallpaperfolder&ccode&wallpapertype
RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (WndActive("S2U2") = True)
Run("\Program Files\S2U2\s2u2.exe")
endif
endif
endif
[Windows Mobile Apps and Games] holmanm:
Here is the list I have always used:

00 Rain/Lightning
01 Windy/Rain
02 Same as 01
03 Same as 00
04 Same as 00
05 Cloudy/Snow-Rain Mix
06 Hail
07 Icy/Clouds Rain-Snow
08 Icy/Haze Rain
09 Haze/Rain
10 Icy/Rain
11 Light Rain
12 Moderate Rain
13 Cloudy/Flurries
14 Same as 13
15 Flurries
16 Same as 13
17 Same as 00
18 Same as 00
19 Dust
20 Fog
21 Haze
22 Smoke
23 Windy
24 Same as 23
25 Frigid
26 Mostly Cloudy
27 Mostly Cloudy/Night
28 Mostly Cloudy/Sunny
29 Partly Cloudy/Night
30 Partly Cloudy/Day
31 Clear/Night
32 Clear/Day
33 Hazy/Night
34 Hazy/Day
35 Same as 00
36 Hot!
37 Lightning/Day
38 Lightning
39 Rain/Day
40 Rain
41 Snow
42 Same as 41
43 Windy/Snow
44 Same as 30
45 Rain/Night
46 Snow/Night
47 Thunder Showers/Night

So #19 would be "Dust", which is a good representation I think.
[Windows Mobile Apps and Games] joshuaberman:
C to F (Response)

Yup, like a champ. I was on the right track, I thought it was "tempf" but wasn't sure where to replace. Thanks so much. Everything is working now!!!:D
[Windows Mobile Apps and Games] motisu:
Hi all,

I've got a bit of a problem with the weather script. It works just fine with changing the S2U2 gif background and updates also. What I can't figure out is how to get the text forecast to show up. I am using S2U2 V1.18 and notiweather V35U. (added the ")" by hand) For my weather source, I'm using Yahoo. I set the text parameter to 1 but it didn't help.
[Windows Mobile Apps and Games] superflysocal:
not sure what you mean by notiweather v335u, (i dropped the notiweather name a long time ago to differentiate the real Notiweather script), but I think you mean WeatherWallpaper_yah0.35u.mscr.

In S2U2 settings, do you have ShowWeather set to "5" (UserWeather)?
[Windows Mobile Apps and Games] motisu:
Of course I do, otherwise, it wouldn't be updating the weather icon, temps and background. :) The ONLY thing that isn't showing up is the text forecast. It isn't not getting updated, it just isn't there at all. and yes, I meant WeatherWallpaper_yah0.35u.mscr. I've been using the script so long that I simply forgot about the name change.:o
[Windows Mobile Apps and Games] holmanm:
Do you still have the sliden.png file in the gfx folder?

Is s2u2 installed in the \program files\s2u2 folder? (I noticed this is hard coded in the script for the refresh command)

What does the registry key \HKCU\Software\A_C\S2U2\S2UText contain?
[Windows Mobile Apps and Games] motisu:
Hi Mike,

no, I deleted it so it should be using now slideani.

yes

Mostly clear.

In other words, the registry is correct, it just isn't getting to the screen.
[Windows Mobile Apps and Games] holmanm:
You have to have sliden.png to use s2utext. Attached is the totally transparent one I use. If I remember right i believe you have to delete/rename slideani.png also, I know mine is gone.
[Windows Mobile Apps and Games] motisu:
Thank You, worked like a charm. I was under the impression that sliden and slideanis were only the backgrounds. I liked the ripple effect of anis so I deleted sliden. Now I know better. Maybe this should be posted somewhere for others as I rarely miss a post on threads that I follow.

Thanks again.
[Windows Mobile Apps and Games] MrEous:
Thanks for your help but I felt 26 represented 'cloudy' better and changed the script. :)

Great help on this, your file list helped wonders...thank you.
[Windows Mobile Apps and Games] superflysocal:
i didn't know that either. thanks holman. i will list this on the first post.
[Windows Mobile Apps and Games] No1ustad:
Hey superfly, wondering if you could toss some help my way?

I got s2u2 v1.18

I had a .jpg wallpaper before i started this, I don't have weatherpanel or htc home so i'm trying to go the yahoo route.

I took the animated wallpapers and extracted them to /storage card/my pictures (they're the only files in there) and changed the following s2u2 settings:

wallpaper directory: storage card/my pictures

change wallpaper every: 10 min

today's weather forecast from: userweather

I placed the mortscript file in the startup folder as well.

soft reset.

clicked the mortscript. saw some data (white arrows in the status bar), but my s2u2 is a black screen?

not sure if i need to change the s2u2 settings or install something else i.e. notiweather or what... :confused: