yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] michoob:
My dear S2U2 users, today is a big day for you with this new release! :D

[COLOR="blue"]Latest version is IPTWeather_20100330:[/COLOR]
- By setting IPTWtomorrowForecastInS2U2UserWeather=-1, you'll have in S2U2 the current conditions icon, and under the icon, current temperatures
- Added setting IPTWS2U2UserWeatherTextPattern to set the text pattern of the text displayed under the S2U2 User Weather icon. Please read the weather.ini file for further information. By default, it is set to display information related to IPTWtomorrowForecastInS2U2UserWeather=-1.

The weather.ini file included is set to show current temperatures and current day high and low temperatures in the following way:

10° (7°) / Hi: 16° (14°) / Lo: 9° (6°)

And if no up-to-date data is available, then it will display:

* / Hi: 16° (14°) / Lo: 9° (6°)

Thanks to the IPTWS2U2UserWeatherTextPattern setting, you can change the display to something else.

It's YOUR choice.

Enjoy!
[Windows Mobile Apps and Games] alexovy:
works here. Thank you.

Is it possible to display the city name in S2U2?
[Windows Mobile Apps and Games] michoob:
@alexovy: I can add the pattern %CITY% so you can display the city name in S2U2. In the next version... ;)
[Windows Mobile Apps and Games] alexovy:
yes..please :D

Thank you!
[Windows Mobile Apps and Games] michoob:
Here's a new release with new available fields for the IPTWS2U2UserWeatherTextPattern setting!

[COLOR="blue"]Latest version is IPTWeather_20100330b:[/COLOR]
- Added following fields for the IPTWS2U2UserWeatherTextPattern setting: %CITY%, %SUNS%, %SUNR%, %OBSD% and %OBST%. Please check the weather.ini file for the description of each field.

Enjoy! :D
[Windows Mobile Apps and Games] michoob:
Your wallpapers are nice, even if I'd prefer bigger ones since I've got a WVGA device...

BUT you should change the wallpaper 18 to be the same as the 40, because the map I've found was wrong on that...

You should also perhaps add a wallpaper with the AccuWeather logo named 10000.JPG.
[Windows Mobile Apps and Games] alexovy:
HEHEHE....works great. Now I have City Name followed by temperatures.

Thank you very much.

I hope you dont mind bringing other suggestions in the futures, if you have time to develope, but this is the best weather script for S2U2.
[Windows Mobile Apps and Games] michoob:
@alexovy: screenshots of your use of IPTWeather are welcomed :)
[Windows Mobile Apps and Games] michoob:
Please find in the first post a link to howdykeith's post for alternative wallpapers for S2U2 ;)

Thanks howdykeith!
[Windows Mobile Apps and Games] TTJB:
Michoob, this looks fantastic thus far :) I'm trying to figure out how to change temp from celsius to fahrenheit? Thanks for your assistance.
[Windows Mobile Apps and Games] michoob:
@TTJB: please set IPTWaccuWeatherMetric=0 in the weather.ini file to get temperatures in fahrenheit.
[Windows Mobile Apps and Games] alexovy:
here's my S2U2.

I still need to change the texts up on the slider...but simetimes is short enough...when is sunny :D so I didnt change it anymore :D
[Windows Mobile Apps and Games] Pimmr:
Thank you, this did the trick :)
[Windows Mobile Apps and Games] michoob:
For your information, IPTWeather already tries to automatically shorten the text length.

For instance, if the text is too long and contains the word 'morning', it is replaced by 'a.m.', 'afternoon' is replaced by 'p.m.', etc.

But it certainly could be optimized, so if you have any suggestion on shortenning some words or expressions automatically, please tell me so I can code them into IPTWeather :).

Thank you in advance.
[Windows Mobile Apps and Games] mamv:
Fantastic work you have done here.

Have only one request that should be easy to acomplish, can you add in the IPTWS2U2UserWeatherTextPattern parameters one with the Forecast Text?

Thanks in advance.
[Windows Mobile Apps and Games] michoob:
New version released!

[COLOR="blue"]Latest version is IPTWeather_20100401:[/COLOR]
- If IPTWgoToAccuWeatherQuestion is empty, the weather update will be forced without a question.
- Added field %TXT% for the IPTWS2U2UserWeatherTextPattern setting to display the weather description.
- If it is past midnight, and no new data is available, then, with IPTWtomorrowForecastInS2U2UserWeather=-1, not last current weather icon/text is displayed in S2U2 UserWeather, but current night icon/text and the obsolete data pattern applies.

Enjoy!

Screenshots and/or beers are welcomed ;)
[Windows Mobile Apps and Games] mamv:
Hi michoob,

Thanks for the %txt% parameter, really great improvement.

I'm needing your help in the silent auto update feature. I've this parameters set:

IPTWiPhoneTodayDisabled=1

IPTWupdateWeatherNowQuestion=

IPTWforceDelayHours=0

IPTWforceDelayMinutes=5

IPTWwakeUpOnUpdate=1

IPTWpreventSleepOnUpdate=1

IPTWscheduleNextUpdateOnStart=1

IPTWdownloadDataAfterStartOnIconTap=1

IPTWreloadLastDataOnStart=0

IPTWtomorrowForecastInS2U2UserWeather=-1

IPTWS2U2UserWeatherTextPattern=%CITY% %CT%%NA% Feels Like %CRFT%%NA% %OBSD% %OBST%

But I'm not getting weather updates every 5 minutes. I'm only able to update the weather running getAccuWeather.mscr.

Can you please help me?

Thanks in advance.
[Windows Mobile Apps and Games] michoob:
@mamv: the IPTWforce delay parameters are for iPhoneToday users that run the iPhoneTodayAccuWeather.mscr script... what you want is to schedule updates every 5 minutes, and not force the update, so you have to set IPTWdelayHours=0 and IPTWdelayMinutes=5.

By the way, what's the point in updating the weather every 5 minutes as AccuWeather updates its data every 30 minutes ??? It's because of such intensive updates that the rainmeter service has been stopped by AccuWeather, so please do not update the weather so often.
[Windows Mobile Apps and Games] mamv:
Thanks michoob, going to try it. The 5 minutes was only for testing purpose, to see if it was working :). Normally I update every hour...
[Windows Mobile Apps and Games] lohtse:
Hmmmm

am having problems with updates... Now have to force them... was working fine then just stopped.

Could you take a look at the weather.in file have attached to see what I may be doing wrong..Am using latest version of S2U2...

regards

Lohtse
[Windows Mobile Apps and Games] michoob:
@lohtse: the problem is definitively with your S2U2 settings. Try to set in Advanced settings, "Don't Suspend Power" to ON, and in Power settings, "Power Off in" to OFF. I think S2U2 powers off your device, so MortScript notifications are not triggered...
[Windows Mobile Apps and Games] mamv:
In which directory you have it installed?

Mortscript doesn't like anything with spaces. Initially I had it installed in Storage Card, but I was getting an error that the script wasn't being found "storage card not initialized?". After googling I found out that it's a common error with mortscript and directories with spaces...

Hope this helps.
[Windows Mobile Apps and Games] lohtse:
I did as mich adviesd and all seemed well...

But after about 12hours the problem starts again. I have to either close morscipts processes or reboot to get it all working again...

When it's running its a killer app.. When not it's well eeer no use(sorry mich for comment)

regards

Lohtse
[Windows Mobile Apps and Games] michoob:
@lohtse: unfortunately, it's not a bug in IPTWeather, but some settings in S2U2. I had this issue once, but then it was gone. It's an issue in the windows notification catching system of S2U2. You should try to find some help on the S2U2 thread for the RunAt command of MortScript, because you're probably not the only one concerned. Of course, I'll try to find a solution too.
[Windows Mobile Apps and Games] lohtse:
Ok thanks to everyone for the help has been very welcome..but am leaving this app now as to much time spent on trying to get it to work

again thanks to everyone

regards

Lohtse
[Windows Mobile Apps and Games] howdykeith:
Hi,

Just for fun i tossed this into a cab.

It should create a Auto startup link as well as a settings link in the programs folder.

If I didnt get it right, let me know and i fix...
[Windows Mobile Apps and Games] alexovy:
Hello michoob,

where do you update the weather from?

My wallpaper and current weather icons are not like on accuweather website and also not like in reality.

Can you check the wallpapers/icons again, please or is it just me who is getting false forecast?

Suggestion: can you insert the time of the last update?

Thank you!
[Windows Mobile Apps and Games] michoob:
@alexovy:

- please indicate that you are using only S2U2 and not iPhoneToday (I guess), so I can know better what your are talking about, and also tell me which version you are using.

- the weather is updated from AccuWeather throught their API.

- you can use %OBSD% and %OBST% to display AccuWeather observation date and time in S2U2 UserWeather. Perhaps your weather has not been updated for a while... it seems that S2U2 v2.34 has some issues, so perhaps try another version of S2U2 if you can.

- as for the displayed icons, I think they match fine. For the wallpapers, I'm not 100% sure since they have been transcoded from Yahoo! Weather to AccuWeather...
[Windows Mobile Apps and Games] alexovy:
Sorry...you are right, I missed that:

I am using s2u2 v 2.34. I will try an older one to see if that helps.

Thanks for the %OBSD% and %OBST% also.

Regarding the wallpaper, I have the heavy raining wallpaper, outside is sunny with clowds, I go to accuweather and there is also clowdy. This is why I ask you about the wallpapers and icons.

Also, I dont have the moon and night wallpapers anymore. I think since I have updated S2U2 to 2.34 but I'm not sure.

Thank you!
[Windows Mobile Apps and Games] michoob:
To my mind, you have no update since you have installed S2U2 v2.34... you can confirm that by adding %OBSD% and %OBST% to the IPTWS2U2UserWeatherTextPattern and then run the startAccuWeather.mscr script to force an update of the display.

Perhaps you can by pass somehow this issue with the v2.34 of S2U2 with some S2U2 settings, but I would highly recommand not using this latest version with IPTWeather...
[Windows Mobile Apps and Games] michoob:
@alexovy: could you check in S2U2 Advanced settings that you have "Don't Suspend Power" set to ON, please? Perhaps when you allow S2U2 to suspend power, then no system notification is triggered, and the weather is never updated...
[Windows Mobile Apps and Games] alexovy:
I have changed to S2U2 v2.33 and I really looks better already. You are right, v2.34 has lots of bugs.

Thank you michoob.

I will keep you informed about later problems.
[Windows Mobile Apps and Games] howdykeith:
Hi Michoob,

so here is a hopefully working Mirror Weather image to wallpaper.

hopefully if u run it it will set your wallpaper to the weather...
[Windows Mobile Apps and Games] michoob:
Seems great!

Nervertheless, I don't want to include so many specific and a bit complicated features that require three third-party apps, and many system calls. Sorry.

BUT, as I understand that users may want to have some extra features associated with IPTWeather updates (call to your StatusTicker app, Today wallpaper update, sounds triggered on updates, etc.), the next version will have the sys\userScriptOnUpdate.mscr that will be called on each update of the displayed data, and where you will be able to code whatever you want with an easy access to the IPTWeather data. :)
[Windows Mobile Apps and Games] howdykeith:
sounds cool...

actually i am just curious if the script works on your phone...

I enclosed 4 methods of Today refresh, just to see if one of em worked where the others don't. (I wonder what u mean by system calls?)

I think 3 of the 4 commands worked on my phone.

Manila of course should refresh without an xtra command.

:rolleyes:
[Windows Mobile Apps and Games] michoob:
Isn't that some kind of system call:

SendMessage( HWND_BROADCAST, WM_WININICHANGE, 242, 0 )
# to get the today screen refreshed

I haven't tested your code yet, but with so many apps just to update a wallpaper, it seems complicated to me... will check that later perhaps.
[Windows Mobile Apps and Games] howdykeith:
these r nothin, just goes to the Today page:

If ( FileExists("\Windows\Home.exe") )
run( "\Windows\Home.exe" )
EndIf
If (FileExists(SystemPath( "StartMenu" ) \ "Today.lnk"))
Run(SystemPath( "StartMenu" ) \ "Today.lnk")
EndIf

Each one of these commands should do exactly the same thing:

message("here goes:")
Run( SystemPath("ScriptPath") \ "ctw.exe", "-w \Program Files\S2U2\gfx\wallpaper\23.JPG" )

message("here goes:")
Run( SystemPath("ScriptPath") \ "MichasSpecialRefresh.exe" )
message("here goes updateTodayItems")
Run( SystemPath("ScriptPath") \ "MichasSpecialRefresh.exe", "-updateTodayItems" )
message("go forceRepaintWallpaper")
Run( SystemPath("ScriptPath") \ "MichasSpecialRefresh.exe", "-forceRepaintWallpaper" )
message("go refreshWithAllParameters")
Run( SystemPath("ScriptPath") \ "MichasSpecialRefresh.exe", "-refreshWithAllParameters" )

message("here goes RefreshToday.exe:")
Run( SystemPath("ScriptPath") \ "RefreshToday.exe" )

message("go SendMessage")

SendMessage( HWND_BROADCAST, WM_WININICHANGE, 242, 0 )
# to get the today screen refreshed

message("go FacadeRefresh")

Run(SystemPath("ScriptPath") \ "FacadeRefresh.exe","/reload")

At least one of these commands, if not all, should work on your phone. Maybe none of them do? If none of them work, I would probly let Micha know simce he probly might be able to update his exe.

SendMessage should work, but doesnt since mort 4.2.

facaderefresh works on smartphones, maybe it works on ppc too. Michas refresh should work on SP but i haven't checked yet.
[Windows Mobile Apps and Games] lohtse:
Hi Michoob

I can confirm that it ius def version 2.34 of s2u2 that was the problem...All works PERFECT now with s2u2 2.33.... Thank you for the advise.... and thank you for the patiences..

regards

Lohtse
[Windows Mobile Apps and Games] mamv:
I'm using S2U2 v2.34 and I have no problems whatsoever.

michoob, can you explain me how the gps position is translated into a city?
[Windows Mobile Apps and Games] michoob:
Ok, so I guess the problem is not with S2U2 v2.34 but with some settings...

The GPS position is set as is to AccuWeather that sends backs the weather related to the sent position. But AccuWeather's database to translate GPS position into a city doesn't seem to be very accurate, but very approximative (around 30km).
[Windows Mobile Apps and Games] myso:
What's the problems u got if u worked with S2U2 v2.34?

What settings do I need to modify?

As for me, I got that the S2U2 V2.34 would be switched to unlocked status as the IPTWeather updated the weather information each time. Is it normal?

Thanks!
[Windows Mobile Apps and Games] michoob:
myso: to update the S2U2 wallpaper and/or slide text, S2U2 needs to be restarted, so at each update, IPTWeather restarts S2U2, but in a clever way, that means if S2U2 was in locked state, it should return in lock state after the udpate. At least it works with S2U2 v2.33. I have not yet tested S2U2 v2.34.
[Windows Mobile Apps and Games] michoob:
IPTWeather_20100414

New version is out!

Please go to Google Code for more information on this release and future releases.
[Windows Mobile Apps and Games] mamv:
For me it doesn't. It only turns on the screen.

I only use it with S2U2, iPhoneToday is disabled.
[Windows Mobile Apps and Games] michoob:
@mamv: if you don't want IPTWeather to turn on the screen on each update, you can change to following setting:

IPTWwakeUpOnUpdate=0
;Set this to 1 to wake up screen on update.

