FORUMS
Remove All Ads from XDA

 View Poll Results: You dig this?

Yeah, I dig it!
 
36 Vote(s)
75.00%
NO! This is BUNK!
 
12 Vote(s)
25.00%

MANILA2D(QVGA) - Auto Update Manila2D weather and set it as wallpaper.

1,472 posts
Thanks Meter: 27
 
By S.V.I, Senior Member on 11th August 2009, 01:23 AM
Post Reply Email Thread
13th August 2009, 09:37 PM |#11  
RoryB's Avatar
Inactive Recognized Developer
Flag Lexington
Thanks Meter: 771
 
Donate to Me
More
Can you tell me the reg key that holds the wallpaper name?
How often would you like the routine to check for a change in the weather data?
 
 
13th August 2009, 10:27 PM |#12  
S.V.I's Avatar
OP Senior Member
Thanks Meter: 27
 
More
it is whatever the NON default walpaper is. basicaly,if ou set the toda wallpaper with pimg, you set the walpaper for manila home page. so thats good news.

now it's just a matter of setting the toay wallpaper to the wheather image from manila files. I would asume from everytime you run the weather update. Posible?

it should alo be the image from forcast0 in manila as that is the first city.
14th August 2009, 03:22 AM |#13  
Junior Member
Thanks Meter: 0
 
More
http://forum.xda-developers.com/show...hlight=weather

Hello.. I´ve tried this one... If you have s2u2 the funktion is like you want..
But you can read in my post, that i deinstalled it, because its eating my akku...
14th August 2009, 03:23 AM |#14  
Junior Member
Thanks Meter: 0
 
More
http://forum.xda-developers.com/show...hlight=weather

Hello.. I´ve tried this one... If you have s2u2 the funktion is like you want..
But you can read in my post, that i deinstalled it, because its eating my akku...
14th August 2009, 04:24 PM |#15  
RoryB's Avatar
Inactive Recognized Developer
Flag Lexington
Thanks Meter: 771
 
Donate to Me
More
I have this so far.
Code:
FilePath="\windows\"
CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
While( (CurWx EQ "" )="FALSE")
  If( CurWx eq PreWx )
  Else
    PreWx=CurWx
    RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "DPI", 96 )
    RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "UseStartImage", 1 )
    RegWriteString( "HKCU", "\Software\Microsoft\Today", "Wall", FilePath & "HH_WEATHER_" & CurWx & ".png" )
    RedrawToday
  EndIf
  Sleep( 10000)
  CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
EndWhile
This changes the registry values associated with the wallpaper. Problem is redrawtoday does not show the wallpaper. I have noticed when I make the settings in the today settings page it appears to run a prgram (based on waitcurser showing up). I have not been able to catch what the prgram is. This may need to be a .NET or C program.
14th August 2009, 04:39 PM |#16  
rotastrain's Avatar
Senior Member
Flag Pune
Thanks Meter: 4
 
More
no problem i can do this...

i already hav written scripts earlier to update the...wallpaper...animate etc etc..

now u want the image to update according to the weather right?

have useen sense ui?u know the weather thingy on top.like a widgety thing...i can make that or just this what u r saying?

which do u think is better?

plus r u vga?...wvga?

ALSO:
the weather in manila updates when v go to the page..so this modification will update the wallpaper based on the updated weather..i dint think it can update the weather itself..

il take this as my next project
14th August 2009, 06:15 PM |#17  
RoryB's Avatar
Inactive Recognized Developer
Flag Lexington
Thanks Meter: 771
 
Donate to Me
More
Found what I needed
Code:
# In case we decide on a different file folder or if use a different weather source
 FilePath="\windows\"
 
# start wallpaper if not already started
 RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "DPI", 96 )
 RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "UseStartImage", 1 )
 
# Read the current weather icon
 CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
 
# Start the loop
 While( (CurWx EQ "" )="FALSE")
   If( CurWx eq PreWx )
    #do nothing here
  Else
    PreWx=CurWx
    # so name reads correctly in today settings
     RegWriteString( "HKCU", "\Software\Microsoft\Today", "Wall", "HH_WEATHER_" & CurWx )
    Copy( FilePath & "HH_WEATHER_" & CurWx & ".png", "\Windows\stwater_240_320.gif", TRUE)
    Copy( FilePath & "HH_WEATHER_" & CurWx & ".png", "\Windows\stwater_320_240.gif", TRUE)
    # to get the wallpaper loaded
     SendMessage( HWND_BROADCAST, WM_WININICHANGE, 242, 0 )
    # to get the today screen refreshed
     RedrawToday
  EndIf
  # adjust sleep to how long you want to wait between refreshes, but the more often it runs, the more resouces it uses
   Sleep( 10000)
  CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
