Automatic weather update on ActiveSync - Touch Diamond, MDA Compact IV Themes and Apps

Hi chiefs,
I am trying to develop a small utility which will run when device is connected with activesync and update the forecast info in weather tab. Updating the database works ok but I have some other problems that someone may help.
When you run the application it updates the database file forecast_cache.db but weather tab does not get refreshed. It still shows the old values, however when you reset the device or restart TF3D (by removing from Today and re-adding it) weather tab shows the new values updated by my utility.
Does anyone can suggest some way to make the weather tab refresh itself ?

Hi Ozkarah,
Nice work...!
Just guessing, but maybe the Weather tab does not read the database every time it is opened, and only does it on a refresh/update
Have you tried selecting update from the Weather tab after you have updated the database, but then disconnected from any data connection.
eg.
1. Use utility to update database
2. Disconnect from data connection
3. Hit Update on the weather tab to see if it picks up the data.
Just a thought...
Cheers

I know mine updates when ever I go to the weather tab, it starts the update automatically.

Supertrooper said:
I know mine updates when ever I go to the weather tab, it starts the update automatically.
Click to expand...
Click to collapse
Yep, they all do that (standard setting), but that particular setting is a data hog, and is annoyning if you're not connected to any data caonnection...
ozkarah's trying to do something else like a daily update...
I gather you're in the US where you can get unlimited data contracts - where I'm from the setting you're talking about is an expensive one.
Cheers

any ideas from chiefs?

did you have any luck with my suggestion...?

Seems like a good feature to have, ozkarah.
I for one have a 5GB/month plan, so a periodic weather update which costs a few KB of data is what I would be very happy with, regardless of active connection (wireless or physical via ActiveSync).
I'm on HTC TP by the way.

unfortunately not. this was one of the first things I had tried. I only could manage it by restarting TF3D (removing and adding TF3D to Today itmes) or soft reset the device...
k1sr said:
Hi Ozkarah,
Nice work...!
Just guessing, but maybe the Weather tab does not read the database every time it is opened, and only does it on a refresh/update
Have you tried selecting update from the Weather tab after you have updated the database, but then disconnected from any data connection.
eg.
1. Use utility to update database
2. Disconnect from data connection
3. Hit Update on the weather tab to see if it picks up the data.
Just a thought...
Cheers
Click to expand...
Click to collapse

Hi Ozkara,
I m updating my htc over night by addintimer ( gps, Podcast) and afterwards i reset it. So your little tool seems to be helpful for me to get the actual weater data. I couldn t accomplish to download the data with mortscript.
Is there any chance to get your too ?

Hi, im unable to update the weather via the internet connection.. Y is it so?
It will only be able to update when it download datas via phone line.. Its charging me crazy.. Any1 can help? Thx

I put the attached mortscript together to automatically update manila weather and stocks when I activesync. I use PhoneAlarm to detect the activesync connection and automatically execute this script. Unfortunatley it won't work if the screen is locked (such as through S2U2).
I wish there was a way truly update the weather and the stocks in the background as suggested by the OP.

I got tired of having to update manually, and installed SPB Mobile Shell - gotta say it's worth a look... it certainly isn't perfect, and there are definitely areas where TF3D is superior and vice versa...
All that being said - I prefer Mobile Shell - it's slightly more completed than TF3D

Rumball said:
I put the attached mortscript together to automatically update manila weather and stocks when I activesync. I use PhoneAlarm to detect the activesync connection and automatically execute this script. Unfortunatley it won't work if the screen is locked (such as through S2U2).
I wish there was a way truly update the weather and the stocks in the background as suggested by the OP.
Click to expand...
Click to collapse
I have been looking for this for a long time. Thanks Rumball ! I think with this I can finally update weather via mortscript whenever PhoneAlarm switches profile at a specific time. Will try it out on my HD2.

Related

Strange phenomenons with Cruise

Just bought the Cruise. Generally very happy with it. But, there are a few wierd things. Let me describe some of them:
1. When I'm in the Home tab and want to go to the Weather tab to check the situation it automatically wants download even if I've just done one a minute before. I can go into it six times in one minute and it will start to download each time. Normal?
2. When my Cruise has not been in use for some time, five minutes to half an hour and I want to use the phone I switch it on and find myself in a programme. It could be contacts or a third party programme that I have installed. To use the phone I have to exit the open programmes first. Normal?
3. I sometimes go into the Comm Manager and find that the Data Connection is on (for no reason). I'm getting a bit paranoid imagining that my phone bill is going to be high because of these situations. Normal?
Or is it just me?
Thanks
Brian
I have never noticed such the behavior, haven't read that anyone there in xda-dev board has noticed things like this. If you still have an original rom I would recommend you to do hard reset and to try to use your device without to install anything for some days to check how it will behave.
i would really recommend a hard reset. if u call them thats exactly what they gonna tell u
If this would be a pc I would think about some sort of trojan has got control over it.
Spamkit: There are NO trojans for Win Mobile. HTC Weather has a timeout of 2 Hours. Maybe O2 did something to the plugin to make it download more often and generate bills
BrianGM said:
Just bought the Cruise. Generally very happy with it. But, there are a few wierd things. Let me describe some of them:
1. When I'm in the Home tab and want to go to the Weather tab to check the situation it automatically wants download even if I've just done one a minute before. I can go into it six times in one minute and it will start to download each time. Normal?
Brian, what you need just to click on your prefferable city on Weather Tab, then go to Menu-Weather Options-remove tick on "Download weather data automatically"
Click to expand...
Click to collapse
Try to disable "Download weather data automatically". It can be the cause of data connection activate so you can solve 2 problems at same time.
To do it, tap on your city in HTCHome; in next windows you should have a menu (Bottom right). In Menu Option and remove (by tapping it) flag near the voice Download Data Automatically.
So, you can decide when download data manually tapping the apposite function in HTCHome -weather main page.
No trojans?
TheOnly1 said:
Spamkit: There are NO trojans for Win Mobile.
Click to expand...
Click to collapse
Is this a trojan
http://www.avertlabs.com/research/blog/index.php/2008/02/26/windows-mobile-trojan-sends-unauthorized-information-and-leaves-device-vulnerable/
BrianGM said:
Weather tab ... it automatically wants download ... six times in one minute and it will start to download
Click to expand...
Click to collapse
As described, turn off auto-update. If turned on and you went over 2h with the last update, the Cruise tries to update every time you switch to the tab, unless you let it update. Then it'll try next in 2h.
I switch it on and find myself in a programme
Click to expand...
Click to collapse
Do you lock the phone or just turn it off? Sounds like you inadvertedly start programs in your pocket when the Phone wakes up for some reason. I'd recommend to lock the screen before you turn off your phone. If you are unhappy with the built in lock, install S2U2 which is superior to the WinMo built in lock and will keep your phone locked unless you willingly unlock it. It's available here in the forums.
Comm Manager ... Data Connection is on (for no reason)
Click to expand...
Click to collapse
This is in fact disturbing, I agree. Reason is probably the Weather Tab which tries to update in the background or do you use Push-Email or set Outlook to automatically check after a given amount of time? If all that doesnt matter to you and you just want the connection to be dead unless you want it to connect: try MoDaCo NoData. A handy tool which allows you to selectively disable and enable GPRS/3G-Connections. I attached it to this post.
sahoopes said:
Is this a trojan
http://www.avertlabs.com/research/b...zed-information-and-leaves-device-vulnerable/
Click to expand...
Click to collapse
This reads like it is a trojan. But it's all bull: there is no silent or unattended installation possible on Windows Mobile. You'll always see the progressbar, and most probably you'd have to select where to install it to. What it does is turn the "Are you really...?"-screen off. So if you catch/caught it: it's your own fault...
schaggo said:
Do you lock the phone or just turn it off? Sounds like you inadvertedly start programs in your pocket when the Phone wakes up for some reason. I'd recommend to lock the screen before you turn off your phone. If you are unhappy with the built in lock, install S2U2 which is superior to the WinMo built in lock and will keep your phone locked unless you willingly unlock it. It's available here in the forums.
This is in fact disturbing, I agree. Reason is probably the Weather Tab which tries to update in the background or do you use Push-Email or set Outlook to automatically check after a given amount of time? If all that doesnt matter to you and you just want the connection to be dead unless you want it to connect: try MoDaCo NoData. A handy tool which allows you to selectively disable and enable GPRS/3G-Connections. I attached it to this post.
...
Click to expand...
Click to collapse
Schaggo and all of you- Thanks for your amazing input. I have returned from being out there and I'll update what I've done.
1. Switched off the auto weather.
2. Set up the Mo Da Co programme and toggled off all possible access via my Service Provider. (I'll have to toggle off the service after I've used it, right?)
3. I do use Push-eMail, but I generally go into the Comm manager and switch off the Push-eMail service manually.
4. The only thing I'm not usre about is the setting of Outlook to automatically check for emails. Where does one switch it on to "manual"?
The business with locking: Is it a good thing? Since I have not tried it, how does it work? Once you have locked the phone and someone calls: Do you have to unlock before answering?
By the way, the stuff about the "Trojan" is BS, I think. So I'll stop there.
Thanks a lot for the help. I'll check it and get back to you with feedback.
Brian
Go into your mail and choose tools/options, choose the account in question and select send/recieve schedule. There you can set to manual.
BrianGM said:
3. I do use Push-eMail, but I generally go into the Comm manager and switch off the Push-eMail service manually.
4. The only thing I'm not usre about is the setting of Outlook to automatically check for emails. Where does one switch it on to "manual"?
The business with locking: Is it a good thing? Since I have not tried it, how does it work? Once you have locked the phone and someone calls: Do you have to unlock before answering?
By the way, the stuff about the "Trojan" is BS, I think. So I'll stop there.
Thanks a lot for the help. I'll check it and get back to you with feedback.
Brian
Click to expand...
Click to collapse
Push-eMail means "as item arrives" setting in ActiveSync/Menu/Schedule. You can also specify Every .... minutes or Manually. Last one is connecting only when you start Send/Receive in Pocket Outlook.
S2U2 is great. Try it. It has Slide to Unlock feature and allows to answer calls same way. It's fully configurable to your needs and easy to uninstall if you don't like it. Had same problems and S2U2 helped.
Cheers

Opening data connection

Hi there - I'm working on a Flash Lite application for PocketPC, which is designed to have web connectivity and for a single use event.
I've discovered that the only way to initiate and then maintain a data connection for Flash Lite is to open an IE window on WM5 and refresh it on occasion, then refocussing back on the Flash app.
I've tried the persistent registry key hack, which works fine when there is a connection, and does maintain it - however my application is for people wandering around in and out of "signal" coverage areas. So I really need my app to re-trigger the data connection somehow.
Flash Lite 2.1 does have GetURL commands, which I'm using, but once the data connection dies, nothing appears to re-establish it. So I've added an indicator to show this problem... but its a shame it can't reconnect on its own.
Any ideas guys?
I've even thought about a work-around - like task switching and "refreshing" the IE http session using the hardware buttons, because that does seem to work, but obviously its not the best user experience really - and obviously I want to keep my application running fullscreen rather than showing IE during that process - and confuse the user.
I've messed around with PQzII, to try this - but its pretty hard to configure... and the author hasn't responded to any questions - and I'm not really that sure it will do what I need in "the background" if you see what I mean!
Has anyone tried something like this, is there a simple standard app I can launch that is already in the Pocket PC windows folder to kick start this using a hardware button trigger if no such reconnect is ever going to be possible in the FlashLite environment?
I've looked on the Adobe site, several people are having this issue already - and information is scarce unfortunately!

No Data????

Alright, I have been trying to get Modaco's Nodata CAB to work on my Wizard, but everytime I try it, it just gives me an error and doesn't work (it installs fine, but it won't work).
So, I'm looking for a fix... I don't have a data plan, and all I want to use the phone for are calls, SMS, and Wifi... anyone know a sure fire way to disable the data connection? (other than calling my provider)
Also, I posted this in another thread, but would the Comm Manager in my ROM work to disable data connections? It currently says that data connections are "off"... but I don't want to take the chance of it automatically turning on. But if the Comm Manager is actually capable of keeping the data connection off, then that should work for me, right? (the ROM that I am using is this one: http://forum.xda-developers.com/showthread.php?t=395173)
Thanks, and let me know if I need to provide more info or whatever. I just really need to try to avoid those kind of extra charges if I can.
You should just be able to put your phone in flight mode from your today screen with two taps. Tap your signal strength icon and then tap "Turn on flight mode."
As far as NoData is concerned: Is there anything else you've installed that might have similar functionality which could be conflicting with NoData? Also, the ROM you flashed is pretty bare. Are you sure your symptoms aren't from that ROM? I'd ask on that guy's thread, if I were you...
The only other thing I'd suggest is turning off automatic email downloads, and anything else you've installed that updates itself automatically (weather programs are NOTORIOUS for this, but any program is a potential suspect, so check them all). Just the email download is hitting the network a minimum of once every 60 minutes. Even without getting email, that's close to 2MB per month. That can add up to some hefty bill, especially while roaming.
Myrddin Wyllt said:
You should just be able to put your phone in flight mode from your today screen with two taps. Tap your signal strength icon and then tap "Turn on flight mode."
As far as NoData is concerned: Is there anything else you've installed that might have similar functionality which could be conflicting with NoData? Also, the ROM you flashed is pretty bare. Are you sure your symptoms aren't from that ROM? I'd ask on that guy's thread, if I were you...
The only other thing I'd suggest is turning off automatic email downloads, and anything else you've installed that updates itself automatically (weather programs are NOTORIOUS for this, but any program is a potential suspect, so check them all). Just the email download is hitting the network a minimum of once every 60 minutes. Even without getting email, that's close to 2MB per month. That can add up to some hefty bill, especially while roaming.
Click to expand...
Click to collapse
Thanks for your reply. The Comm Manager has a button to turn on/off flight mode, so I should be able to do that pretty easily (I can reach the COMM Manager in 2 taps as well). It also has one to turn on/off Wifi, Bluetooth, Cellular Radio, and Data Connection (maybe one more, but I can't remember it at the moment... my Wizard is at home). My question concerning the Comm Manager is whether or not keeping the Data Connection setting "off" will act as a "disabler" (meaning, if I keep it off, it won't come on automatically or anything at any time unless I turn it on). If it truly does work like that all the time, then I should be set... I just don't know if it does or not.
The ROM is pretty bare, but I don't think I've downloaded anything that would conflict with NoData. The only CAB files I've put on there are SPB Mobile Shell 2.1, PCM Keyboard, TCPMP Player, Total Commander, and BatteryStatus. I know Mobile Shell has the Weather program, but so far it has only updated itself when I have synced it to my PC. I haven't set up my email yet, but I would definitely turn off automatic email downloads no matter what.
So basically, it all kind of depends on whether the "Data Connection" tab in my Comm Manager is capable of actually stopping my phone from connecting to the data network when I have it set to off. Or if there's a way to fix the NoData CAB, then that should work too. But if anyone knows any other options/solutions (again, other than calling AT&T and having them block all data... which I can do, but I'd rather just do it myself), please let me know.
It should work. I can't speak to the specifics of your ROM, so if it doesn't work, you'll have to take that up with the cook, not me.
You can easily test this, though. In the comm manager, turn off the phone radio. Then try to open your web browser, and surf to something (it caches the home page, so that's going to show up anyways...). If you get out, then the phone is accessing the network after you "turned it off."
Also did you see the note from the developer's post on MoDaCo.com?
Note that if you get bizarre registry errors on toggling, you need to app unlock your device (e.g. with SDA Application Unlocker).
Click to expand...
Click to collapse
Myrddin Wyllt said:
It should work. I can't speak to the specifics of your ROM, so if it doesn't work, you'll have to take that up with the cook, not me.
You can easily test this, though. In the comm manager, turn off the phone radio. Then try to open your web browser, and surf to something (it caches the home page, so that's going to show up anyways...). If you get out, then the phone is accessing the network after you "turned it off."
Also did you see the note from the developer's post on MoDaCo.com?
Click to expand...
Click to collapse
Yeah, I guess I just skimmed over that note at Modaco.com... but anyway, I tried it (using the SDA Application Unlock tool, which worked successfully) to no avail. The same error came up while trying to run the NoData CAB (I reinstalled it). The error reads:
NoData.exe
NullReferenceException
at NoData.frmMain.PopulateListBox()
at
NoData.frmMain.frmMain_Load(Object
sender, EventArgs e)
at
System.Windows.Forms.Form.OnLoad(E
ventArgs e)
at
System.Windows.Forms.Form._SetVisibl
eNotify(Boolean fVis)
at
System.Windows.Forms.Control.set_Visi
ble(Boolean value)
at
System.Windows.Forms.Application.Run
(Form fm)
at NoData.frmMain.Main()
Click to expand...
Click to collapse
I still haven't tried your suggestion with the Comm Manager yet (kind of waiting for a response in that other thread first)... but it looks like the NoData CAB isn't going to work unless someone knows how to fix whatever the error message is saying.
awillquik said:
I still haven't tried your suggestion with the Comm Manager yet (kind of waiting for a response in that other thread first)... but it looks like the NoData CAB isn't going to work unless someone knows how to fix whatever the error message is saying.
Click to expand...
Click to collapse
Since I don't think NoData is being actively developed any more, you're probably SOL for a repair/update from them...
Try this: delete both NoData and the App Unlocker. Install the App Unlocker again, then install NoData. The installation may have been fouled by the Wizard because app loading wasn't unlocked at the time.
you ALWAYS get error, when GPRS/etc settings are not SET.
this program is A MUST, and it is working FINE.
I think what nothin is trying to say in his (her?) exceptionally charming way, is that if you had done a Google search for your error and clicked on the very first link, some reading would reveal your problem.
While it could have been done without the e-screaming, nothin does have a point about doing a thorough search for solutions before posting.
Haha, it's fine, I probably need to have some sense knocked in to me once in a while. Thanks for all of your help though... I guess I just don't need the NoData CAB to avoid data plan charges. At least that is what it is looking like. But thanks again. And this thread can be closed or whatever.

HTC Home Weather Not Updating

Just got my Dash 3G, and I have found my first issue. The builtin HTC Home Weather app isn't updating. I have it checked to automatically update, but it doesn't. I have also tried doing a manual refresh, and still no luck. The only time it does seem to update is if I change my Homescreen, and it reloads. Anyone one having a similar experience? Any solutions?
thats a common issue with T-Mobile for years.
theres a few threads already constructed with possible solutions dating back to 2007.
just go thru the search function, see what comes up, theres way too many for me to post.
Later!
I had searched, but most of the posts were for other phones/OS's (6.0 instead of 6.1). Plus, I am not sure if the HTC Home Weather has changed since these other fixes were posted. I don't want to be mashing old fixes into my new phone unless I can be assured it will work. Probably means I will have to wait for someone else to be the guinea pig. Can anyone point to a fix they have confirmed to work?
Just restart phone and notice that it reloads. Myfaves automatically reloads no matter what homescreen you choose.. Have vista need to stop the sync
The problem is with connecting to the network, Mine refused to update until I changed my connection to always on, now it works perfectly. All you need to do is edit the reg:
This wont drain your battery as this is only a GSM network state flag and nothing is transferred, all it does is eliminate the connection wait time.
HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\
{7C4B7A38-5FF7-4bc1-80F6-5DA7870BB1AA}\
Connections\*your connection name*\AlwaysOn = 1
There will be two *your connection name* to look for, one is Data the other Internet
Bupahs,
Thanks for the reply. I tried your suggestion, but still no luck. I am now having issues trying to get the initial update. (Had to do a hard reset). I've been looking at the registry entries at:
HKLM\Software\HTC\HTCHome\Weather
HKLM\Software\HTC\HTCHome\SlidingPanel\HTCWeather
HKLM\Software\Microsoft\Chome\HTCWeather
but I don't know what to edit to try, and fix the issue. I've changed the State and Status values at HKLM\Software\HTC\HTCHome\Weather. These seem to control which message the app displays such as "Add City", or "Unable to download..", etc. I've noticed the WeatherApp.exe process isn't running in the background by default, and that the value of the key HKLM\Software\HTC\HTCHome\Weather\Settings\UpdateCmd\ seems to be a date followed by a time. (2009,7,19,12,21,43) Any suggestions on what else to look at? Do apps referenced in the Registry default to the Windows directory? I noticed CommandLaunch references WeatherApp.exe, but I get no action when I hit refresh. Just wonder if that had anything to do with it.
Do others have this working? Sorry for the rambling post. Useful input or suggestions are welcomed.
mine wont update either tried 3 different networks.

[Q] Weather settings

I am unable to switch off the setting to stop downloading data automatically although I have unticked the box.
I continues to update the weather every hour complete with graphics.
I would like to switch it off and only download when I need it
Any suggestions?
Hi,
I have a french version, but I try to translate, the naming will probaly not exact:
1) go to parameter (settings) page.
2) tap on "DATA service" (service de données in French)
3) Here, you will find what you want, "weather" and then untick "auto download"
I hope it helps
Thanks I have done that but it hasn't stopped the automatic data download
Are you sure that is the Weather the cause of update ?
Ther are a lot of other aplications e-mail, Stocks, GPS update, application update,....
By me all this things seems to work well. Elsewhere, there is an application that stops all the phone communication : nodata. I do not use it but I read this work very well on mini.
NoData
Hi,
See if the program "NoData" doesn't help you. It allows you to black access to the internet via your phone system. Sure worked for me.
Luck
The Weather tab is a big resource hog. I also suspect some bugs in it that can cause your phone to freeze. (Not verified yet. But one of my prime suspects.)
I would suggest to disable the whole weather thing altogether.
Which resourses does the weather program hog? I magine that it's a load on the battery, and the graphic use up a lot of memory. Are there any others? I would never use my mobile provider to update anything in my phone. I do it when I sync or find a hotspot.
How would you disable it?
I am only curious, so when you have a moment, I'd be interested in your response.
Thanks
Primary the ram memory. I notice it ate up several megabytes of ram. I forgot to jot down exactly how many. It certainly is not as small as 1Mb or 2Mb. Somewhere closer to 10Mb. It's huge.
Disable it from "Personalize Home Screen Tabs".
Basically, take it off the tabs. And don't update it. After a few days, it will just die off.
Thanks. Memory is not an issue for me now, but I"ll keep it in mind.

Categories

Resources