yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] michoob:
You might have choosen to display the next day forecast, what would explain everything... check your S2U2 settings...
[Windows Mobile Apps and Games] bismuth89:
No, I want to display the current weather, the setting is like this:

IPTWtomorrowForecastInS2U2UserWeather=-1

Also %CT% is showing 31oC, %CT% is only available if I chose to display current weather right?

Or is there some other setting I have to change to display current weather?

Edited: Maybe you can try to add location: Hanoi, Vietnam to check this issue?
[Windows Mobile Apps and Games] michoob:
Weird indeed.

Can you attach here the data.xml (zipped) that is in the IPTWeather/sys folder?
[Windows Mobile Apps and Games] bismuth89:
It's here. I also put weather.ini in the zip in case something's wrong in there. Thank you :)
[Windows Mobile Apps and Games] michoob:
What do you get by running the following script (sorry, cannot attach from my Touch HD)?

timeZone = "07:00"
deviceTimeZone = 60 * (TimeZoneBias() - 60 * Eval("0"))
dataTimeZone = timeZone * 3600
timeOffset = dataTimeZone - deviceTimeZone
currentLocalTime = TimeStamp() + timeOffset
currentDate = FormatTime("m/d/Y", currentLocalTime)
currenttime = Replace(FormatTime("A h:i", currentLocalTime), " 12", " 00")
Message(currenttime & " on " & currentDate)

It should give the time and date in Hanoi...

There might be an issue in the local time conversion, even though I really tested it a lot already... :(

But what strange is that you should have a * next to the temperature...

Maybe an issue in S2U2... have you tried to restart your device?

Do you have the same if you choose another location close de Hanoi?

Please note I'll be in an "Internet blackhole" for four days in several minutes, so sorry if I don't reply quickly next time.
[Windows Mobile Apps and Games] bismuth89:
Running the script I got "AM: 2:28 on 06/02/2011", which is 1 hour ahead of the real time now (1:27am)

Seems like the local time conversion really has a problem :(

Edited: I decide to reinstall IPTweather, and now it update the info right. Don't know if the problem will come back though, since running the script above still shows the wrong time.

Anyways, thanks for your help, really appreciate that :)
[Windows Mobile Apps and Games] michoob:
Ok, good that it works eventually.

For the script, I think you have tried the version I first posted, and not the one after I have edited my post... I just checked and the script is giving the time in Hanoi what is the expected behaviour.

For me, all is fine, case closed :).
[Windows Mobile Apps and Games] uberto.costanzo:
Hi MIchoob, ipt weather work good for me, there is one problem, icons every day return LU, MA, ME..... today is GI but the first icon is MA and when i tap first icon is GI, VE.....after MA, ME. return every day ?

thank you
[Windows Mobile Apps and Games] michoob:
@uberto.costanzo: first, make sure it is set like you want in the 'General settings'.

If it is fine there, I guess it is because you might have edited some icons in iPhoneToday while the forecast icons were displayed before you actually change the days to Italian, what has saved the icons into your icons.xml file.

If you have a dedicated icons just for weather in iPhoneToday and you are not interested in showing/hiding them on other icons, I suggest you just set IPTWwriteForecastInFile=1 in the 'iPhoneToday settings' of IPTWeather.
[Windows Mobile Apps and Games] aiiro:
You are most welcome :)

I have been away for a while and I haven't been able to follow Your advice until now, but Yes, I edited the current weather icon action. So there's the catch :) Today I tried to restore the icons.xml file I previously have saved, but it might be that it's also already kinda "corrupted" as I am unable to get the three forecast icons back again (after restore and restart and running some of the scripts and config as well). I also tried uninstalling iPhoneToday and reinstalling it - I got a fresh icons.xml file, but after configuring IPTW not to be disabled, I only got the current weather icon back, no wallpaper and no forecast icons :( My update interval is set to 1 minute, so I am out of ideas... Any specific actions I should take after replacing the icons.xml file? If You don't mind me asking questions again of course :)

OK... What's the difference between today's and current weather again? :)

Of course. No problem. Except for the problem with getting the forecast and wallpaper back :)

Quoting Morpheus from The Matrix - "I know exactly what You mean!" :)

Actually I did. But then again, different ROMs produce different kind of anomalies, so You can never be sure. I've had weirder things and as the issue can be overcome, it's not really an issue I think.

Of course, when You know the thing inside out, You are always sure - I would be as well :)
[Windows Mobile Apps and Games] michoob:
Normally, it is useless to have an update interval less than 30 minutes because AccuWeather.com does not update the data more often than every 30 minutes.