I use IPTWwakeUpOnUpdate=1 because my phone disable data connections when the screen is off so I can save battery :), but if your data connection is always available, you may want to change that behaviour. ;)
[Windows Mobile Apps and Games] thekenster:
What do you use to disable data connections when the screen is off ??

Thanks.
[Windows Mobile Apps and Games] michoob:
@thekenster: I have a Data tab in Phone settings with my ROM and an option to disconnect all data connection when screen is off :). But I don't know how to have such a tab if you don't have it, sorry. It is embedded in kwbr's ROM. I think Dutty has made a cab once to add such a tab on WM 6.1, in case you want to google for that.
[Windows Mobile Apps and Games] howdykeith:
hiya here's a cab version...
[Windows Mobile Apps and Games] michoob:
@howdykeith: there's a major problem with you cab version of IPTWeather: it installs IPTWeather in the \Program Files\ directory. BUT if IPTWeather is installed in a directory with spaces in the path, it won't work because of MortScript limitation not allowing to call a script from another script if the path contains spaces... Does the cab actually work on your device?
[Windows Mobile Apps and Games] howdykeith:
i installed it fresh, but didn't finish configuring. I will make sure it is working now.

I am curious about " because of MortScript limitation not allowing to call a script from another script if the path contains spaces". Where is that mentioned?
[Windows Mobile Apps and Games] michoob:
It is a result of my tests :).

For instance, if in "\Program Files\Test" you have two scripts, on test.mscr and another one subtest.mscr.

In subtest.mscr:

Message("Called with argv[1]=" & argv[1])

And in test.mscr:

CallScript(SystemPath("ScriptPath") \ "subtest.mscr", 1)

If you run test.mscr, it fails in calling the subtest.mscr script.
[Windows Mobile Apps and Games] howdykeith:
actually it worked just fine. i get a "Called with argv[1]=1".

maybe u have an earlier version of mortscript?

other than i goofed up the shortcut so there are two IPTW folders, it seems to be great.

I would fix the shortcut folder if i were me, and i would ask if there were any other shortcuts u would expect that i am not making. i only made two links.

I do have a question while u r here, so in the registry have u set the current path of the IPTWeather installation? So if somebody didnt use a cab and stuck it in the root, the registry would have a "\IPTWeather". I ask because I want to point to your folder so i can get the wallpaper app going when u update, as u mentioned.

Thanks much!
[Windows Mobile Apps and Games] myso:
Hi, there:

Where Could I download the S2U2 V2.33?

Is the latest IPTWeather V.20100414 available now?

Thanks!
[Windows Mobile Apps and Games] michoob:
I'm using MortScript 4.2, which is the latest non-beta release, isn't it?

Indeed, I've redone my tests, and the problem is actually with the RunAt command.

So to reproduce the issue, please try with the following test.mscr script (in \Program Files for instance):

mort = SystemPath("ScriptExe") \ "MortScript.exe"
script = SystemPath("ScriptPath") \ "subtest.mscr"
utime = TimeStamp() + 10
RunAt(utime, mort, script)

And with the following subtest.mscr:

Message("Ok")

When you run test.mscr, you get the following error:

Script Files\subtest.mscr not found, waiting for existance (sotrage card not initialized?)

It's like if MortScript has called RunAt(utime, mort, "Files\subtest.mscr") instead of RunAt(utime, mort, "\Program Files\subtest.mscr") !

Damned, I have never thought of that!

In fact, by having multiple IPTWeather folder, you can set weather icon updates for several cities in iPhoneToday!

IPTWeather is so great! :p

Don't understand...

If you want to run your wallpaper app to run when IPTWeather updates, just call your wallpaper app from the sys\userScriptOnUpdate.mscr script.

In the sys\userScriptOnUpdate.mscr, you could call your wallpaper app with something like CallScript("\Program Files\WallpaperApp.mscr", SystemPath("ScriptPath")) to pass the IPTWeather path to the argv[1] value in your WallpaperApp.mscr script. :)

BUT, if you really want to, because of App-to-date, I actually store in the registry the sys\version.xml path in ITPWeather value of the "HKCU\Software\MoDaCo\AppToDate\XML" key. :)

Have you tried that? ;)

But actually, you should first try S2U2 v2.34 as it seems it does work for some users...

Have you read the first post?

Yes, IPTWeather_20100414 is available since yesterday.

Follow the links...
[Windows Mobile Apps and Games] michoob:
Good news, I've found why notifications were not working if IPTWeather was installed in a path with spaces.

It is because the name of the script is set as the argument of the Windows system notifications in which spaces are the argument separator...

The real good news is that now that I've understood that, I've found a way to have update notifications set correctly for IPTWeather.

So the next version will be installed by default in the \Program Files\IPTWeather folder, and even perhaps through a .cab that could be downloaded with App-to-date :).
[Windows Mobile Apps and Games] michoob:
IPTWeather_20100415

New version!

Enjoy! :D
[Windows Mobile Apps and Games] michoob:
I have forgotten to tell you the latest version of IPTWeather is now by default installed in the \Program Files\ directory.
[Windows Mobile Apps and Games] tito12:
Hi there

Thank you for your work but I can't get it to work properly in tronikos iPT following the instructions you give in the linked wiki. Can you please write a detailed installation guide :) ?

Edit: I found I have to install a shortcut of start...mscr in start menu and point to it in edit icon.

"By taping on an icon well configured in iPhoneToday, you can display up to 5 days forecast " How do I well configure an icon ?

Thanks in advance
[Windows Mobile Apps and Games] michoob:
In the linked wiki, you have all the installation steps described.

Have you installed the latest cabbed version available, IPTWeather_20100415.cab?

This cab already installs the shortcut of start...mscr.

From what you say, it seems you have not followed the last steps of the installation process:

•Edit the weather.ini file to match your preferences.

•In iPhoneToday, change the icon numbered IPTWcurrentWeatherIcon on the page IPTWcurrentWeatherPage (like in the weather.ini file) to use for instance the icon \Program Files\IPTWeather\accuweathericons\AccuWeather.bmp, and to run the iPhoneTodayAccuWeather.mscr script that will show weather forecasts as icons in iPhoneToday.

•Restart your phone or just run startAccuWeather.mscr

I don't see what steps should be more detailed in the wiki page, but if you think that something is not clear enough, tell me and I'll try to improve it.
[Windows Mobile Apps and Games] tito12:
Thank you for your fast reply :)

I must be dense but I can't understand "•In iPhoneToday, change the icon numbered IPTWcurrentWeatherIcon on the page IPTWcurrentWeatherPage (like in the weather.ini file) to use for instance the icon \Program Files\IPTWeather\accuweathericons\AccuWeather.bmp, and to run the iPhoneTodayAccuWeather.mscr script that will show weather forecasts as icons in iPhoneToday." :confused:

Edit: Your cab installs to startup, not to startmenu
[Windows Mobile Apps and Games] michoob:
You don't need anything in the StartMenu to make work IPTWeather.

In the weather.ini file, you have two settings: IPTWcurrentWeatherIcon and IPTWcurrentWeatherPage.

These settings are for the identification of the icon of iPhoneToday you want to use for the current weather icon.

By default, it is set to 0 and 0, so the first icon of the first page will show the current weather icon.

When you click on the current weather icon, I guess you don't want to launch any specific application, but you would like to show weather forecasts as icons.

To do that, this icon must call the iPhoneTodayAccuWeather.mscr script that will "expand" the weather forecast icons in iPhoneToday, beginning with the icon specified in the weather.ini file with the settings IPTWforecastStartIcon and IPTWforecastStartPage.

Perhaps you may help me make it more understandable in the installation steps?
[Windows Mobile Apps and Games] tito12:
Thanks, I'll try that..

As for the mscr files, IPT doesn't recognise them as exec files, you have to create a shortcut and then point towards this shortcut.