PDA

View Full Version : [05/21/2008] HTC Home Weather 2 BackGround WallPaper v0.1 [New]


toniolol
21-05-2008, 11:10 AM
A variant of notiweather_wallpaper (http://forum.xda-developers.com/showthread.php?t=390841) by superflysocal (http://forum.xda-developers.com/member.php?u=557214)

So first I want to say tanks you to superflysocal to give me the idea of this release and allow me to use the wallpapers he use for his application.

When I saw is application I wanted to do the same with HTC Home Weather without using S2U2.

So my application read the HTC Home Weather and change the background wallpaper today according with the last weather update.
It's made when you power on your PDA if the weather have change since the last time you powered on.
Maybe if someone wants it I can make a timer to to this too.

This application will change both your landscape and portrait background.
I use the portrait jpg from superflysocal post and modify him landscape to put them in 320*240 so you could replace them by what you want.

It using MortScript and you're not obliged to install MortScript, because my cab include the MortScript.exe and exe files to launch scripts.

What do you need ?
A PDA with WM... Working on WM6.1, don't know on others.
A HTC Home, don't know issues about the version, working on the HTC HomePlug 2.1.1005.722

There are 3 scripts :
* Start.exe
This one save your current backgrounds (landcape and portrait), write into registry to be clean with the Settings/Personnal/Today "Use this picture as the background", so you can see if my application is running and write and Run On Power On event.
* HHW2BGD.exe (linked as Refresh)
This one is the application core, so it read the weather registry and if it see differences since last launch (written in registry as key_old) it search the good jpg and make it as background (landscape and portrait) and lauch a refresh screen (for now I'm using a exe which make it because the command doesn't want to work good in MortScript language...help !!!). This exe was extract from the cab found here (http://forum.xda-developers.com/showthread.php?t=386931) but I don't know who make it ??? Thanks for him, very great exe.
* Stop.exe
This last one is used to end up this application, it stop the Run On Power On event, eventually kill the script if running, replace the original background and delete the registry entries made.

What will be install ?
* \Program Files\toniolol\HHW2BGD\
It contain the 3 scripts and 5 exe (3 for the script, 1 for MortScript and 1 for the refresh).
* \Program Files\toniolol\HHW2BGD\BackGrounds\
It contain 3 directory : one for your backup background, one for the landscape and one for the portrait.
* Start/Programs/Weather/
It contain 3 links to Start/Stop/Refresh the application

This application is a beta and so use at your own risk.

Just remember : before uninstall it use the STOP.EXE in the Start/Programs/Weather menu.
If you forgot, the Run On Power On event will stay so you have to destroy him using an software like "check Notifications" or launching the Stop script again : you'll find it with the cab at the end of this post.


Current version :
Version 0.1
This is the first release.
It change the background landscape and portrait when your Power On your PDA and when HTC Home Weather have changed.

Working on :
Tested on TRINITY with FInixNOver 3.2 and 3.3, WM6.1, HTC Home dll v2.1.1005.722 and v2.0.1025.721.

TODO :
Script the TodayRefreshCmd.exe.
Force to update the weather.

Bugs :
I think this application will only works on PDA with 320*240 and 240*320 resolution. maybe it's possible to have configuration files for others.


ScreenShots
http://toniolol.free.fr/e107_files/downloadimages/hhw2bgd_01.jpg http://toniolol.free.fr/e107_files/downloadimages/hhw2bgd_15.jpg

http://toniolol.free.fr/e107_files/downloadimages/hhw2bgd_13.jpg http://toniolol.free.fr/e107_files/downloadimages/hhw2bgd_10.jpg

geovass
21-05-2008, 12:56 PM
Very Nice!!
Good Work !!

Kpyto
21-05-2008, 01:55 PM
I have a bug.

TyTN WM 6.1

After Start script PDA is stopped.
Soft-reset help only.

toniolol
21-05-2008, 02:04 PM
Ok...I've made a bug TyTN software...

Could you tell me some things please :
* when you said stopped, what do you mean ? It freeze or power off ?
* Do you see the dialog box said you that the software is on ?
* Do you have in your windows directory this files :
"\Windows\stwater_240_320.gif"
"\Windows\tdywater_240_320.gif"
"\Windows\stwater_320_240.gif"
"\Windows\tdywater_320_240.gif"
* When you start after the soft reset do you have some error message ?
* May you manually launch the "TodayRefreshCmd.exe" located in \programFiles\toniolol\Weather to see if it stop again
* do you install on device or SD card ?


Thanks for your help...sorry for all this questions :p

I think it's not a resolution bug because we have the same display resolution (http://pdadb.net/index.php?m=pdacomparer&id1=533&id2=733).

Kpyto
21-05-2008, 02:26 PM
Could you tell me some things please :
* when you said stopped, what do you mean ? It freeze or power off ?

In HTC Weather update

* Do you see the dialog box said you that the software is on ?

Yes

* Do you have in your windows directory this files :
"\Windows\stwater_240_320.gif"
"\Windows\tdywater_240_320.gif"
"\Windows\stwater_320_240.gif"
"\Windows\tdywater_320_240.gif"

Yest to all.

* When you start after the soft reset do you have some error message ?

No, but wallpaper is changed.
But it is not changed again after
Soft-reset, HTC Weather update, Start, Stop, Reflesh

* May you manually launch the "TodayRefreshCmd.exe" located in \programFiles\toniolol\Weather to see if it stop again


Yes! When I run TodayRefreshCmd.exe - Today is changed!!!

* do you install on device or SD card ?

Device.

Kpyto
21-05-2008, 02:31 PM
I have idea!

Before I don't use MortScrint.

When I launch in \programFiles\toniolol\Weather MortScript - it is say than now file type asociated.

Now your great program work without bugs!

toniolol
21-05-2008, 02:38 PM
1) Sorry, I haven't understood all, what the state of you PDA when you said your PDA stopped ?

2) So after the messageBox said that the software is on the wall paper change ?

