yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] superflysocal:
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 had ( ie "slide to unlock"). You will have to change it back your self using this utility by l3v5y or through registry edit:

http://xdaforums.com/showpost.php?p=2264560&postcount=923

see first post for file
[Windows Mobile Apps and Games] brock1909:
how do you get two lines of Info on the screen?
[Windows Mobile Apps and Games] holmanm:
Simply brilliant, superflysocal.

I made the sliden.png completely transparent and now it looks like the forecast text is just floating in front of my slider.
[Windows Mobile Apps and Games] shaggylive:
very nice upgrade to notiweather. Thanks superflysocal !! and thanks again schettj !

good to see more people getting their feet wet in mortscript.

well I added a few lines myself, check it out..

Added landscape settings in the following 2 areas

# folder containing your weather wallpaper
wallpaperfolder = "\Program Files\S2U2\Weather\Wallpaper\"
[B][FONT="System"]wallpaperLfolder = "\Program Files\S2U2\Weather\WallpaperL\"[/FONT][/B]

if (curweather ne weather)
#for s2u2 UserWeather
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)
if (ccode ne curforecast)
wallpaper=wallpaperfolder&ccode&wallpapertype
[B][FONT="System"]wallpaperL=wallpaperLfolder&ccode&wallpapertype[/FONT][/B]
RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)
[B][FONT="System"]RegWriteString("HKCU", "\Software\A_C\S2U2\", "WallpaperL", wallpaperL)[/FONT][/B]
Run("\Program Files\S2U2\iLock2.exe","-refresh")
endif

just change the wallpaperfolder and wallpaperLfolder to your liking.

I resized the Samurize wallpapers to fill my screen in landscape..
[Windows Mobile Apps and Games] superflysocal:
thanks. That's a great idea you have yourself!!!

maybe post a screen shot and I will get it on the first page.
[Windows Mobile Apps and Games] superflysocal:
please clarify
[Windows Mobile Apps and Games] Nagrom Nniuq:
This is fantastic work. Thanks everyone and especially superflysocal.
[Windows Mobile Apps and Games] holmanm:
This kind of shows it.

I also attached the transparent sliden.png in case anyone wants it.
[Windows Mobile Apps and Games] Nagrom Nniuq:
Here are some more links to gif weather wallpapers from that site. We still don't have enough matches to all 40+ needed to work for this app.

http://wm5.mobi/wall/anim728.gif

http://wm5.mobi/wall/anim730.gif

http://wm5.mobi/wall/anim295.gif

http://wm5.mobi/wall/anim912.gif

http://wm5.mobi/wall/anim652.gif
[Windows Mobile Apps and Games] ribasnet:
Hi All

This is a really amanzing feature , thanks for your work and keep improving for our benefict :-)

Again, thx for such a great work
[Windows Mobile Apps and Games] giojoe:
:D Thumbs up for ur changes...

can you please post the resized Samurize wallpapers for landscape??
[Windows Mobile Apps and Games] philocritus:
Can anyone make a table for the 40+ diferent weather forecasts available?

just post it with the number, description and a blank column.

That way we can fill it in with the wallpapers we found and look just for the ones missing!
[Windows Mobile Apps and Games] superflysocal:
it appears on the new version that when i first run it (Wp version), it displays the correct weather forecast on the slidebar, but I have not had it changed yet and the weather forecast has changed. anyone seeing this?
[Windows Mobile Apps and Games] superflysocal:
never mind I figured it out. I forgot to change slideforecast to 1.

In the process, i did notice a bug in the wp version. at night it may display -9999, so here is the revised version for WP only.

edit: don't use WP v .31, there's a bug. here is v .32
[Windows Mobile Apps and Games] brock1909:
in the red arrowed spot. i would like to put last updated, humidity and even put the Low temp in the top bar as well. ( also not sure how to code the Last update time and Humidity so it will appear in the line...)
[Windows Mobile Apps and Games] superflysocal:
that's going to be a S2u2 issue. i don't think we can do anything about that from these scripts
[Windows Mobile Apps and Games] brock1909:
thats upsetting. could you possibly help me put the Humidity and Last updated time into the script? i can take out the location name and have room for the humidity, and hopefully the last updated time too.
[Windows Mobile Apps and Games] shaggylive:
also having an issue with the background images, a message will pop up but only lasts 3 seconds. I think it may have to do with the ilock2.exe -refresh, but I'm still playing with that and some sleep timers.

I also would like to see the time of last update too,

another idea to save room would be having rain and humidly like this 50%A:60%P or R%:50a/60p

if you meant for yahoo, here ya go.

http://developer.yahoo.com/weather/
[Windows Mobile Apps and Games] brock1909:
it may be the -refresh. but even if i close ilock and restaret it, t still will not show...it weird.

so how can we code in Humidity and Last update time into the script?

i just have problem after problem with this. now my wallpaper is not changing, it has been cloudy for 2 days, even at night when the forcast shows clear!
[Windows Mobile Apps and Games] brock1909:
annoyed with this. its sunny and warm! and it says mostly cloudy! with the mostly cloudy background!

and i still cant get the last updated time scripted in corretly!
[Windows Mobile Apps and Games] superflysocal:
what version are you using? If WP, what is weatherpanel showing? What is your delayhour setting and what is your WP refresh setting within WP?
[Windows Mobile Apps and Games] brock1909:
WP and the updated script. WP is showing the updated weather. its set for 30 min in weather panel,and 10min in the script. the script will only update now if I soft reset, or go into startup (where the script is) and click on it until I get the loading circle, and it will refresh the data. so I assume the refresh is not working correctly.
[Windows Mobile Apps and Games] superflysocal:
You have to be patient. Sometimes, even if you soft reset, things don't get updated right away. Wait until the next refresh time and see. Also keep in mind that the slideforecast and bottom left icon are both based on the daily forecast, not current conditions. Daily forecast hardly ever gets updated by WP. So even if the weather cleared up and is sunny, if the original forecast for the day called for rain, it may stay that way for a while. It's a WP thing.
[Windows Mobile Apps and Games] superflysocal:
I also made a version of WeatherWallpaper for HTC, Yahoo, and Weather Panel that displays the last updated time (version .33). You can find it on the first page, post #3.

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 "--"

If you don't want the last updated time displayed, then use the version on the first post, not the third.
[Windows Mobile Apps and Games] ~J~:
I've not really looked into MortScript a great deal, and as a developer myself, am appreciating how many people are inputting into this thread.

But what I can't understand is how come there hasn't been a script that interrogates SPB Weather.

MortScript seems to be able to grab stuff from the Registry, does SPB Weather and S2U2 not use that facility?

I can see that S2U2 uses a long strip made up of individual icons, but I'd have thought somewhere S2U2 writes a registry value, maybe an x-location offset of which icon to show which a mortscript could also examine and change the wallpaper accordingly.

Or am I way off base!! :p
[Windows Mobile Apps and Games] brock1909:
Thanks so much for the new script superflysocal! i love it!

here is my current screen

high/feels/AM% rain/PM% rain/Humidity/Last updated time

thanks so much for the hard work!

still trying to get GIF collection together :)
[Windows Mobile Apps and Games] superflysocal:
Glad you are able to make it work for you. And is it updating correctly (once you give it a little time)?
[Windows Mobile Apps and Games] superflysocal:
I am not much of a mortscript programmer myself, lol.

Where does spb store its registry info? Be specific.

Problem is I don't have spb weather installed. Maybe you can post what the registry file looks like and its content.
[Windows Mobile Apps and Games] brock1909:
ugh, that seems tobe my only problem, it will not update still :(

edit on that, i canged the update time.

i had changed DelayHours to DelayMinutes. so i changed it back to DelaHours and put it at .16 which is aboutevery 10 minutes, ill see if taht changes anything
[Windows Mobile Apps and Games] wparisi:
I have modified the script (see below) to show "location_name". Sometimes there is too much info to display. Is there anyway to show this on two lines instead of one?

weather="C|"&forecast_code&"| "&location_name&" "&summary&" "&tempf&"º H"&maxtempf&"º\L"&mintempf&"º""&" Updated: "&oldupdatetime
[Windows Mobile Apps and Games] XTREEM|RAGE:
I only see v0.32 atm.

When will v0.33 avail, or am i looking without my glasses again :cool:
[Windows Mobile Apps and Games] holmanm:
It downloads as version 0.33 for me.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Tnx for the tip ;)!
[Windows Mobile Apps and Games] XTREEM|RAGE:
ok i'm a little bit puzzled! how do i get this:

CityName: CurrentWeather High\Lowtemp HowmuchRain: % and last updated

for now i have the standard thing... Current and high\low

"&temp&"º H"&hitemp&"º\L"&lotemp&"º"

but what do i need to change to get what i want :(.

Help!

-edit

using yahoo weather btw!
[Windows Mobile Apps and Games] superflysocal:
it's on post #3
[Windows Mobile Apps and Games] XTREEM|RAGE:
Yeah that was the right one.

But now i want to see, how much change it have to rain for 2day?

Is this possible with yahoo weather?
[Windows Mobile Apps and Games] brock1909:
im not exactly sure, i use WP and i have chance of rain displayed, im not sure if the coding would be the same. but you could alwys try. look in the files for Weather with chance of rain. extract the rain additions and place them in script, if they work they do, if not......i tried?

i asked the 2 line question, and i was told it is a S2U2 thing that cant be changed with the mortscript.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Hmmm when the weather updates it will unlock my S2U2.

I use yahoo weather v0.33? anyone else have that?
[Windows Mobile Apps and Games] holmanm:
If you mean when the notiweather.mscr script runs, it's because of the

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

command that has to reload ilock2.

What I have done to avoid this is added the following code around the refresh command

res2u2=0
if (WndActive("S2U2") = True)
res2u2=1
EndIf
[COLOR=black][B][U][I]Run("\Program Files\S2U2\iLock2.exe","-refresh")[/I][/U][/B][/COLOR]
if (res2u2=1)
Run("\Program Files\S2U2\s2u2.exe")
EndIf

This reruns S2U2 if it was active when notiweather runs.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Yeah that's what i mean, when it update itself. S2U2 will get unlocked and stay unlocked >_<.

But your code, can i put it in this if statement? or somewhere else?:

if (curweather ne weather)
#for s2u2 UserWeather
weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"&" Updated: "&CurrentTime
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("\Programmabestanden\S2U2\iLock2.exe","-refresh")
#Run("\Program Files\S2U2\iLock2.exe","-refresh")
endif
if (slideforecast ne 0)
if (slideforecast eq 1)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", cond)
endif
if (slideforecast eq 2)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", ccond)
endif
Run("\Programmabestanden\S2U2\iLock2.exe","-refresh")
"#Run("\Program Files\S2U2\iLock2.exe","-refresh")
endif
endif
[Windows Mobile Apps and Games] holmanm:
Just surround both refresh commands such as

if (curweather ne weather)
#for s2u2 UserWeather
weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"&" Updated: "&CurrentTime
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)
if (ccode ne curforecast)
wallpaper=wallpaperfolder&ccode&wallpapertype
RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)
res2u2=0
if (WndActive("S2U2") = True)
res2u2=1
EndIf
Run("\Programmabestanden\S2U2\iLock2.exe","-refresh")
if (res2u2=1)
Run("\Program Files\S2U2\s2u2.exe")
EndIf
#Run("\Program Files\S2U2\iLock2.exe","-refresh")
endif
if (slideforecast ne 0)
if (slideforecast eq 1)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", cond)
endif
if (slideforecast eq 2)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", ccond)
endif
res2u2=0
if (WndActive("S2U2") = True)
res2u2=1
EndIf
Run("\Programmabestanden\S2U2\iLock2.exe","-refresh")
[COLOR=black] if (res2u2=1)[/COLOR]
[COLOR=black] Run("\Program Files\S2U2\s2u2.exe")[/COLOR]
[COLOR=black] EndIf[/COLOR]
"#Run("\Program Files\S2U2\iLock2.exe","-refresh")
endif
endif

BTW, the quote before the # (comment), on the 3rd line from the end, should be popping up an error. I assume you have ErrorLevel("off") which is probably suppressing the error.

Just thought you might want to get rid of it before it causes a problem.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Thanks for your help! gonna try it out!

I also had some problems with the update hours not being displayed correctly. I just removed the 0 from this line. I was getting this: Updated: 008:51 and ofcourse i want 08:51, so i tried this:

FullHour=hour
If (FullHour<10)
FullHour= "0"&FullHour
endif

FullHour=hour
If (FullHour<10)
FullHour= FullHour
endif

For now it seems to work ;). I will let you know!

edit--

@holmanm

Your code works!! Tnx!

edit2--

@ the TS:

Could you please put the above fixes in the next release for yahoo weather?
[Windows Mobile Apps and Games] AGY:
I give up :( I have spend 2 days trying to figure it out and I can get this damm wp working!!

I have installed S2U2 V1.05

Mortscript V4.1 (installed in memory card)

Weather Panel

and downloaded Weather Wallpaper WPO.33.MSCR

If someone can help me to figure it out it will be appreciate!

I am using Weather Panel (installed in Memory card)

the weather theme is storage in Storage Card\Weather

I don’t know where or what to put “location as per post #1

This is what I put in location for Edmonton Canada

# Get the path to the files needed

# your location (see http://developer.yahoo.com/weather/ on finding your location)

location="http://www.theweathernetwork.com/weather/caab0103"

# folder containing your weather wallpaper

wallpaperfolder = "\storage card\Weather\"

# wallpaper type jpg or gif

wallpapertype= ".jpg"

# how often to try and get the weather

delayHours = .5

# slideforecast is only if you are running s2u2 v 1.02 and up (otherwise do not change this)

# if you want no change to be made to the slide bar text then set slideforecast = 0 (default)

# if you want the daily forecast to be displayed on the slide bar then set slideforecast = 1

# if you want the current condition to be displayed on the slide bar then set slideforecast = 2

slideforecast = 0

wpPath = RegRead( "HKCU", "\software\MarsWare\WeatherPanel", "ProgramPath" )

script = SystemPath("ScriptPath") & "\" & SystemPath("ScriptName") & SystemPath("ScriptExt")

logfile = SystemPath("ScriptPath") & "\" & "Current Weather Log.TXT.
[Windows Mobile Apps and Games] brock1909:
made corrections
[Windows Mobile Apps and Games] XTREEM|RAGE:
It should be something like this:

I used the default wallpaperfolder from the 1st post. Because my own sh*t didnt work. And do you have an english rom? If

NOT

then you need to alter the wallpaper line and the refresh lines.

edit--

brock was first ;x
[Windows Mobile Apps and Games] superflysocal:
I made a mistake. I didn't know WP add a 0 already. you can get rid of everything from If to endif after the fullhour=hour altogether (but your way is fine also).

I updated this on v.33"b"
[Windows Mobile Apps and Games] holmanm:
The code looks fine. Let me make sure we are on the same page.

The refresh command unlocks S2U2 if active, stops ilock2.exe and restarts ilock2.exe. Then the code that I gave you to add will restart S2U2 if the screen is powered on and S2U2 was active. If the screen is off or S2U2 was not active then S2U2 will not be run.

So if the screen is on and S2U2 is active and curweather does not equal weather and (ccode does not equal curforecast and/or slideforecast does not equal 0) then the screen will flash back to the today screen for a few seconds when the refresh command stops S2U2 and then go back to S2U2 when my code restarts S2U2 (it will do this twice if both of the and/or conditions are met).

So when you say "it still unlock it self...sometimes" you mean "unlocks itself and stays unlocked", which it shouldn't be able to do per your code. Because there is no way for the S2U2 to reflect the registry changes unless it unlocks and restarts ilock2.exe, so anytime the script changes a registry value S2U2 will have to unlock and then lock back if active.

If we are talking the same, the problem may lie with the double running of the refresh command if both conditions are met. Let me know if yo agree with the above and we can rewrite the code to only run refresh once.
[Windows Mobile Apps and Games] AGY:
I will give it a try !
[Windows Mobile Apps and Games] brock1909:
heres to hoping it works for you!!
[Windows Mobile Apps and Games] superflysocal:
I think we should try to remove the second "refresh" altogether. It may not be needed. s2u2 may update this info even w/o a "refresh" like it does with temp change.

OR the other thing to do is this:

if (slideforecast ne 0)

if (S2Utext ne oldS2Utext)

RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", S2Utext)

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

endif

endif

endif

which should dramatically reduce the number of time the second refresh happens.
[Windows Mobile Apps and Games] superflysocal:
how you convert this to mortscript (i am pretty sure this is not valid as is)?

IF (ccode ne curforecast) or ( (slideforcast ne 0) and (s2utext ne olds2utext))

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

endif

Would this do the same thing:

IF (ccode ne curforecast)

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

else

if (slideforecast ne 0)

if (s2utext ne olds2utext)

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

endif

endif

endif

yeah, i think that might work..what do you think?
[Windows Mobile Apps and Games] XTREEM|RAGE:
Yes it sometimes unlock itselfs and stays unlock. But sometimes it runs perfectly. Yesterday i had a weird problem, i looked when around 21.50 cet and saw it updated right and didnt return to the 2day screen. When i looked at 22.36 cet, i saw nothing of yahooweather on S2U2 . No Background weather, no weather icon, no weather line and no slide weather line.

But when i looked at 00.10 cet i saw it was updated again and everything was fine again... :eek:
[Windows Mobile Apps and Games] superflysocal:
In my experience, when it updated itself with a "refresh" meaning there is a wallper change or slideforecast change, then when you turn on your unit there is a slight delay, as if when you run slide to unlock for the first time after a soft reset. As just don't do anything and in 1-2 seconds it is activated properly again. If you turn on your screen at the exact time it is refreshing, i think that is when you will catch it not actiavting slide 2unlock at all. But all i have to do is turn off the screen and turn it back on, and all is good again with slide2unlock. thus i think if you reduce the number of time s2u "refreshes", the problem will really reduce or go away, hence the code above. I am testing it out now, when I think it is stable, I will update the first post withth revision. But feel free to try it out yourselves if you know what you are doing. If you are adding this, remember to get rid of the "refreshes" that are already on the present code.
[Windows Mobile Apps and Games] holmanm:
That looks right. I think my advice would be to get rid of the ifs altogether such as.

#for s2u2 UserWeather
weather="C|"&code&"|"&temp&"º H"&hitemp&"º\L"&lotemp&"º"&" Updated: "&CurrentTime
RegWriteString("HKCU", "\Software\A_C\S2U2\", "UserWeather", weather)
wallpaper=wallpaperfolder&ccode&wallpapertype
RegWriteString("HKCU", "\Software\A_C\S2U2\", "Wallpaper", wallpaper)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", cond)
RegWriteString("HKCU", "\Software\A_C\S2U2\", "S2Utext", ccond)
res2u2=0
if (WndActive("S2U2") = True)
res2u2=1
EndIf
Run("\Programmabestanden\S2U2\iLock2.exe","-refresh")
if (res2u2=1)
Run("\Programmabestanden\S2U2\s2u2.exe")
EndIf

Because it doesn't cost anything to update the registry and if S2U2's not running the only effect the refresh does is take 100% cpu for about 3 seconds.
[Windows Mobile Apps and Games] XTREEM|RAGE:
Yeah sometimes it goes back to S2U2 after 1-2 seconds, but sometimes i see that it has updated but it will not return to S2U2. It will only stay on the 2day screen. If i turn off the screen it will return with the right back-ground etc. but i dont think that was the idea? ;x

Still w8 for the update :D

sorry for the crappy english ;x
[Windows Mobile Apps and Games] superflysocal:
How is this working for you? Do you have issues with s2u2 not starting up sometimes when you come out of standby?
[Windows Mobile Apps and Games] Nagrom Nniuq:
I can't get this script to work at all now that I'm running WinMo 6.1. I got the update on my Touch and so I decided to put the new script on too. It doesn't do anything.

Any ideas?
[Windows Mobile Apps and Games] holmanm:
Occasionally I have to hit the power button twice to get the screen to light up. The first time it flashes then goes back off, but it always stays on on the second push.
[Windows Mobile Apps and Games] AGY:
Thanks

I have try both instructions Brock and yours and I still can get this freaking thing to work :mad:

I have under the weather icon some text but no screen saver. i.e.

°H\L° Updated 11:15

what am I still doing wrong?
[Windows Mobile Apps and Games] brock1909:
post your whole script
[Windows Mobile Apps and Games] superflysocal:
I got the new leaked Sprint touch rom as well and it works fine for me. Did you remember to reinstall Mortscript?
[Windows Mobile Apps and Games] superflysocal:
But when screen does come on, does it ALWAYS come on with the S2U2 lock screen? So people including myself have seen it occasionally come on straight to Today screen w/o s2u2 lock screen, so I was wondering if your modification fix this or not.