For testing purpose, I would also advise not to set the update interval to less than 2 or 3 minutes, because of the required time to set up an active connection, to download the data and to update iPhoneToday.

Because the risk is that while IPTWeather is updating, the next update is triggered by Windows Mobile, but as MortScript cannot run several times at once the same script, this next update will be just ignored by MortScript without scheduling a next update, and the consequence will be that IPTWeather will stop auto-updating.

But to test your settings, no need to have a small update interval.

The best and easiest way to test your settings is just to run the 'IPTWeather Location' script and select again the current location (better save it into your favorites from the 'IPTWeather Location' script).

Current weather is the weather as lastly received by AccuWeather.com from weather stations (I guess).

Today weather is a forecast done by AccuWeather.com of how the weather will be today.

For instance, it might be currently raining but the forecast for today is sunny, what would mean it will stop raining soon ;).

You did it once. I guess you can do it twice :p.
[Windows Mobile Apps and Games] aiiro:
OK, thanks for the explanation and tips, especially for the 'IPTWeather Location' script tip :)

Thanks for that as well.

You are right - I did :) I got everything the way I need now, except for one small annoyance... Namely, I selected the API to 'greek' as You suggested before to get 3 days forecast, but when it's Monday before 00:00 o'clock, I get 4 icons (I placed the first one, Monday, on top of the current conditions at the moment just to get one row) - Mo, Tu, We, Th, but only after 00:00 hours I get three icons - Tu, We, Th, like I need it to be. I tried to change the value of 'IPTWforecastIconSkipFirstAtSunset', but I didn't notice any effect... Is there a way to just show the current conditions + Tu, We, Th (presumed that today is Monday)? I tried to change the API to 'tl01', but that didn't help either... Or even if it would be possible to just stabilize the number of icons to 4, it would also be good. I really don't like the 'shifting' thing :) I think I must mention that I changed 'IPTWwriteForecastInFile' to 1, maybe it's relevant.

Thanks in advance.
[Windows Mobile Apps and Games] michoob:
When IPTWforecastIconSkipFirstAtSunset=1, the first icon is skip at sunset, knowing the first icon is the today forecast icon, so if you set IPTWhideNightForecastIcons=1, the option IPTWforecastIconSkipFirstAtSunset will have no effect...

By setting IPTWwriteForecastInFile=1, IPTWeather will act like if IPTWforecastIconSkipFirstAtSunset=1 which is actually not really a wanted feature. I noticed that today, but, I mean, it is not because you want to write the weather forecast icons into the icons.xml file that you also want to have IPTWforecastIconSkipFirstAtSunset=1... I'll change that in a next version to increase the number of possibilities.

I will also think of the idea to skip today's day and night weather forecast so that you can show the current weather icon, and then the weather day forecast icons for the following days (excluding the current day).

Maybe by adding a new setting like IPTWskipTodayForecast... or if you have a better idea...

I can also think of the idea of adding a new setting like IPTWmaxDaysToShow or something.

With two options like these, you could set IPTWskipTodayForecast=1 and IPTWmaxDaysToShow=4 which would give you your 4 unshifting icons ;).

In the meantime, using the greek API is the best I can offer as the tl01 API seems dead.

Anyway, as you can see, still no bug, but just new features required ;).
[Windows Mobile Apps and Games] michoob:
Hi aiiro, I've made some tests, and actually, apart from the number of icons to be capped to 4 or whatever you want (I'll add this feature soon), you can already get rid of the 'shifting' thing in a way...

