yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] arealityfarbetween:
@tito12: Whoops! That'll teach me to change the name of a reg switch at the last minute! :o

The integration has another issue I've just noticed though so I won't put out the updated script yet. It creates the page, but iPT doesn't show the icon unless i toggle the today plugin. Weird... :( Shall try and fix it tonight so check back in the morning for an update.

@sernam: SPB i think uses it's own mechanism and doesn't support multiple locations so I don't think it's possible. If you figure out a way, let me know and I'll do my best to put it in.

EDIT: Attached is the fixed IPTSupport (rigged to run standalone, or with TRITW) along with the main TRITaniumWeather script with the correct registry switch for when IPT support is enabled in the GUI. The reason I've named it "fixed but ugly" is because i reckon it's bad practise to use "RedrawToday" instead of tronikos' reloadIcon(s) switches, I just can't get them to play nice...

If anyone could help to fix it up so those switches work I'd really appreciate it! (tito12-I've went through a lot of the iPhoneToday thread and from what I've read you have the necessary experience with both mortscript and iPhoneToday! ;) And Yes, i totally agree that after 3-4 days whatever the weather man says is probably a 'pigs might fly' guess!)
[Windows Mobile Apps and Games] tito12:
Hi,

There are 2 versions of IPT, one as an app for Pda's and the other as a plugin. I'm on the first one, and redrawtoday doesn't work here, the only way to do it is by a command:

Kill("\Program Files\iPhoneToday\iPhoneTodayDesktop.exe")
Run("\Program Files\iPhoneToday\iPhoneTodayDesktop.exe")

BTW my knowledge of MS is basic ;) speaking of which I found this:

Call("IPTSupport")

## Where does IPT reside
Sub GetIPTDir
Global(debug)
dir = RegRead("HKLM", "Software\Apps\[B][U]iPhoneToday iPhoneToday[/U][/B]", "InstallDir")
Call("DebugLog", "add", "IPTSupport.mscr;GetIPTDir(): "&dir)
ExitSub(dir)
EndSub
[Windows Mobile Apps and Games] arealityfarbetween:
Darn, I wasn't thinking about the two versions at that time in the morning! That throws another spanner into the works... :( Could do the Kill/Run toggle I guess but that's equivalent to doing a RedrawToday and thinking from a User perspective that's undoubtedly going to happen when a user is doing stuff with iPhoneToday and I think will be a source of complaint.

I think the key to making it work is in the Alt* functions near the end of the file which _should_ go via the registry to create the icons (from icon position 1 and up for each location, hardcoded to screen 4 while I've been testing since I have the default iPT config): that's the way michoob does it.

To test that method, just change Call("IPTSupport") to Call("AltIPTSupport") and run the script standalone but I can only ever see a change in the "icons.xml" when I use a combination of writing to the xml file directly and then setting reloadIcon to 2 which causes iPT to nicely indent the Weather screen stanza, which really makes no difference of course...

The code snipped you posted is surprising, but it is correct. Have a look at your registry. I think when the cab for iPhoneToday is made tronikos specified iPhoneToday as the company and application name which is why it's double. If you have a look, TRITW should be listed under the same key but as "Fodd TRITaniumWeather"

This is where a second developer would come in real handy! Anyhoo, I think I'll label IPT support as "experimental" for the time being, the first method seems to partially work in that it creates a new page but the icon doesn't show correctly. It's really weird because you can tap where the icon should be and you get taken to the HTML file generated by TRITW so iPT _is_ aware at some level of the change that takes place... (Yes, the way you have it manually setup is the way I'd envisioned it working! :D)

I'm going to move on to optimising the feed processors. I think I can eliminate the "Getting Forecast Day..." loop which will speed things up immensely.

@muradmohdzain: Did you get it working with that location code btw?
[Windows Mobile Apps and Games] muradmohdzain:
still not working.

that code gave me wrong location, not Melaka.
[Windows Mobile Apps and Games] tito12:
Hi

I just had a peek at my registry, under HKLW/software/apps I have Tito Iphonetoday (?) and under HKLW/software i see Iphonetoday only.