EndWhile
I believe the weather tab does not update automatically if it is not active. What I have noticed is that if I go to the tab and it has been longer than 2 or 3 hours it automatically starts to update. Otherwise I pick the leftsoft key to update now.

I do not have a switch to turn it off, but you can use taskmanager to kill this.

BTW I have 4 suns showing up based on the file size. I am trying to find a setting for tilemode versus fit or centered like PC's desktop image.
14th August 2009, 07:12 PM |#18  
S.V.I's Avatar
OP Senior Member
Thanks Meter: 27
 
More
Quote:
Originally Posted by RoryB

Found what I needed

Code:
# In case we decide on a different file folder or if use a different weather source
 FilePath="\windows\"
 
# start wallpaper if not already started
 RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "DPI", 96 )
 RegWriteDWord( "HKCU", "\Software\Microsoft\Today", "UseStartImage", 1 )
 
# Read the current weather icon
 CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
 
# Start the loop
 While( (CurWx EQ "" )="FALSE")
   If( CurWx eq PreWx )
    #do nothing here
  Else
    PreWx=CurWx
    # so name reads correctly in today settings
     RegWriteString( "HKCU", "\Software\Microsoft\Today", "Wall", "HH_WEATHER_" & CurWx )
    Copy( FilePath & "HH_WEATHER_" & CurWx & ".png", "\Windows\stwater_240_320.gif", TRUE)
    Copy( FilePath & "HH_WEATHER_" & CurWx & ".png", "\Windows\stwater_320_240.gif", TRUE)
    # to get the wallpaper loaded
     SendMessage( HWND_BROADCAST, WM_WININICHANGE, 242, 0 )
    # to get the today screen refreshed
     RedrawToday
  EndIf
  # adjust sleep to how long you want to wait between refreshes, but the more often it runs, the more resouces it uses
   Sleep( 10000)
  CurWx=RegRead( "HKLM", "\Software\HTC\Manila2D\Weather\0", "Icon" )
EndWhile
I believe the weather tab does not update automatically if it is not active. What I have noticed is that if I go to the tab and it has been longer than 2 or 3 hours it automatically starts to update. Otherwise I pick the leftsoft key to update now.

I do not have a switch to turn it off, but you can use taskmanager to kill this.

BTW I have 4 suns showing up based on the file size. I am trying to find a setting for tilemode versus fit or centered like PC's desktop image.

That would not be nesesary if the weather image itelf is 320X268 easy to do by changing the canvas size from the top left corner.
I have mine set to auto download
I would love to try it. can you cab it up? I actually dont have mort in my rom right now.
I will update the gfx later tonight (way late at night unfortunately)

Quote:
Originally Posted by rotastrain

no problem i can do this...

i already hav written scripts earlier to update the...wallpaper...animate etc etc..

now u want the image to update according to the weather right?

have useen sense ui?u know the weather thingy on top.like a widgety thing...i can make that or just this what u r saying?

which do u think is better?

plus r u vga?...wvga?

ALSO:
the weather in manila updates when v go to the page..so this modification will update the wallpaper based on the updated weather..i dint think it can update the weather itself..

il take this as my next project

Would thi be run with mort? or a eparate process?
and manila2D is Qvga.. but I do not think it makes a difference.
if the manila is set to download weather on auto this should not cause a problem.

Thanks guys! this will be the coolest thing to happen to manila EVER!!
14th August 2009, 07:25 PM |#19  
RoryB's Avatar
Inactive Recognized Developer
Flag Lexington
Thanks Meter: 771
 
Donate to Me
More
You can install mortscript from his website.

Just download this file and remove .txt from the file name to get the script.

Are you sure yours is updating in the background?

Do you know if there is a registry that changes or program that runs while the weather data updates? Watching for that to change is the only way I know of and I think that will still have to have a time span set in it. I just talked myself into thinking this is the best way I have for now.

I am still going to try to find a way we do not have to resize the images.
Attached Files
File Type: txt WxWallPaper.mscr.txt - [Click for QR Code] (1.2 KB, 17 views)
14th August 2009, 09:07 PM |#20  
S.V.I's Avatar
OP Senior Member
Thanks Meter: 27
 
More
I just tried it. it canged the reg but not the image.
I think that it has to be the set as wallpaper context menu that does it.
14th August 2009, 09:19 PM |#21  
RoryB's Avatar
Inactive Recognized Developer
Flag Lexington
Thanks Meter: 771
 
Donate to Me
More
It looks like the image has to be 320 x 320 to be clean, but the sun has to be offset from the upper left corner.

Try this. Uncheck the use as background from your today settings, then okay. Make a backup image with ceregedit and then check the box and select an image to use as a background, then okay. Then run compare and see what changes. Maybe your Kaiser is a little different than my Wizard.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes