yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] sv0911:
Hi michoob,

maybe you can give me some advice.

I´m using titanium weather (user weather) and my default samsung lockscreen on my omnia2 wm is showing the correct weatherimage but everytime when it locks and i unlock it, the weatherimage will only update itself when i do a softreset..!!

Can i add some line in my mscr which can fix this issue..??

I´m reading your thread since a few days and i´m not using your IPTWeather up till now, but it seems that you realy know a lot of writing scripts. I tried to find a solution anywhere on the internet.. but couldn´t find anything..!!

I realy apriciate if you have some advice for me..!!

Gr. sv0911
[Windows Mobile Apps and Games] michoob:
Unfortunately, I know nothing about the Titanium interface, so I cannot help you. Sorry.

Have you checked the following thread? They might help you there.
[Windows Mobile Apps and Games] sv0911:
Thank´s anyway,

i ´l try the link..!

Greetings

sv0911
[Windows Mobile Apps and Games] michoob:
Quick-fix

In case you didn't notice, AccuWeather has made a change on its website that makes the the parsing method of IPTWeather for translation of the foeecast descriptions deprecated.

Please find a quick-fix here.

Please just replace the existing getAccuWeather.mscr in the sys folder by this new one.

I won't be able to make a cab and publish it as a new version for several weeks, so that's why you will get only this quick-fix for the moment.
[Windows Mobile Apps and Games] zvi1:
IPTWdistconnetOnExit

hi mochoob

I have noticed that last 2-3 days IPTWdisconnectOnExit=1 does not functioning any more. it was set to 1 for a long time and connection was stopped after each update now connection does not disconnect on exit.

any idea ?

by the way accuweather.com have correctet sunset & sunrise time with daylight saving time and it is correct now.

thankyou
[Windows Mobile Apps and Games] michoob:
Yes, the quick-fix should solve this too.
[Windows Mobile Apps and Games] michoob:
Please redownload the quick-fix, there was still an issue with the previous one. It should now be totally working until AccuWeather updates its website.
[Windows Mobile Apps and Games] zvi1:
IPTWdisconnectOnExit

i have redownload the quick-fix but it did not fixed the IPTWdisconnectOnExit

still connected after weather update!

thank you
[Windows Mobile Apps and Games] michoob:
Does IPTWeather updates the current weather icon?

To translate weather descriptions, IPTWeather needs to download more data, then more issues can occure.

Perhaps IPTWeather fails to download the weather description translations.

You should try without setting anything for IPTWtranslationLanguageCode.

If it works after that, then it means there is an issue in downloading the weather description translations.

If it still doesn't work, then it means something has changed on your device that make the disconnection feature of MortScript not work. You should then download VJVolubilis and configure IPTWeather to use it to toggle your data connection.

I'll try to post another quick-fix to make sure IPTWeather still works even if it fails downloading the translations.

Sorry for all that.

Actually, I knew that introducing the weather description translations, this kind of issues may happen since the translation is not done using an API, but just by parsing the AccuWeather.com website. :(
[Windows Mobile Apps and Games] michoob:
Quick-fix 2

Please find here a new quick-fix here so IPTWeather still works correctly even if the translation fails.
[Windows Mobile Apps and Games] zvi1:
1. I have just chanced weather.ini without setting anything for IPTWtranslationLanguageCode. i will wait for next update in 1-2 hour.

2. if it means there is an issue in downloading the weather description translations can you disconnect after 1 min if connection was started by this program?

3.VJVolubilis does not work on my HTC Touch HD, i have tried it before, so it can not be the solution for me.

i appreciate your work, thank you.
[Windows Mobile Apps and Games] michoob:
Please check my post above yours ;).

Noted.
[Windows Mobile Apps and Games] zvi1:
fix2

just installed , will wait for next weather update
[Windows Mobile Apps and Games] zvi1:
PTWdisconnectOnExit ok

1. without setting anything for IPTWtranslationLanguageCode

2. Fix 2 installed

now PTWdisconnectOnExit is ok (do not know if 1 or 2 solved it)
[Windows Mobile Apps and Games] michoob:
In fact, it is more the IPTWtranslationLanguageCode set to empty that really solved your issue.

But, with the quick-fix 2, you should now try to set IPTWtranslationLanguageCode=cs (if I remember well ;)) and the IPTWdisconnectOnExit=1 feature should work, but at worse, you'll get empty descriptions sometimes.
[Windows Mobile Apps and Games] zvi1:
I have set IPTWtranslationLanguageCode=he and will wait for next update.

At worse, I'll get empty descriptions sometimes or will get them in English.

Thank you.
[Windows Mobile Apps and Games] michoob:
Empty descriptions, because I haven't designed this feature with the hypothesis the translation may fail.

It is a bad hypothesis of mine.

I'll change that but it would imply a new version and not just a fix for one file, so it will be in the next version, but I don't know when. In several weeks perhaps...
[Windows Mobile Apps and Games] zvi1:
IPTWtranslationLanguageCode=he is the problem so i will delete "he"

so fix2 fixed it,

descriptions are in english they are not empty - that is ok for now

I will wait for next update

thank you
[Windows Mobile Apps and Games] chancer63:
I have

IPTWtranslationLanguageCode=de

and I had an empty S2U2 weather description this morning with the first fix. And S2U2 did not refresh the time.

But with the new fix I have again a German translated weather description.

THX & CU
[Windows Mobile Apps and Games] chancer63:
No refreshing of iPT with the new version 1.5.4 :(. Maybe tronikos changed s'thing with the reloadIcon(s)- function?

CU
[Windows Mobile Apps and Games] michoob:
For me IPT 1.5.4 works fine.

Maybe IPTWeather is kind of locked. That may happen sometimes, especially if there is a download error.

Download errors may happen more often if you use the translation.

Try to show/hide the forecast icon, then answer Yes to update the weather.
[Windows Mobile Apps and Games] chancer63:
I did a soft reset, I deleted the "=de" in Translation. The description and the S2U2- wallpaper changed. So the update must have worked.

That's what I do all the time: No refreshing of iPT, no new weather- icon, no new forecast- icons. The forecast- icons are from the last date I updated with the old 1.5.3- version.

:(

I will try to re- install the 1.5.3- version this afternoon and see what happens. Have to go to work now...

CU
[Windows Mobile Apps and Games] michoob:
@chancer63: which version 1.5.4 have you installed? It is working for me with the second one (I haven't tested the first one).
[Windows Mobile Apps and Games] chancer63:
The second one. It doesn't work for me. I try to reinstall..

CU
[Windows Mobile Apps and Games] michoob:
Hum... do you have the forecast icons always displayed?

I have tested only the case where only the current weather icon was displayed.
[Windows Mobile Apps and Games] chancer63:
Yes, I have, I reinstalled your newest version and copied my weather.ini. Now it works again. Strange..

THX & CU
[Windows Mobile Apps and Games] michoob:
Strange, yes or not.

In fact, the download feature of MortScript is not very well done to my mind (in fact, the read of urls). Indeed, if you encounter any issue with the connection during the update, MortScript doesn't always quit and may hang.

Then, you need to kill the MortScript process, knowing the same script cannot run twice simultaneousely.

With IPTWeathet, you have two solutions to kill the hung process:

1 - soft-rest: should always work, but if you never manage to update, then, you won't have up-to-date information.

2 - if it is hung during the auto-update, you can run the start script or expand then hide the forecast icons to get the question to update the weather.
[Windows Mobile Apps and Games] lovej:
hi mochoob

i do not find how to set iphonetoday in order to display current weather in iPhoneToday as an icon! especially iPhonetoday image set！would you create detailed explanation by pictures for us？
[Windows Mobile Apps and Games] michoob:
@lovej: it doesn't seem you have installed IPTWeather, haven't you?
[Windows Mobile Apps and Games] lovej:
@michoob

i do not install iphonetoday and use exe version.

i have installed Mortscript 4.3.

i have instaled IPTWeather_20100712.cab and extract accuweathericons.zip into \Program Files\IPTWeather\.

i do not edit weather.ini file any more.

what about to do next?

i have created a new icon on iphonetoday.and set the 'Execute' field to call the script iPhoneTodayAccuWeather.mscr.

i do not how to set the 'image' field?
[Windows Mobile Apps and Games] michoob:
@lovej: ok, now I have more elements to know how to help you ;).

By default, IPTWeather will update the first icon of the first page of iPhoneToday.

You say you have created a new icon on iphonetoday and set the 'Execute' field to call the script iPhoneTodayAccuWeather.mscr.

Which icon number and page number is this icon located at?

If you know this, then just set in the weather.ini file IPTWcurrentWeatherIcon and IPTWcurrentWeatherPage according to the position of your weather icon.

Then, as stated in the installation guide, just restart your phone or just run startAccuWeather.mscr so the next update will be scheduled in IPTWdelayHours and IPTWdelayMinutes.

If you want to update just after the installation, just run the script getAccuWeather.mscr which will update the weather.
[Windows Mobile Apps and Games] lovej:
@michoob

oh，it does not display anything！！

steps：

1、use iphonetoday1.54 exe version.

2、have installed Mortscript 4.3.

3、have instaled IPTWeather_20100712.cab and extract accuweathericons.zip into \Program Files\IPTWeather\.

4、set IPTWcurrentWeatherIcon=0 and IPTWcurrentWeatherPage=0 in weather.ini file.

5、creat a new icon which is first icon on iphonetoday‘s first page.leave image field blank，set the 'Execute' field to call the script iPhoneTodayAccuWeather.mscr.

6、restart my phone，run startAccuWeather.mscr and getAccuWeather.mscr.

7、iphonetoday first page display image of mortscript

how to do next?
[Windows Mobile Apps and Games] chancer63:
Try MortScript 4.2. 4.3 makes problems.

CU
[Windows Mobile Apps and Games] michoob:
@lovej: try to enable your data connection, then run the script getAccuWeather.mscr. It should update.
[Windows Mobile Apps and Games] lovej:
@michoob

Now i am useing MortScript 4.2 instead of MortScript 4.3.

all of problems have been solved！
[Windows Mobile Apps and Games] lovej:
now i have some new problems

1、how convert Celsius to Fahrenheit and display temperature as Fahrenheit？

2、i set IPTWdisplayCityName=1 ，but do not find cityname on iphonetoday？

3、it always modify my device battery setting，and make background light always on，how to disable the function？

thx all
[Windows Mobile Apps and Games] michoob:
@lovej: ok, great!

@all: I have helped a little sv0911 who is updating an AccuWeather app on Modaco for Titanium + S2U2 (also on xda). You can find on his thread many fullscreen S2U2 weather icons you can use with IPTWeather too. Of course, you will have to set IPTWtodayForecastInS2U2Wallpaper=0 so IPTWeather doesn't update the S2U2 wallpaper, and just set IPTWtomorrowForecastInS2U2UserWeather=1 or -1 with a wallpaper of your choice, to get something like the following screenshots and even more!

BURNING SUN THEME:

NIGHT COLORED THEME:

I'll yet have to add to IPTWeather the feature I have developped for sv0911 which is the possibility to have S2U2 weather icons stored anywhere, like on the storage card, so you can use the fullscreen weather icons without using to much device memory.

Enjoy!
[Windows Mobile Apps and Games] chancer63:
Weather Icons

Speaking of weather icons: here are some new. I try to make my iPhoneToday with icons which look like they were made of glass.

So I made these. Size: 96x96.

CU
[Windows Mobile Apps and Games] michoob:
Thanks chancer63, I've added a link to your new icons with a preview picture on the first post.

Also, I've noticed your first pack icons are numbered for Yahoo! Weather and not AccuWeather.
[Windows Mobile Apps and Games] chancer63:
I think I now know the answer: The refreshing doesn't work with iPhoneTodayDesktop.exe. You cannot use this version, you have to stuck with iPhoneToday.exe.

And when you have used the Desktop- version only for once, you cannot roll back to the "normal" version: no refreshing there, too.

I had to re- install iPhoneToday, iPTWeather, and to do a soft- reset.

:(

CU

Now I REALLY know the answer.

The problem is: once in a while I tried iPhoneTodayDesktop.exe. iPTW doesn't recognize this file and so it doesn't refresh iPT.

And because I had

IPTWiPhoneTodayDisabled=
;Set this to 1 if you don't want to use iPhoneToday
;If left blank or equal to 0, IPTWeather will disable iPhoneToday related IPTWeather features if iPhoneToday is not used or disabled.
;Set this to -1 if you want to disable iPhoneToday related IPTWeather features if iPhoneToday is not used or disabled, BUT you want to enable them again as soon as iPhoneToday is enabled.

the script automatically disabled iPTW for iPT even if I re- started the "real" iPhoneToday.exe.

If I set

IPTWiPhoneTodayDisabled=-1

, iPTW will refresh iPT as soon it is started again

BUT

the problem is: iPTWeather cannot handle the new file iPhoneTodayDesktop.exe.

It took me three hours of playing around but now it's clear :).

CU

_______

PS: If I change the code a bit:

If (NOT RegRead("HKLM", "Software\Microsoft\Today\Items\iPhoneToday", "Enabled") AND NOT ProcExists("iPhoneTodayDesktop.exe"))

in the iPhoneTodayAccuWeather.mscr I can get iPTWeather to handle the refresh of the forecast- icons but the iPT background- changing doesn't work.
[Windows Mobile Apps and Games] michoob:
Yes, indeed, IPTWeather tries to automatically detect if iPhoneToday exe or dll is enabled, but doesn't check for iPhoneTodayDesktop.exe.

This is a security just to avoid IPTWeather enters in an infinite loop.

I won't be able to upload a new version for several weeks, but you can edit the files by yourself. Just look for "iPhoneToday.exe" in the iPhoneTodayAccuWeather.mscr and the getAccuWeather.mscr files and add in the test ' AND NOT ProcExists("iPhoneTodayDesktop.exe")' so you have, as you have already found by yourself:

If (NOT RegRead("HKLM", "Software\Microsoft\Today\Items\iPhoneToday", "Enabled") AND NOT ProcExists("iPhoneToday.exe")[B] AND NOT ProcExists("iPhoneTodayDesktop.exe")[/B])

Also make sure you set IPTWiPhoneTodayDisabled=-1 or IPTWiPhoneTodayDisabled=1 depending on the behaviour you want to have.

It should work.
[Windows Mobile Apps and Games] michoob:
As you may all have noticed, I am editing the first post to have a better overview of all available icons and wallpapers.

I have also uploaded a new version of the S2U2 spil icons so you don't have to remap the icons from Yahoo! Weather to AccuWeather.com.

:D
[Windows Mobile Apps and Games] chancer63:
Done. And it seems to work now.

I'll attach the two files if someone wants to try.

THX & CU
[Windows Mobile Apps and Games] michoob:
Thanks chancer63.
[Windows Mobile Apps and Games] michoob:
1. Set IPTWaccuWeatherMetric=0 in the weather.ini file

2. It is displayed only when you expand the forecast weather icons by running the iPhoneToday.mscr script. Make sure IPTWforecastStartIcon and IPTWforecastStartPage is configured to feet your needs, knowing that IPTWeather will need you to have up to 12 icons in iPhoneToday on the IPTWforecastStartPage starting from the IPTWforecastStartIcon in order to display all the new temprary forecast icons. Even blank icons are enough.

3. After the weather update succeeds, your device battery settings should be reverted back. I use this feature since my device disconnects all data connections when it turns off. But you can disable that feature by setting IPTWpreventSleepOnUpdate=0.
[Windows Mobile Apps and Games] michoob:
Please check the first post for links to Fullscreen weather icons for S2U2 to have the weather icon fullscreen in S2U2 instead of having it in the bottom left corner!
[Windows Mobile Apps and Games] lovej:
@michoob

thx,there are four new problems

1.mortscript always display error when i run IPTWreloadicon.mscr or IPTWreloads2u2.mscr or IPTWS2U2icontext.mscr or IPTWusebosoletedata.mscr. it says Inwalid main key for 'regvalueexists' line4 …… what has happened?

2. i set IPTWdelayHours=2 and IPTWdelayMinutes=0,but it does not update automatic，so i have to run iphonetodayaccuweather.mscr manually,but sometimes it does not update!

3. i set IPTWcurrentWeatherIcon=3 and IPTWcurrentWeatherPage=1,it always update first icon on first page when i update weather manually by run getaccuweather.mscr and startaccuweather.mscr and iphonetodayaccuweather.mscr.

4. i donot want iphonetoday display realfeel,what can i to do ?

help me!

thinks!
[Windows Mobile Apps and Games] michoob:
Don't run scripts that are in the sys folder.

You are wrong, or you have problems with your data connection.

You are wrong. I just tested and it works fine. Make sure you have a valid icons (existing or blank icons) where you want to display the weather.

IPTWhideRealFeelInForecastIcons=1
[Windows Mobile Apps and Games] lovej:
@michoob

would you tell me how to do if i want to update weather manually ?
[Windows Mobile Apps and Games] michoob:
You can either - that is the "normal" way - expand then hide weather forecast icons with iPhoneTodayAccuWeather.mscr (if the last update is older than IPTWforceDelayHours and IPTWforceDelayMinutes, then, you will get the IPTWupdateWeatherNowQuestion question to update), or - that is the "advanced" way - run in the sys folder getAccuWeather.mscr.
[Windows Mobile Apps and Games] lovej:
hi

my other app's icon became chaos when iptweather update weather .for example ,the icon of opera will became RESCO explore 's icon or became a white blank .so i have to soft restart my device and test several times ,it also like this .is there anyone else have the problem ?how to solve it ?
[Windows Mobile Apps and Games] michoob:
Do you know how your other icon update apps actually updates icons?

IPTWeather never updates the icons.xml file directly, but uses the API of iPhoneToday to do it.

If your other apps don't use the API of iPhoneToday, but edit the icons.xml file, I guess some issues may appear, especially if the weather forecast icons are expanded.

What are these icon update apps you're talking about? They are perhaps a bit deprecated, I don't know.

Please describe better your issue and post at least a link to these apps so I or anyone can reproduce your issue and help you.
[Windows Mobile Apps and Games] lovej:
hi author

i capture images from my touch hd
[Windows Mobile Apps and Games] Luke-ro:
First of all thank you so much for this application, i just love it!

As other said it's a little complicate to install it and make all the settings in the weather.ini file but at the end it seems i managed to make almost everything work.

You replied to someone else:

If i use the second method something strange and annoying happens to my Samsung Omnia, i have no idea why but the phone lose the settings about the battery power management... basically the screen never turn off again after the script is executed...

The same thing happens if i change the location, IPTW ask if i want to update the data and after that the power settings are gone... this happens any time i'm asked if i want to update the weather and i say yes and the weather is not updated... any idea why?

One more thing... i have problems to have IPTW to auto update after a determined period of time, for exemple 30 mins. I changed these:

IPTWdelayHours=0

IPTWdelayMinutes=30

After 30 mins the screen wake up, i wanted this, but the icon is not updated and again the power settings are lost.

This thing with the power settings is driving me crazy, i love this app, but i can't change the settings every time.

Thank you again for this app!
[Windows Mobile Apps and Games] lovej:
hi author

s2u2's icon will be update immediately after iptweather updated,but iphonetoday'icon do not update at all .

there is my weather.ini

would you tell me what can i do for the problem ？

thx

[Custom settings]

IPTWdisplayHumidityIcon=0

IPTWhumidityIcon=25

IPTWhumidityPage=0

IPTWhumidityIconName=AccuWeather.png

[User settings]

IPTWwriteForecastInFile=

IPTWhideRealFeelInForecastIcons=

IPTWtranslationLanguageCode=en-us

IPTWconvertTimeFormat=1

IPTWaccuWeatherAPI=rdona

IPTWquickLocationChangeSleepMsgTime=

IPTWaccuWeatherIconPath=\Program Files\IPTWeather\accuweathericons

IPTWlanguageFile=eng.ini

IPTWiPhoneTodayDisabled=-1

IPTWaccuWeatherMetric=1

IPTWaccuWeatherLocation=ASI|CN|CH001|BOZHOU

IPTWlocationLatitude=

IPTWlocationLongitude=

IPTWgoogleUserID=

IPTWdelayHours=2

IPTWdelayMinutes=0

IPTWvjvolubilisPath=\Program Files\iphonetoday\tools\VJVolubilis.exe

IPTWinternetConnection=The Internet

IPTWdisconnectOnExit=1

IPTWcurrentWeatherIcon=3

IPTWcurrentWeatherPage=1

IPTWforecastStartIcon=0

IPTWforecastStartPage=2

IPTWforecastIconSkipFirstAtSunset=1

IPTWforecastSkipIconFrequency=

IPTWforecastSkipIconQuantity=

IPTWiconsExtension=png

IPTWgoToAccuWeatherQuestion=Go to accuweather.com?

IPTWstartText=Tap to start

IPTWmondayText="Mon: "

IPTWtuesdayText="Tue: "

IPTWwednesdayText="Wed: "

IPTWthursdayText="Thu: "

IPTWfridayText="Fri: "

IPTWsaturdayText="Sat: "

IPTWsundayText="Sun: "

IPTWobsoleteDataPrefix=*

IPTWupdateWeatherNowQuestion=Update weather now?

IPTWforceDelayHours=2

IPTWforceDelayMinutes=0

IPTWdisplayCityName=1

IPTWdefaultCityIcon=AccuWeather.png

IPTWdisplayObservationTime=@

IPTWwakeUpOnUpdate=1

IPTWpreventSleepOnUpdate=0

IPTWnightIconSuffix=

IPTWscheduleNextUpdateOnStart=1

IPTWdownloadDataAfterStartOnIconTap=0

IPTWreloadLastDataOnStart=-1

IPTWuseS2U2wallpaperForBackground=0

[S2U2 settings]

IPTWS2U2Path=\Program Files\S2U2\

IPTWtomorrowForecastInS2U2UserWeather=-1

IPTWS2U2UserWeatherIconToForce=

IPTWS2U2UserWeatherTextPattern=%CITY%/%OBSD%/TEM:%CT%%NA%/%TXT%/Hi:%HT%/Lo:%LT%

IPTWtodayForecastInS2U2Wallpaper=

IPTWS2U2WallpaperExtension=png

IPTWS2U2WallpaperPath=\Program Files\IPTWeather\AccuWeatherHD

IPTWdefautS2U2Wallpaper=dunno

IPTWtodayForecastInS2U2Text=

IPTWdefaultS2U2Text=slide to unlock

[Script settings]

IPTWregRoot=HKCU

IPTWregKey=Software\iPhoneToday\AccuWeather
[Windows Mobile Apps and Games] michoob:
Yes, I know the setting process is a bit geeky and complicated, even for me...

But I know too much my app to be able to find out what could be simplified.

Many people are complaining about the installation process, but no one has never tried even to really help me too improve this part.

If you want to, please PM me with some ideas on how it could be improved and I'll try to make the installation process easier.

You may want to set IPTWpreventSleepOnUpdate=0 so IPTWeather doesn't change your power settings.

But normally, IPTWeather changes them just for the data update and then restore your own settings, if IPTWpreventSleepOnUpdate=1.

Otherwise, that means there is a data download issue. It may happen sometimes, especially if you use the translation of the weather description which needs about 4 to 10 times more data download than without any translation.

Unfortunately, the download function of MortScript is not very good and doesn't offer many options (no timeout option for instance), so I can't improve that using MortScript... :(
[Windows Mobile Apps and Games] michoob:
@lovej: what is your device and its serial number? (Where do I find the Product S/N?)
[Windows Mobile Apps and Games] lovej:
i have solved the problem by myself.
[Windows Mobile Apps and Games] Luke-ro:
I solved my biggest problem with your app! i don't have time to test other things now, but thank you!

Happy to buy you a beer :)
[Windows Mobile Apps and Games] michoob:
@Luke-ro: thank you :)