I also think IPT users can find the way manually ;)

My suggestion, if you find the time for it. you'll have to rewrite some of your programing especially remove all connection to Titanium-for me and others IPT is an excellent replacement.
[Windows Mobile Apps and Games] arealityfarbetween:
@muradmohdzain: Is this URL correct? http://weather.yahoo.com/malaysia/melaka/melaka-1154903/ If so then it should be the right code-that's where it came from. If not, then you'll need to find out what the WOEID is for Melaka to use Yahoo!, or alternatively use MyLocation to achieve it with Accuweather or WorldWeatherOnline (I don't think Yahoo! supports MyLocation, correct me if I'm wrong and I'll make the feed definiton support it) then you should have a URLCode appear in the history which you can use.

@tito12: That is v. weird indeed, I shall have to find another way of getting the iPhoneToday directory if I can't get the Alt* functions to work via the registry for IPT. Like you say, a simple SelectDirectory() might be the way to go but if I can get it done automatically that'd be the ideal situation.

There is infact no connection with titanium in TRITW-the support for that is entirely optional.
[Windows Mobile Apps and Games] tito12:
arealityfarbetween,

I spent a few minutes to find the choice for iconsets because I was looking in display options (seems natural) but oddly enough I found it in location options. Only now I found the answer to my problem that after I chose Stardock I got Htc icons in some cities: you need to set the theme for every location.

This leads me to the question if it's necessary... Wouldn't it be more logical to have the chosen iconset as default for all locations?
[Windows Mobile Apps and Games] arealityfarbetween:
Sorry tito, didn't know it was a question :p

That was something I considered when redesigning the menu but I thought the HTMLView/Titanium Panels (/iPhoneToday pages, if I can ever get it to work right! ;)) might look a bit boring with all locations having the same icon set so I thought people might want to choose different icons for each location. I made a similar decision with the units that are selected e.g. you might want degrees C for metric countries and Fahrenheit for places that generally use imperial measurement.

EDIT: I'll probably put a default theme option in display options-then TRITW will use that when creating a new location. If you wish, afterwards you can still change the theme for a specific location from the location options menu. The same options for the units will probably also appear...

I've been using it for a while so I'm used to the theme setting being in that location. If it's the general consensus that having the theme set universally is preferable I'll move it.

One other option which I also believe is misplaced is the "show status during update" from "update options", I put it there initially (as the display options menu didn't exist when I put it in) but every time I want to disable/enable it I find myself in "display options" instinctually. What do you reckon?
[Windows Mobile Apps and Games] tito12:
"show status during update"

show status belongs to display obviously :cool:

during update of course to update options :p

:D:D:D:D

You should create display update
[Windows Mobile Apps and Games] muradmohdzain:
Thanks in a million!!

Now its working. You are awesome!!

I created Titanium panel. Now how do i want to activate the overlay and weather background? I already copied the TRITW FullScreen Pack into my phone. After I selected a folder then nothing happened. Inside TRITW FullScreen Pack folder we have sub folders; Accuweather HD, Animated VGA and Transparents. In which setting do i use this folders?

Here is my current settings:

Advance Options

1. Titanium Weaher Overlay(1)

2. Today Weather background (1)

3. Full S2U2 Compatibility (0)

4. iPhoneToday Support ()

Location Options:

1. Set Units (C)

2. Set Theme (HTC)

currently I'm using Garmin Asus M10 phone with Windows Mobile 6.5.3.

thanks in advance. :)
[Windows Mobile Apps and Games] arealityfarbetween:
@muradmohdzain: I probably shouldn't have packed them with the fullscreen directory cos that makes the usage a little ambiguous. You need to select the individual directory for each of the options, of course you may select the same directory for all three if you like.

The transparents are intended for the titanium overlay so that you can still see your background image behind, the animated vga are intended for s2u2/today screen (but won't animate when on the today screen), the accuweather hd ones are just in there for giggles (i've never used those because they don't match my screen resolution...)

EDIT: a quick thought on the accuweather HD ones, would anyone feeling intrepid like to try them as a theme? Just rename every image e.g. "01.png" to "Accuweather_01.png" and rename the directory to "Accuweather". They're about 300px and I think they'd be ideal for the HTMLView weather...

@Anyone planning on using the Overlay: I tested on WM build 28240 (start button at bottom) and installing the overlay was fine even when none was set. I also tried with build 21884 (start button at top) but until an overlay was set after a successful weather update, Titanium was almost unusable due to a graphical glitch, YMMV. It is easy to remove the overlay from the titanium *.cpr file manually with a text editor + soft-reset and it is a behaviour of TRITW that I'm going to add when I have the time!
[Windows Mobile Apps and Games] mjamil786:
thanks for the buddy
[Windows Mobile Apps and Games] arealityfarbetween:
@tito12: yeah, but how do they look?

EDIT: could you try this version of the IPTsupport script please tito? I'm not expecting it to work with the one you run as an exe but it should find the directory correctly and update the icons.xml no matter where it's installed (as long as it was a cab installation), so restarting iPhoneToday should get the page to show after you run the script once... Again, it shouldn't affect any of your other pages as it's a totally new iPT page it creates.
[Windows Mobile Apps and Games] tito12:
Hi

It gives an error that it can't find Program Files\icons.xml, obviously because it's in Program Files\Iphonetoday\icons.xml. Can you pls correct?

BTW I tried the Accuweather icons, they are stretched (they appear oval). I had to copy paste every icon to a square transparent background so they display normal but the result is not much different than the smaller ones, I guess it's my screen that's not so delicate :)
[Windows Mobile Apps and Games] arealityfarbetween:
@tito12: okay, here goes:

Your registry must be setup far differently to they way it is on my device. Furthermore, it looks like the registry triggers for iPT will only work if both the page and the icons are already set in icons.xml :eek:

With a bit of luck this version will cope with almost all situations as I've put in a fallback incase the directory detection doesn't work so that you can manually select the iPT directory which will then be saved under TRITW's registry key.

With a bit more luck (!), once the weather screen stanza is created in the icons.xml and iPT is killed and restarted, or the today screen redrawn in the case of the plugin variety, the Alt* functions will start to work for triggering the icon updates via the registry and we won't need to kill/restart/redraw on every weather update although if you create a new location we'll need to rerun the standalone script and kill/restart/redraw to recreate the page and get the new icon to show...

I've set "debug = true" in this script so that you'll get some status messages and a debug log with some helpful information in, in the same directory as the script, you still need to place it in TRITW's program directory as some of the things depend on that.

If this works, it should just be a little hop & skip before it can be integrated nicely into the main TRITW script. Fingers crossed!

A sidenote: I have _NOT_ tested this in conjunction with the main TRITW script so I'd disable ipt support in display options of the TRITW gui while we're working out all the kinks.

EDIT: As for the Accuweather icons, I thought they'd display a little funnily due to the resolution of the images, like you say they're not square which looks like a requirement for any theme icons where fullscreen icons need to _not_ be square so that they aren't distorted when enabled as wallpaper/overlay/etc Cheers for giving that a go! I really appreciate the help you're giving on this tito!
[Windows Mobile Apps and Games] tito12:
FIRST TRY :D:D:D

Few remarks:

1- Iphonetoday always install in \Program Files, so you can skip the initial location steps.

2- When creating the icons, no need tu use iexplore and parameters to navigate to the .htm's, you can point to them directly in execute field

3- The last icon looks like an empty location that points to an unknown htm
[Windows Mobile Apps and Games] arealityfarbetween:
Cool. I've managed to get it integrated quite nicely and added a few options to the program. The revelation I had today about iPT and the registry triggers turned out to be correct :)

I'm not sure if you noticed (if you did, I don't think you mentioned it) but there's been a long standing bug present on the first update after configuring multiple locations at once-basically the feed processor takes the first successful download and applies the info from that to any subsequent locations apart from MYLOCATION. I've nailed that but the solution is not ideal, though it works for now...

While the location finding step isn't strictly necessary I think it is a good idea-there may be some chef's who cook iPhoneToday into their ROMs so it might end up in \windows for example. Of course the scan for it will fail but then users in that category can select which directory it's really in. I know that's an especially outside possibility, it's the same reason why the theme icons are named according to the theme, so if TRITW is cooked in the icon packs won't overwrite each other if the chef wants to include more than one...

Good point on exec="iexplore.exe" not being necessary-I assume that it just uses the default browser in that case?-e.g. so if opera is set it'll open in that.

I _was_ wondering about the icon without the name on the screenshot, I suspect that you have the "default" key under "HKLM\TRITaniumWeather\locations" To remove it, could you try going into "location options>delete location" and see if you have an unnamed one?-If so, delete it and next run of the IPTSupport script should remove it.

I'll post 5.9.8 tomorrow morning or maybe tonight if I'm feeling confident!
[Windows Mobile Apps and Games] muradmohdzain:
i'm still cannot see my overlay & background.

Any step how to activate it?
[Windows Mobile Apps and Games] tito12:
Congratulations, it's a nice bit of coding

To tell the truth I was more concentrating on the appearance than the function :)

It wouldn't be very wise of a chef to cook a program that is supposed to upgrade all the time. I was expecting you would mention the compatibility with other languages (Programmes, Programmi etc...)):p

Indeed

I noticed in parameters it points to

Program Files\TritaniumWeather\HTMLView\.htm

I deleted it from IPT, it reappeared with the next run of IPTSupport. In "location options>delete location" the only one I can think of is MYLOCATION(MYLOCATION)...But it can't be deleted.

Now testing the update, found this behaviour:

1- When updating all locations, if the phone goes into sleep mode (it's a long process) wifi is interrupted but the script continues, resulting in some locations not updated. Possible cure: prevent the device to sleep- or stop script and display an error message or pause script until a connection is back.

2- I reordered the icons but after update it reverted to the default

3- It's surely connected, I created another icon in this page that was removed after update (I believe the script is erasing the whole page and rewrites it again.
[Windows Mobile Apps and Games] arealityfarbetween:
hmmm, the overlay has always worked ok for me. Can you post your Titanium CPR file from the windows directory? Also check if there's a file in your windows directory named "TRITW.img"

I experienced a problem with the Today background setting myself. It's actually rather difficult (much more than I was expecting!) to set a today background in WM. For that one, I've been testing the function in isolation using the script attached to this post, give it a trial run (place it in the TRITW directory, it needs MichasRefresh.exe) and let me know the results.

Do you know how the background images are named on your device? Mine are all "stwater_<screenWidth>_<screenHeight>.{jpg/gif}" If you're unsure, grab a copy of total commander and try finding any files with "water" in the name from the windows directory which should produce some results-then if you could post the list here I'll see if I can sort that bit out.

Glad somebody was! I can handle the ugly as long as the function is there :p

Very true, but as an unwise chef myself when I started out I was cooking the then TitaniumWeather until I realised I write code far faster than I can build roms! Of course, if I'd been thinking of other languages you would have told me that SystemPath("ProgramFiles") would take care of it, and you'd have been right!

Yeah, that's a thin layer of protection against WM creating the default key which in days gone by caused problems with the weather update (Sub " not found...) Can you have a look at the keys under "HKLM\Software\TRITaniumWeather\locations" and see if there's any you don't recognise. They should all have a numerical identifier apart from MYLOCATION, if you find one there without a "City Name" value that'll be the one you need to delete.

Yeah, i keep tapping the screen when I see it dim to make sure wifi stays on atm cos I'm not using GPRS either. The question is, where to put the "ResetIdleTimer" command... It is something that's on my mind :)

That's exactly how it works-the stanza is always inserted as the last page as we can guarantee that there'll be a "BottomBar" stanza in the icons.xml, to keep it simple it was a choice between first page and last page-I went for last :)

"Crazy areal!" I hear you say? Hopefully not-since the registry triggers work now we should only ever write to the icons.xml file once all locations have been created or if the user makes a new one (in which case, the weather page will become last again) but for normal use TRITW will remember what page we're on so if pages are created after ours it shouldn't matter too much.

@Everyone: 5.9.8 is delayed slightly because I had a lie in and because of the trouble our friend muradmohdzain has had with the overlay and today background. I'm testing the fixes and shall attempt the release this afternoon sometime, it's to the hard bit for me now, documentation... :(
[Windows Mobile Apps and Games] tito12:
In fact there was a different instance of the same city, after removal everything's fine:)
[Windows Mobile Apps and Games] arealityfarbetween:
5.9.8 released

@tito12: glad you got it sorted :)

@Everyone: 5.9.8 released, please see the changelog for details of the erm... changes ;)
[Windows Mobile Apps and Games] j101399j:
Very nice, I added this to the iPhone Today walk-through; great job
[Windows Mobile Apps and Games] tito12:
Great work, everything's working smoothly :)

One little glitch, activating IPT support exits from the script, no big deal.
[Windows Mobile Apps and Games] arealityfarbetween:
nah, it's just hidden by iPhoneToday when it runs.

This one will sleep for 3 seconds and then the options window should re-appear :)
[Windows Mobile Apps and Games] muradmohdzain:
after installing 5.9.8 version...

in my windows folder :

1. stwater_480_800.bak

2. stwater_800_480.bak

3. Titanium_<width>x<height>.cpr (14 files )

4. TRIsUN_xt9.ldb (TRITW.IMG not found)

hopefully these info will help you to figure out the problems.
[Windows Mobile Apps and Games] arealityfarbetween:
@muradmohdzain: For the overlay; I need you to actually post the cpr file itself so I can have a look at it and see if the overlay is installed. The only one that's needed is the portrait one for your resolution.

If there's no file named TRITW.img in your windows directory then definitely the overlay will not appear as that's the file that Titanium is looking for. So one way to manually test it is to rename one of the transparents accordingly and place it into your windows directory, then soft-reset/toggle titanium/run michasrefresh.

For the Today background; The two *.bak files you mention suggest you're using a WVGA device, correct? They also look like they're left over from the old method of setting the today background, otherwise they'd be named "Default_stwater_*.bak" I need to know what the names of the background images become on your device after you set a wallpaper. Easiest way is to go into home/today settings and select another theme then press ok-your phone will then generate the two images. Try searching after that for the stwater string and see what you find.

EDIT: I just spotted the screenshots, looks good-the blue screen is one of the 'kinks' I came across while working on the feature last night. Try the stand alone script but first select no, then re-run it and select yes, then select one of the images so apply as a today background and let me know if that works. If it does. Then afterward the script should do it's stuff...

Both features will only take effect after you run an update on your default location, btw.
[Windows Mobile Apps and Games] muradmohdzain:
here are my cpr files

wvga is correct

which one is the standalone script?

all the files inside TRITW FullScreen Pack folder having .img extension. is this normal?

i have changed to another theme and the two files are generated.

1. stwater_480_800.jpg

2. stwater_800_480.jpg
[Windows Mobile Apps and Games] arealityfarbetween:
You have the _old_ fullscreen pack. That was normal, but I changed the pack between releases to make it easier to use and less of a headache for me to package up, I did say so in the thread and changelog :p

With a little luck, that's why it's not working. I replaced the file that the link on the front page points to. If you re-download the fullscreen pack you'll see that the files have the usual extension, *.gif/*.png etc...

Each directory should also have a 'descriptor' file (just a plain text file named either Accuweather or Yahoo) too which tells TRITW what extension it's looking for and what icon coding the images follow. This makes it easier to use images you may download from the IPTWeather thread (there's loads!) since you don't have to rename each image according to accuweather codes if they're e.g. yahoo coded.

I checked your CPR file, it was just the 480x800 one I needed. Good news, the overlay looks like it's enabled just fine. Did you try the manual test? i.e. rename one of the images to TRITW.img and place into the windows directory, then soft-reset?

If you want to test the method of applying the today background-read back through the thread, it's only a page or so back and it's imaginatively called "applyBackground" If i remember right, the post you're looking for is pretty long as I was discussing the iPT support with tito straight after I replied to yours when you said it wasn't working still for you.

Good luck! :)