3) And you said that it doesn't change again after, does the weather had changed ?

4) And if you launch the "Stop" do come back to your default wallpaper ?
5) Or do you have error message ?

toniolol
21-05-2008, 02:51 PM
It's strange, I thought that it was no necessary to have mortscript if the exe is in the directory and the autoexec.exe rename in ScriptName.exe.
I'm sorry, I must make a hard reset to test but I thount I never install mortScript on my PDA.
Some others people had this problem ?

Thanks for helping me debug this v0.1 release !!!!

Kpyto
21-05-2008, 03:29 PM
:-( Sorry for my bad English.

1) Sorry, I haven't understood all, what the state of you PDA when you said your PDA stopped ?

When I try to update weather (Start ON)

2) So after the messageBox said that the software is on the wall paper change ?

No, it isn't change. But when I run the mortscript manually - it work! (and changed)

3) And you said that it doesn't change again after, does the weather had changed ?

Weather is changed, wallpaper it isn't. Now it is changed.

4) And if you launch the "Stop" do come back to your default wallpaper ?

No.... It isn't. I stay on prerious weather wallpaper.

5) Or do you have error message ?

No :) No error messages.

Kpyto
21-05-2008, 03:32 PM
:(

Device stopped again.

When Start ON, and I update weather - device stopped and no rection on screen, buttons etc.

queer~dude
21-05-2008, 03:33 PM
I installed and nothing happened at all.....
somebody would like to share any picture...
thanks

pomfiedel
21-05-2008, 03:34 PM
great idea!
but it doesn´t work!? update background is on and hh2wbackground ist set as background.
what can i do?
i have a t-mobiel vario III with original rom.


cu

Linus1972
21-05-2008, 03:45 PM
Hi, sorry but which software has been used for having the nice BT and wifi icons to activate/deactivate? Never seen before but looks great!!!
Cheers

toniolol
21-05-2008, 03:55 PM
:-( Sorry for my bad English.
Mine is not better :p

When Start ON, and I update weather - device stopped and no rection on screen, buttons etc.
Ok, so it stopped when you want to refresh the weather in your HTC Home.
Very strange, I don't touch this component, only read the registry and write old values read in new keys....
When my software is off it never happened ?

No, it isn't change. But when I run the mortscript manually - it work! (and changed)
Mff, quite strange too, maybe the notification doesn't work, but we have the same system...
I'll check notification to see and try to give you a debug script if you want.


Weather is changed, wallpaper it isn't. Now it is changed. No.... It isn't. I stay on prerious weather wallpaper.
Ok, it seems to have many problem....my script seems can't launch exe files and nether your notification system...
I'll try to find a way to resolve it, if someone have idea I'm ready :(


I installed and nothing happened at all.....
somebody would like to share any picture...
thanks
Hi,
What is your OS and your device ?
I'm asking if there's no different HTC Home versions with difference in registry...

If people who have problem could send me an export from their registry it will be nice !
The key is :\Software\HTC\HTCHome\Weather
It's located in HKLM
And all sub-keys with :p
Thanks a lot !


great idea!
but it doesn´t work!? update background is on and hh2wbackground ist set as background.
what can i do?
i have a t-mobiel vario III with original rom.
cu

Hi,
i've the same feeling, maybe a different HTC Home.....


When I'm writing this I'm asking if I write in my 1st post that it's necessary to have HTC Home....
I think it is ok in my post but my english is not very good....


I check how to give you a solution.

Thanks for your help.

pomfiedel
21-05-2008, 04:00 PM
When I'm writing this I'm asking if I write in my 1st post that it's necessary to have HTC Home....
I think it is ok in my post but my english is not very good....


i think we both understand enough :)
i have the original t-mobile rom where htc home is included! maybe your scripts have problems with htc home customizer?


cu

toniolol
21-05-2008, 04:03 PM
which software has been used for having the nice BT and wifi icons
Hi,
it's PhoneWeaver (http://www.sbsh.net/product.php?id=28), very nice and usefull software !

Kpyto
21-05-2008, 04:11 PM
:) But keep your work!

toniolol
21-05-2008, 06:11 PM
For people who have problem could you give me the # of your HTC Home please ?
It's on the "HTCHome.dll" located in the "\Windows" directory.
To have it I had to copy this file on my computer and right-click on it after.
Mine is : 2.1.1005.722
And if you want to send me an extract of your registry for HTC Home...thanks !
All keys in : HKLM\Software\HTC\HTCHome\Weather

Knumb
21-05-2008, 06:20 PM
I'll get that info on the dll file too because nothing happened but it is showing your background as being used....

toniolol
23-05-2008, 12:00 PM
Hi,

I'm testing it on the new FInixNOver 3.3, and it works good.
The HTC Home dll is sign : 2.0.1025.721.

I'm thinking to make a special script with debuging create file is someone who have problem want to test it.

ancola66
24-05-2008, 03:53 PM
Good app. Thanks ,but not Auto refresh :(:(:( . (Not auto change background then update )

toniolol
26-05-2008, 10:00 AM
Hi Ancola,
could you tell me your HTC Home version please ?
The auto refresh is only launch when you power on your phone and the weather have been updated and changed in your HTC home.

uscfan
27-05-2008, 04:54 AM
So it will only update the background when the phone is powered on?

It won't change the background during the day with the phone on? I would really like this option of auto updating through out the day since my phone never gets turned off.

toniolol
27-05-2008, 08:26 AM
Hi,
It just change when you power on the screen, not the full off/on PDA.
Maybe I can add a time to change all each x minutes but I must try before cause like it's an event I'm afraid that this function wake up the PDA each time.

bigruss
27-05-2008, 12:41 PM
yeah doesn't work on mine either, maybe it's a 6.1 problem? I'm running Tilt with L26 Diamond v3 w6.1 rom. Happy to help with debug cos this is a wonderful idea, just let me know if you want me to do something. cheers Russ

ancola66
27-05-2008, 05:15 PM
Hi Ancola,
could you tell me your HTC Home version please ?
The auto refresh is only launch when you power on your phone and the weather have been updated and changed in your HTC home.
I use HTC HOME DIAMOND BLACK SHADOW (Complet in Cab file) >>>>. I dont Know about version :confused:. Sorry for my English:)

uscfan
27-05-2008, 10:32 PM
Hi,
It just change when you power on the screen, not the full off/on PDA.
Maybe I can add a time to change all each x minutes but I must try before cause like it's an event I'm afraid that this function wake up the PDA each time.

Yeah it been working fine today. I don't think my htc weather plug-in was working correctly before.

Great program.

Thanks for all the work! :)

bigruss
30-05-2008, 12:27 AM
yeah doesn't work on mine either, maybe it's a 6.1 problem? I'm running Tilt with L26 Diamond v3 w6.1 rom. Happy to help with debug cos this is a wonderful idea, just let me know if you want me to do something. cheers Russ

meh, got it working, beautiful! The problem was that I had initially specified a wallpaper myself, I was not using the default one of the theme. This was causing the confusion. When I turned off the 'use this wallpaper' and then activated the app it worked straight away. thankyou very much!

toniolol
30-05-2008, 08:01 AM
Thank you for your help !
I'll modify my script and test that there is no wallpaper, I've to add some test and try-catch to be cleanner and I'm thinking to give for people who wants help me a debug version to see what is the matter.
I'll do that maybe this weekend, thank you again !