Just remember to reselect your location through the 'IPTWeather Location' script in order to apply any new settings. (I'll see how to add an 'APPLY NEW SETTINGS' somewhere in the 'IPTWeather Config' script ;)).

So, how to get almost rid of the 'shifting' thing?

Let's say Cur will be the current weather icon, and Mo, Tu, We, Th, Fr, Sa, Su the weather forecast icons.

Let's set the same values for IPTWcurrentWeatherIcon and IPTWforecastStartIcon, the same values for IPTWcurrentWeatherPage and IPTWforecastStartPage, and IPTWforecastIconSkipFirstAtSunset=1.

Let's use the 'greek' API.

Today, we are Wednesday:

- before sunset on Wednesday, you will have the icons We, Th, Fr, Sa,

- after sunset on Wednesday, you will have the icons Cur, Th, Fr, Sa,

- before sunset on Thursday, but also before the first weather update of Thursday, you will have the icons Th, Fr, Sa, and a blank icon (this blank icon could be avoided using the ruan API and with a new setting like IPTWmaxDaysToShow=4 yet to create...)

- before sunset on Thursday, and after the first weather update of Thursday, you will have the icons Th, Fr, Sa, Su,

- after sunset on Thursday, you will have the icons Cur, Fr, Sa, Su,

- and so on.

Please note you can edit IPTWcurrentWeatherIconTextPattern and IPTWforecastWeatherIconsTextPattern (see weather.ini.desc for the possible text patterns to use) so that the Cur icon will have the same text layout as the Mo, Tu, We and so on icons.

So with this, you could have what you want if I add a new setting like IPTWmaxDaysToShow=4 and using the ruan API.

Let's say I add it, and we set IPTWmaxDaysToShow=4 with 'ruan' API.

Below, the same scenario as above with the difference in bold.

Today, we are Wednesday:

- before sunset on Wednesday, you will have the icons We, Th, Fr, Sa,

- after sunset on Wednesday, you will have the icons Cur, Th, Fr, Sa,

- before sunset on Thursday, but also before the first weather update of Thursday, you will have the icons Th, Fr, Sa, Su,

- before sunset on Thursday, and after the first weather update of Thursday, you will have the icons Th, Fr, Sa, Su,

- after sunset on Thursday, you will have the icons Cur, Fr, Sa, Su,

- and so on.

Now, if I also add a new setting like IPTWforecastDaysToSkip, and we set it to 1, together with IPTWmaxDaysToShow=4 and using the ruan API.

Below, the same scenario as above with the difference in bold.

Today, we are Wednesday:

- before sunset on Wednesday, you will have the icons Cur, Th, Fr, Sa,

- after sunset on Wednesday, you will have the icons Cur, Th, Fr, Sa,

- before sunset on Thursday, but also before the first weather update of Thursday, you will have the icons Cur, Fr, Sa, Su,

- before sunset on Thursday, and after the first weather update of Thursday, you will have the icons Cur, Fr, Sa, Su,

- after sunset on Thursday, you will have the icons Cur, Fr, Sa, Su,

- and so on.

What do you think of that?
[Windows Mobile Apps and Games] aiiro:
Sorry I haven't been able to reply, but both my kids are sick and all my steam goes currently to taking care of them. I haven't even had time to try the settings You suggested. I really appreciate Your effort though, and just to make it short - I think adding options is always a good thing (on certan conditions, but we already talked about that). I hope I have time to test and write more about this on weekend, if not sooner.

I will go and try to get some sleep now...
[Windows Mobile Apps and Games] michoob:
IPTWeather_20110621

Here is the new version, special for you aiiro ;):

What's new in the latest version which is IPTWeather_20110621:

added iPhoneToday setting IPTWmaxForecastDaysToShow to limit the number of days of weather forecast icons shown in iPhoneToday (to limit to 4 days even if 8 days are downloaded for instance…).

added iPhoneToday setting IPTWforecastDaysToSkip to set a number of days of weather forecast icons to skip in iPhoneToday (not to show current day forecast for instance…).

added many shortcuts in the Start Menu/IPTWeather folder.

now, when IPTWwriteForecastInFile=1, setting IPTWforecastIconSkipFirstAtSunset=0 works.

small performance optimization when IPTWhideNightForecastIcons=1.

As usual, you can download it with AppToDate, on the Google Project website, or even by scanning my avatar ;).

Donations are welcomed :p.

Enjoy !

:D
[Windows Mobile Apps and Games] michoob:
You can set IPTWwriteForecastInFile=1 which will write the forecast icons into the icons.xml file of iPhoneToday but also automatically make sure that the forecast icons are always displayed ;).

Yep, this is because you have not fully followed my recommandation ;).

Try by setting this:

IPTWforecastDaysToSkip=1

IPTWcurrentWeatherIcon=0

IPTWcurrentWeatherPage=0

IPTWforecastStartIcon=1

IPTWforecastStartPage=0

And if this is not enough, set also:

IPTWforecastIconSkipFirstAtSunset=1

Currently, you can only show the current day (or night if sun has set) weather forecast in iPhoneToday wallpaper by setting IPTWuseS2U2wallpaperForBackground=1, if IPTWtodayForecastInS2U2Wallpaper=0 or if S2U2 is not used (and then IPTWeather automatically sets IPTWtodayForecastInS2U2Wallpaper=0).

I can easily add the option IPTWuseS2U2wallpaperForBackground=-1 to force showing current weather in iPhoneToday wallpaper, let's say before the end of July ;).

Of course I will help you, especially because you have good and constructive questions :).

As for donations, they are always welcomed and motivating even though not mandatory :p.

Without the quotes, the blank space at the end would be trimmed by MortScipt while reading the .ini file.

The other days do not have quotes because you have edited them without adding quotes ;).

There is no specific marking in the weather.ini file.
[Windows Mobile Apps and Games] michoob:
@aiiro: could you please replace your existing IPTWreloadS2U2.mscr file from the IPTWeather\sys directory by the attached one and set IPTWuseS2U2wallpaperForBackground=-1 to check if it gives you the current weather in the iPhoneToday wallpaper?

If it works like you expect, I'll embed this in a new version ;).
[Windows Mobile Apps and Games] aiiro:
OK, as I was dealing with the IPTW here anyway, I thought I'd try the new script at once. So I tried it, but it doesn't work... :( The "IPTWuseS2U2wallpaperForBackground" parameter is still set back to 0 after a while... So i guess bad luck for me :) Or, if You still have time to look at it next week, maybe not so bad :)
[Windows Mobile Apps and Games] michoob:
@aiiro: do you mean really mean the iPhoneToday setting IPTWuseS2U2wallpaperForBackground is set back to 0 by IPTWeather?

That's weird. That would mean you have not installed the Today item of iPhoneToday... what do you get by running from anywhere on your device the attached test.mscr script?

By the way, to hide the current weather icon and show only the forecast weather icons, you are right that you should set IPTWcurrentWeatherIcon=0 and IPTWforecastStartIcon=0 :).

Also make sure to set IPTWforecastDaysToSkip=1 to avoid the shifting ;).

And, please also note that with IPTWaccuWeatherAPI=ruan, you will retrieve the forecasts only for today and the next 4 days, so with that API, you will see a shifting anyway...

You shall use IPTWaccuWeatherAPI=samsu which will download more data: today and the next 6 or 7 days. With the samsu API, you will for sure not see the shifting if you set IPTWforecastDaysToSkip=1 and IPTWmaxForecastDaysToShow=4.
[Windows Mobile Apps and Games] aiiro:
Well, to make sure:

1) I copied the script You provided to the IPTW subfolder named "sys" (overwriting the previous version);

2) I changed the "IPTWuseS2U2wallpaperForBackground" parameter to "-1" and pushed OK couple of times until the conf exited.

3) After re-entering conf the parameter was "0" again.

I have iPhoneToday installed and I have it as a today plugin, showing the IPTW icons as weather. I tried it many times, still same, with restart or without it.

After running the test script I get: "iPhoneToday settings file is here!". Maybe I should uninstall IPTW and reinstall it, do You think it would make a difference?

Good, thanks! I might have already learned something :) But, it's about time also I guess...

OK, thanks for the suggestions, I will change and test.

EDIT: I tested and it's 21:53 o'clock here currently. After update I lose the "Mo", meaning I don't see today's forecast. Do I have to set "IPTWforecastDaysToSkip" to "1"? I mean, will the shifting occur if I don't set it to "1"? I'd still like to see today's forecast...
[Windows Mobile Apps and Games] michoob:
At 21:53 o'clock, the sun set, so the forecast for today is a "forecast" for the

past

, so your requirement to still see today's forecast seems irrelevant to me.

What's the point in having the weather for the past?

The only thing that could make sense would be to display the night forecast, but you do not want that, do you?
[Windows Mobile Apps and Games] michoob:
Weird thing is that with the weather.ini.desc you have, you should not be able to set IPTWuseS2U2wallpaperForBackground=-1 from the IPTWeather Config menu...

Please replace your existing weather.ini.desc file in the IPTWeather folder with the attached one so you can set IPTWuseS2U2wallpaperForBackground=-1 from the IPTWeather Config menu.

I just tested and it's working perfectly!

Hum... there is also one case where IPTWeather would set IPTWuseS2U2wallpaperForBackground back to 0: if IPTWS2U2WallpaperPath does not lead to an existing path. Try to set again IPTWS2U2WallpaperPath from the IPTWeather Config menu in the S2U2 Settings.
[Windows Mobile Apps and Games] aiiro:
OK, of course You are right and I see Your point :) And yes, I don't want the night forecast. But I tried again today and if I set "IPTWforecastDaysToSkip" to "1", I don't see "Tu" at the moment either - it's broad daylight currently, so I should see it in any case, shouldn't I? If I set it back to "0", I get "Tu" as the first day, but if I set it to "1", the "Tu" is missing and the first day of forecast is "We". Should it be that way?

OK, I will try later today and report back.

OK, thanks for the tip. I will try that also later today and report back.
[Windows Mobile Apps and Games] michoob:
Totally!

Sorry, I have maybe forgotten or misunderstood what was your wish...

Today, we are Tuesday, middle of the day.

If you set IPTWforecastDaysToSkip=0, then, you'll see Tu, We, Th, Fr.

When sun sets, you'll see We, Th, Fr, Sa.

And tomorrow, you'll see also We, Th, Fr, Sa.

You can keep IPTWforecastIconSkipFirstAtSunset=0 I think.

And to avoid the shifting at sunset or night, you shall better use IPTWaccuWeatherAPI=samsu with IPTWmaxForecastDaysToShow=4.
[Windows Mobile Apps and Games] aiiro:
First things first. I tested changing the weather.ini.desc - it works now! I changed the conf so that I can see current weather icon, set IPTWuseS2U2wallpaperForBackground=-1 and it definitely matches the background now :) And it's not set back to 0 later. So that's solved.

OK, I am now already confused as well a bit... The situations that You described above are exctly what I am looking for, so I have lost track a bit, what exactly was my concern :) So I will test my current settings (mostly IPTWforecastDaysToSkip) for a day and report back, hopefully tomorrow evening.

Thanks!
[Windows Mobile Apps and Games] aiiro:
I guess I was a bit hasty declaring that the background showing current weather was OK - I tested again today and the "IPTWuseS2U2wallpaperForBackground" still turned back to 0... Although the conf now saves it, so when I go back to conf, it shows "-1". But when I test the settings as You recommended - "Manage Location -> select current location -> OK", after that it's reset to 0 again. I checked and the path to images is correct, so it can't be that.

I will test some more, I think I will reinstall everything and try then again. And also regarding the IPTWforecastDaysToSkip.

Just thought I'd let You know.
[Windows Mobile Apps and Games] michoob:
Yes, please test again because it's working on my device, so something must have been missed by you or me :p.
[Windows Mobile Apps and Games] aiiro:
OK... I have some interesting results. I didn't hard reset the device, I just uninstalled IPTW and iPhoneToday, reset, and installed them back, copied the updated scripts and the backed up ini and that's it. Anyway I SHOULD have the same results, but unfortunately I don't...

First about the "IPTWuseS2U2wallpaperForBackground". I thought about it, how can it be so that Your conf is working and mine is not. I thought maybe You have Mortscript 4.3b15, whereas I have 4.2, maybe that's it? Tested, installed the newer version, but no luck, that's not it. The parameter is still set back to 0 after "Manage location" trick, or "Init & start auto update" or even after executing "Update Weather Now". So next I thought that while developing the app, maybe there's something left on Your phone that doesn't come with the installation package, maybe a setting in a registry or so. That seems to be the only logical explanation as I am doing everything exactly according to Your guidelines... Maybe You could check that possibility? Or maybe there's something missing in the installation package? Although that's highly improbable, it's still worth checking I think...

I also tried kind of a "workaround" for the issue - I set everything I want in the weather.ini file and set it read-only :) First it seemed to work, but that was only because the current weather and today's forecast were the same. After a while when the weather changed, the background image and current weather image didn't match anymore, so I new then that it actually doesn't work. So currently I am out of ideas...

BTW, what does the 0 mean for the "IPTWuseS2U2wallpaperForBackground" parameter? It doesn't say it while configuring the value as for other parameter values...

About the shifting I am stuck as well - I still get shifting. While "IPTWforecastDaysToSkip"=0 and "IPTWforecastIconSkipFirstAtSunset"=0, during the day (let's assume it's Sunday today), I get SU MO TU WE. After sunset I get MO TU WE, although I should get MO TU WE TH. When I set "IPTWforecastIconSkipFirstAtSunset"=1 (while "IPTWforecastDaysToSkip"=0), I get four icons, but first is current weather and then MO TU WE. With "IPTWforecastDaysToSkip"=1 and "IPTWforecastIconSkipFirstAtSunset"=0, I always get 3 icons and when both set to 1, the behaviour is similar. I didn't test those thoroughly cos they don't seem to lead anywhere. I thought about it and I think You have it working because Your update interval is 2 hours and it's summer in Europe, so the sun sets late - You don't get the chance to get shown 3 days showing as You already get new day after 00:00 and the four days You are seeing are remaining from last update. Try with update interval 20 minutes, You should get the same as me?

Another thing I noticed was that whenever a connection failed (we have issues with internet connection here - both wired and mobile - due to heavy rain as my ISP server room was "drowned". That's also the reason why I haven't been able to post my test results sooner), the notification table does not contain scheduled update anymore. I think that might be a bug.