TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => General => Topic started by: tonyaross on October 01, 2006, 09:55:11 PM

Title: weather update
Post by: tonyaross on October 01, 2006, 09:55:11 PM
I've had a lot of problems with the weather update lately. I either cannot get any update at all, or getting updates that mess up the days of the week, namely, that if I try to update on Friday, I get weather reports of the previous four days, instead of the next four days. Other times, mostly in the afternoons, I can get updates alright, which makes me wonder whether it's the server's problem. I've tried different skins and get the same problems. I wonder whether other people are getting the same thing.

T
Title: Re: weather update
Post by: Papita on April 13, 2007, 12:55:05 AM
I'm having the same problem it just stopped updating, I have tried everything incluring re-installing, I think that todayplus is dead for good. :think:
Title: Re: weather update
Post by: pgmnv on April 13, 2007, 09:47:25 AM
Hello,

I'm pretty new using TodayPlus, but I think the problem is the weather feed, and not TodayPlus!!!!!
TodayPlus will only died, when nobody will be using it anymore..... that's not near to happend!!! ;)

Cheers

Pedro Vicente
Title: Re: weather update
Post by: mfigrs on April 16, 2007, 01:23:43 PM
I am having the some trouble. Recently it was just that the update did not always match current day. For a couple of days (last week) there is no info on the weather page at all. I think it's the weather server issue - perhaps they've changed format of data or whatever...  :think:
Does anybody know from which site TP+ downloads weather info? Does anybody know how to change this website in TP+?
Title: Re: weather update
Post by: pgmnv on April 16, 2007, 02:20:02 PM
Hello,

Are you using the "normal" weather update ou this one: http://forums.jhollin1138.com/index.php?topic=1786.0 ????
If it's the "normal", the data send is always wrong......
If you are using the "radar" update, it may be a server weather bug!!!!

Cheers
Title: Re: weather update
Post by: mfigrs on April 16, 2007, 02:54:35 PM
I think I have solved the problem - at least temporarily.

I have read the posts by uk_skinner in the "Developer's Corner": http://forums.jhollin1138.com/index.php?topic=1786.0 (http://forums.jhollin1138.com/index.php?topic=1786.0)

I have added a link to the PHP script provided in this thread to my radar.txt file and pointed to save it as city1.txt in TP+'s buffer. I of course replaced the city code with my own. Now the Radar downloads my city1.txt and everything seems to be OK, except that I have to refresh the TP+ or go to weather page to see the weather.

I didn't use the DelayExe program. It's much simpler that way and it works!

I am very grateful to SRS for this wonderful piece of software and to everyone for advices on this forum. Thank you guys!  :approve:
Title: Re: weather update
Post by: GJCV on April 23, 2007, 05:19:13 PM
Like many others I recently started to have problems with the weather update too.
Reading the posts here I put the link to the php script in radar.txt to update city1.txt and city2.txt. However this does not work  :-?

Pasting the link ( http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=NLXX0028&Language=EN )
in my browser gets me to see the following code:
function makeWeatherObj() {
         this.swSunrise = "6:23";
         this.swSunset = "20:47";
         this.swDayLength = "14:24";
         this.swCity = "Arnhem/Dieren";
and so on. I assume this is normal.
However on my PDA this does not work. city1.txt remains either empty or says something like wrong city code.

I am not using DelayExe.exe, and also would not know where to get it. Not sure if that could be the problem. Anyone suggestions?
Thanks
Title: Re: weather update
Post by: pgmnv on April 24, 2007, 04:40:45 AM
Hello GJCV,

My english is not that good, but I will try to help you.... ;)
Let's go by parts:

1- Did you try first, to clear the buffer??? Try this First...
2- You put the script in Radar.txt, ok that's the way!!!! But did you put your local weather code????
3- TPexedelay.exe can be found here: http://forums.jhollin1138.com/index.php?topic=1744.0

Let me know if it help you

Cheers

Pedro Vicente



Title: Re: weather update
Post by: GJCV on April 24, 2007, 07:18:24 AM
Quote from: pgmnv on April 24, 2007, 04:40:45 AM
1- Did you try first, to clear the buffer??? Try this First...
2- You put the script in Radar.txt, ok that's the way!!!! But did you put your local weather code????
3- TPexedelay.exe can be found here: http://forums.jhollin1138.com/index.php?topic=1744.0

Hello Pedro,
Thank you for your reply.
Re 1. - Yes I did clear the buffer (manually or using the config.exe of TP)
    2. - I used the same link as what I used in the web browser; it works in IE or Firefox, but apparently not in radar.exe
   3. - Thanks for the link. How is it launched after every TP update, because it says it can be installed anywhere (except Ipaqstore apparently)?  :?:
Also, will it really fix the problem? The reason for me asking is that if I manually for TP to do an update, by tapping the "Last update: " in the Hammerskin, the problem persists.
It says "Wrong citycode", however if I paste the same code in my browser it recognizes the citycode just fine.

Could it be the radar.txt file itself?
It's at http://www.xs4all.nl/~gjcv/GJ_Radar.txt
(I renamed it to prevent confusion).

Regards,
GJCV
Title: Re: weather update
Post by: pgmnv on April 24, 2007, 10:05:52 AM
Quote from: GJCV on April 24, 2007, 07:18:24 AM
Could it be the radar.txt file itself?
It's at http://www.xs4all.nl/~gjcv/GJ_Radar.txt
(I renamed it to prevent confusion).

Hi GJCV,

I think it was the radar.txt, try this one and let me know...
Title: Re: weather update
Post by: GJCV on April 24, 2007, 12:19:39 PM
Quote from: pgmnv on April 24, 2007, 10:05:52 AM
I think it was the radar.txt, try this one and let me know...

Sorry, no.
city1.txt now remains empty (0 size), or when you delete it it does not even generate the file.

In the original radar.txt file the RSS feeds are generated, so it is somehow related to the new weather links.
:think:

Title: Re: weather update
Post by: Morpheus on April 24, 2007, 04:57:08 PM
Hello folks,

Its been a (very) long time since I last visited as I have been happily using TodayPlus with minor modifications to the OSX Complete and HandyPlus basic skins. However over the last few days I have been unable to retrieve any weather data so I thought I better look in and see if others were having the problem.

Anyway things seem to have moved on a bit since I was last here, reading the whole PHP thing the first thing I noticed was the absence of a radar.txt on my PDA. Can someone explain exactly what I need to do to get it working, do I need new exes, updated skins what exactly?

Thanks,

Morpheus
Title: Re: weather update
Post by: GJCV on April 24, 2007, 05:36:24 PM
Quote from: Morpheus on April 24, 2007, 04:57:08 PM
... I have been happily using TodayPlus with minor modifications to the OSX Complete and HandyPlus basic skins.
... the first thing I noticed was the absence of a radar.txt on my PDA.
Hi Morpheus,
It makes sense that you don't have a radar.txt because you are not using the Hammerskin.
Radar.txt is a file with a list of download links that is used by a small program called radar.exe.
This executable is to be used in combination with the Hammerskin (look for more info there).
Now what seems to have happened recently is that the TP default weather download link is not available anymore. As a workaround one could potentially use radar.exe to do the job using the php links posted here. However here is where I am lost as well,   :-? I can't get it to work for the weather, whereas the RSS feeds are downloaded by radar.exe on my PDA just fine.
GJCV
Title: Re: weather update
Post by: tonyaross on April 24, 2007, 10:49:23 PM
Well, great to see some actions here. If it is the server problem, is it possible at all that some changes can be made to the skin file so that it is linked to a new server?

I wonder where those TP veterans are these days. They could probably make things easier if they decide to chip in.

T
Title: Re: weather update
Post by: pgmnv on April 26, 2007, 04:52:42 AM
Quote from: GJCV on April 24, 2007, 05:36:24 PM
Now what seems to have happened recently is that the TP default weather download link is not available anymore. As a workaround one could potentially use radar.exe to do the job using the php links posted here. However here is where I am lost as well,   :-? I can't get it to work for the weather, whereas the RSS feeds are downloaded by radar.exe on my PDA just fine.
GJCV

Hello GJCV,

Sorry for the late response.... It was hollyday, yesterday in Portugal!!! ;)
I did  analyze your 2 weather links to TP server, and yes they are all working, so the problem must rely on your side, perhaps in the skin or in the folder structure?

Cheers

Pedro Vicente
Title: Re: weather update
Post by: pgmnv on April 26, 2007, 05:02:43 AM
Quote from: Morpheus on April 24, 2007, 04:57:08 PM
Hello folks,

Its been a (very) long time since I last visited as I have been happily using TodayPlus with minor modifications to the OSX Complete and HandyPlus basic skins. However over the last few days I have been unable to retrieve any weather data so I thought I better look in and see if others were having the problem.

Anyway things seem to have moved on a bit since I was last here, reading the whole PHP thing the first thing I noticed was the absence of a radar.txt on my PDA. Can someone explain exactly what I need to do to get it working, do I need new exes, updated skins what exactly?

Thanks,

Morpheus

Hello Morpheus,

You can find Radar.exe and instructions here: http://forums.jhollin1138.com/index.php?topic=1827.0
If you need help instaling with the OSX, just let me know....

Cheers

Pedro Vicente
Title: Re: weather update
Post by: GJCV on April 27, 2007, 03:55:30 PM
Quote from: pgmnv on April 24, 2007, 10:05:52 AM
Quote from: GJCV on April 24, 2007, 07:18:24 AM
Could it be the radar.txt file itself?
It's at http://www.xs4all.nl/~gjcv/GJ_Radar.txt
(I renamed it to prevent confusion).

I think it was the radar.txt, try this one and let me know...

Hi  pgmnv, The file you attached used a different format than the one I was using, which put me on the right track. The problem turned out to be in radar.exe.
I used a different radar.exe, which is why the format of radar.txt was different, and this one could apparently not handle the PHP link.
Changing to the newest radar.exe here on this forum solved the problem.

All of you thanks a lot!  :approve:  :-D
GJCV
Title: Re: weather update
Post by: GJCV on April 27, 2007, 05:10:49 PM
One thing I have not figured out yet.
Using the PHP link in Radar.txt (which now downloads the weather  :clap: ), how do you get TP to update weather information automatically :?:

Right now I need to manually tap 'Update' in the Hammerskin.
When left by itself TP/Hammerskin will display empty data after some time because TP is still  trying to download the default weather data instead of using the PHP link. When I tap 'Update', Radar.exe is launched and the weather updates correctly. But then this again will be replaced by empty data by TP. Of course I could use TodayPlus Config.exe and remove the weahter links there, but then everything is shown in Fahrenheit instead of centigrade...
TPExeDelay.exe does not seem to be the solution for this (or I have not figured out to use it correctly).
Any help?
Thanks.
Title: Re: weather update
Post by: Morpheus on April 27, 2007, 06:35:51 PM
Thanks folks I have been a bit busy over the last few days but will try using radar.exe over the weekend.
Title: Re: weather update
Post by: Broesel on April 28, 2007, 01:56:57 PM
Hello and welcome GJCV,
I'll try to answer some of your questions.

Quote from: GJCV on April 27, 2007, 05:10:49 PM
One thing I have not figured out yet.
Using the PHP link in Radar.txt (which now downloads the weather  :clap: ), how do you get TP to update weather information automatically :?:

Right now I need to manually tap 'Update' in the Hammerskin.

That is the way. You need two button-commands (one for weather-update and one for the application to start)
Maybe Zapme's idea could be a solution for your problem, I did'nt try that, because I allways manually update my weather and rss. You can find the thread here:
http://forums.jhollin1138.com/index.php?topic=1717.0 (http://forums.jhollin1138.com/index.php?topic=1717.0)

QuoteWhen left by itself TP/Hammerskin will display empty data after some time because TP is still  trying to download the default weather data instead of using the PHP link.

Yes, that is a problem of TodayPlus, because the url from msnbc.com is built in in the program. But as it only
remains the cityx.txt empty, the skin will not show data.

QuoteWhen I tap 'Update', Radar.exe is launched and the weather updates correctly. But then this again will be replaced by empty data by TP.

That is the problem, that the Tpdelay.exe solves. It looks for the update-process, and when it is finished, it starts the applications, that are stored in TpexeDelay.txt (that file has to be stored in the folder "My Documents").
So what I'm doing is : Click on the update-button --> normal weather and rss is downloading --> cityx.txt remains empty --> after the update-process, tpexedelay starts and launches radar.exe which downloads the weatherdata.

Hope, that helps,

regards Broesel
Title: Re: weather update
Post by: Broesel on April 28, 2007, 02:05:02 PM
Hey Tonya, long time not seen  :grin:

Quote from: tonyaross on April 24, 2007, 10:49:23 PM
Well, great to see some actions here. If it is the server problem, is it possible at all that some changes can be made to the skin file so that it is linked to a new server?

Sorry, but that is not possible, because the url from msnbc.com is in the program file, not in the skin.
But as I replied before, it is possible to get the weather date via TpexeDelay and radar.exe.

QuoteI wonder where those TP veterans are these days. They could probably make things easier if they decide to chip in.

Well, here I am  :mrgreen: , but as there is not much action here, I'm just looking sometimes here.

Have a good time
regards Broesel
Title: Re: weather update
Post by: GJCV on April 28, 2007, 04:09:14 PM
Quote from: Broesel on April 28, 2007, 01:56:57 PM

That is the problem, that the Tpdelay.exe solves. It looks for the update-process, and when it is finished, it starts the applications, that are stored in TpexeDelay.txt (that file has to be stored in the folder "My Documents").
So what I'm doing is : Click on the update-button --> normal weather and rss is downloading --> cityx.txt remains empty --> after the update-process, tpexedelay starts and launches radar.exe which downloads the weatherdata.


Hi Broesel,
Thanks a lot for chipping in.

Regarding TPexeDelay.exe:
According to UK_skinner's instructions (http://forums.jhollin1138.com/index.php?topic=1744.0 (http://forums.jhollin1138.com/index.php?topic=1744.0) ) the exe can be anywhere, the txt should be in \My Documents\
I have done that, nothing happens (and why would it, it's not linked and not running). If I tap the TPexeDelay.exe to start it manually I get an error message (attached).
In the ZIP provided by UK_skinner there is a second exe (TpExeDelayS.exe). If I try to run that nothing happens.
How do you get it to run automatically after each time TP updates itself?

Thanks
Title: Re: weather update
Post by: GJCV on April 28, 2007, 04:53:25 PM

OK, found the answer to my own question  :oops: in http://forums.jhollin1138.com/index.php?topic=1744.0 (http://forums.jhollin1138.com/index.php?topic=1744.0)
Solution: Skin needs to be modified
Cheers, GJCV
Title: Re: weather update
Post by: Broesel on April 29, 2007, 04:07:37 PM
Quote from: GJCV on April 28, 2007, 04:53:25 PM
Solution: Skin needs to be modified

Yes, sorry that I didn't make that clear enough. You need as I said two button-commands. One for the refresh and another one with the same coordinates with the application (linked to tpexedelay.exe):

example:
imagebutton,4,50,Aktualisierungsbutton_main.png,,-1,7,-nohighlight,-1      This button does the refresh (update)
button,4,50,110,13,-1,0,%apps-6-1,-1                                                This button starts Tpexedelay.exe
                                                                                                    (and it is linked with apps-6-1)

What happens ?
If you tap on the button, the normal weather-update starts, at the same time Tpexedelay starts and looks for the update-process (if it's not running, you get the message "process not found") After the update-process is finished, Tpexedelay starts the applications, that are stored in Tpexedelay.txt. So it ist synchronizing the radar.exe after the update-processing and you won't get empty files.

Hope, that makes things clearer.

Regards Broesel
Title: Re: weather update
Post by: mfigrs on May 01, 2007, 01:15:00 PM
Well, I wonder how is this possible, that (manual) weather update works on my iPaq without the Delay.exe. Frequently TP finishes update way after the radar.exe and I still get weather information without any problems.  8) I use Hammerskin 1.05.6 QVGA - translated by UK_Skinner to English, and partly to Polish by myself.

However - I have two problems:
1. With sun/moon times. Even though there are correct times for sunrise and sunset in the city.txt, in the Hammerskin weather page I always see some strange numbers, like "Sunrise: 01:57". I live in the USA, but I sometimes check weather for Poland. When I change the city to Szczecin, Poland, the sun times remain the same. It sounds like a nonsense, but are these times hardcoded in the skin?

2. With special characters in the RSS page (I'm Polish). Is there a way to change special character coding and font? Any suggestions on how to do that?
Title: Re: weather update
Post by: Broesel on May 01, 2007, 04:43:28 PM
Quote from: mfigrs on May 01, 2007, 01:15:00 PM
Well, I wonder how is this possible, that (manual) weather update works on my iPaq without the Delay.exe. Frequently TP finishes update way after the radar.exe and I still get weather information without any problems.

Yes, that is possible, but if the second button is linked to the radar.exe it can happen, that the weatherupdate-
process is finished after the radar.exe-download and replaces the cityx.txt with empty ones. If you are doing a
manually refresh with radar.exe it runs fine.

Quote1. With sun/moon times. Even though there are correct times for sunrise and sunset in the city.txt, in the Hammerskin weather page I always see some strange numbers, like "Sunrise: 01:57". I live in the USA, but I sometimes check weather for Poland. When I change the city to Szczecin, Poland, the sun times remain the same. It sounds like a nonsense, but are these times hardcoded in the skin?

For the first you have to enter the coords of the second (and more) city manually in the registry.
(see the screenshot in this thread: http://forums.jhollin1138.com/index.php?topic=1660.msg10931#msg10931 (http://forums.jhollin1138.com/index.php?topic=1660.msg10931#msg10931))
The sunrise you see, is generated by TodayPlus (with the coords you entered) and is alway shown in your local timezone.
The sunrise from the cityx.txt is not taken for that. If you want to use that time, you need another exe (please do a search in the developers corner).

Quote2. With special characters in the RSS page (I'm Polish). Is there a way to change special character coding and font? Any suggestions on how to do that?

Don't know, if that is possible. But it is not possible in TodayPlus (maybe with another exe, that changes the rss-txt-files)

Regards Broesel
Title: Re: weather update
Post by: Morpheus on May 01, 2007, 09:28:42 PM
Ok,

I have read around a bit and setup radar.exe but I think I need a bit more help

I have added a button in the same location as the refresh on the HandyBasicPlus skin which starts TPExedelay

I have copied radar.exe and TPDelay.Exe into my TodayPlus directory on the SD Card:
\SD Card\TodayPlus

I have created a TPExeDelay.txt file in \My documents with the following entry:
\SD Card\TodayPlus\Radar.exe

I have created a Radar.txt file in the same directory as radar.exe which contains the following two lines:

SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0104&Language=EN
STOR=\SD Card\TodayPlus\Buffer\city1.txt
FORM=
SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0018&Language=EN
STOR=\SD Card\TodayPlus\Buffer\city2.txt
FORM=

The radar.log contains the following:
--------------------
02:54:44

Error Reading 'http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0104&Language=EN'
and writing it to '\SD Card\TodayPlus\Buffer\city1.txt'

Reason:

Could not find resource assembly
--------------------
--------------------
02:54:46

Error Reading 'http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0018&Language=EN'
and writing it to '\SD Card\TodayPlus\Buffer\city2.txt'

Reason:

Could not find resource assembly
--------------------

Does anyone have any idea as to what i am doing wrong?

Thanks,

Morpheus

P.S. I found two versions of Radar.exe in the linked thread and am currently using the 24k as opposed to 16k version from the first post is this correct?
Title: Re: weather update
Post by: Morpheus on May 01, 2007, 10:16:39 PM
Looks like it may be some bizarre activesybc problem as it works when i perform the update via GPRS.

BTW does anyone know why there are two versions of TPExedelay and TpRegistryWinDir one postfixed with an S?
Title: Re: weather update
Post by: pgmnv on May 02, 2007, 04:07:54 AM
Hello Morpheus,

That one is easy... ;)
It's the Silent version, same thing, but without status window displaying.

Cheers!!!
Title: Re: weather update
Post by: Broesel on May 02, 2007, 01:43:18 PM
Quote from: Morpheus on May 01, 2007, 09:28:42 PM

I have created a Radar.txt file in the same directory as radar.exe which contains the following two lines:

SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0104&Language=EN
STOR=\SD Card\TodayPlus\Buffer\city1.txt
FORM=
SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0018&Language=EN
STOR=\SD Card\TodayPlus\Buffer\city2.txt
FORM=

The radar.log contains the following:
--------------------
02:54:44

Error Reading 'http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0104&Language=EN'
and writing it to '\SD Card\TodayPlus\Buffer\city1.txt'

Reason:

Could not find resource assembly
--------------------
--------------------
02:54:46

Error Reading 'http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=UKXX0018&Language=EN'
and writing it to '\SD Card\TodayPlus\Buffer\city2.txt'

Reason:

Could not find resource assembly
--------------------

Does anyone have any idea as to what i am doing wrong?

Thanks,

Morpheus

P.S. I found two versions of Radar.exe in the linked thread and am currently using the 24k as opposed to 16k version from the first post is this correct?

Hey Morpheus, just tested with your locations and it worked fine ?
The radar.exe I' m using, ist the one from this thread:
http://forums.jhollin1138.com/index.php?topic=1827.0 (http://forums.jhollin1138.com/index.php?topic=1827.0)

I'm attaching the radar.txt I used (maybe there is an error in your txt-file)

Regards Broesel
Title: Re: weather update
Post by: GJCV on May 02, 2007, 04:23:27 PM
Quote from: Morpheus on May 01, 2007, 09:28:42 PM

I have added a button in the same location as the refresh on the HandyBasicPlus skin which starts TPExedelay
I have copied radar.exe and TPDelay.Exe [...]
I have created a TPExeDelay.txt file [...]
I have created a Radar.txt file in [...]
The radar.log contains [...]

Does anyone have any idea as to what i am doing wrong?

Thanks,

Morpheus

Morpheus,

Can you test the radar.exe and radar.txt with your old skin (that is without the potential interference of TPexeDelay.exe)?

The reason that I'm asking is that I set up radar.exe and radar.txt first, without any changes to the skin and without TPexeDelay.exe, and that was running just fine. I only needed to update my weather manually by running radar.exe.

Next I started to modify the skin (I am using the Hammerskin). First of all, it does not work (yet), by that I mean that is if TP triggers an update, I don't see any evidence of TPexeDelay.exe or Radar.exe starting up, and second I do get a lot of other problems. The TP update process sometimes is hanging, furthermore if you then manually start Radar.exe anything can happen: error messages in the log, unresponsive PDA, soft reset does not work etc. Fortunately I could still access the PDA by ActiveSync - Explore and clear the Buffer folder, followed by soft reset, that did work. Obviously I do not yet master the art of modifying Wichtels very nice  :approve: Hammerskin,  I am working on that...

To cut a long story short, that's why am asking if the problem goes away if you're using the old skin.

Regards, GJCV
Title: Re: weather update
Post by: Morpheus on May 02, 2007, 04:34:14 PM
Quote from: Broesel on May 02, 2007, 01:43:18 PM

Hey Morpheus, just tested with your locations and it worked fine ?
The radar.exe I' m using, ist the one from this thread:
http://forums.jhollin1138.com/index.php?topic=1827.0 (http://forums.jhollin1138.com/index.php?topic=1827.0)

I'm attaching the radar.txt I used (maybe there is an error in your txt-file)

Regards Broesel

Hi Broesel both exes were from that thread but the bigger one (not in first post) seems to  also create a log file. The problem with the update seems to have gone away for the moment as it is now working via ActiveSync as well. Somebody was talking about getting the update working with auto-refreshes so I may look into that.

Thanks,

Morpheus

P.S. I found a third radar.exe file in the same thread which has an xml configuration file. Which one do people generall use.
Title: Re: weather update
Post by: Morpheus on May 02, 2007, 04:38:44 PM
Quote from: GJCV on May 02, 2007, 04:23:27 PM
Quote from: Morpheus on May 01, 2007, 09:28:42 PM

I have added a button in the same location as the refresh on the HandyBasicPlus skin which starts TPExedelay
I have copied radar.exe and TPDelay.Exe [...]
I have created a TPExeDelay.txt file [...]
I have created a Radar.txt file in [...]
The radar.log contains [...]

Does anyone have any idea as to what i am doing wrong?

Thanks,

Morpheus

Morpheus,

Can you test the radar.exe and radar.txt with your old skin (that is without the potential interference of TPexeDelay.exe)?

The reason that I'm asking is that I set up radar.exe and radar.txt first, without any changes to the skin and without TPexeDelay.exe, and that was running just fine. I only needed to update my weather manually by running radar.exe.

Next I started to modify the skin (I am using the Hammerskin). First of all, it does not work (yet), by that I mean that is if TP triggers an update, I don't see any evidence of TPexeDelay.exe or Radar.exe starting up, and second I do get a lot of other problems. The TP update process sometimes is hanging, furthermore if you then manually start Radar.exe anything can happen: error messages in the log, unresponsive PDA, soft reset does not work etc. Fortunately I could still access the PDA by ActiveSync - Explore and clear the Buffer folder, followed by soft reset, that did work. Obviously I do not yet master the art of modifying Wichtels very nice  :approve: Hammerskin,  I am working on that...

To cut a long story short, that's why am asking if the problem goes away if you're using the old skin.

Regards, GJCV

The two old skins I use HandyPlus Basic and OSX complete didn't originally have radar.exe at all and hence I had to modify it. Do you want me to map Radar.exe instead of TpExeDelay? What exactly are you trying to see from this test?

Morpheus
Title: Re: weather update
Post by: GJCV on May 02, 2007, 05:06:12 PM
Quote from: Morpheus on May 02, 2007, 04:38:44 PM
The two old skins I use HandyPlus Basic and OSX complete didn't originally have radar.exe at all and hence I had to modify it. Do you want me to map Radar.exe instead of TpExeDelay? What exactly are you trying to see from this test?
Morpheus

I wondered if radar.exe & radar.txt would work for you if you just started it manually without TPexeDelay.exe (potentially) running.
To test this you would have to switch to your old skin, soft reset, then tap radar.exe.
Just trying to narrow down the problem: If radar.exe works as a standalone application, your problem should be in the skin and/or TPexeDelay.exe, otherwise it may be the version of Radar.exe and/or radar.txt

Title: Re: weather update
Post by: Morpheus on May 02, 2007, 06:09:38 PM
Quote from: GJCV on May 02, 2007, 05:06:12 PM
Quote from: Morpheus on May 02, 2007, 04:38:44 PM
The two old skins I use HandyPlus Basic and OSX complete didn't originally have radar.exe at all and hence I had to modify it. Do you want me to map Radar.exe instead of TpExeDelay? What exactly are you trying to see from this test?
Morpheus

I wondered if radar.exe & radar.txt would work for you if you just started it manually without TPexeDelay.exe (potentially) running.
To test this you would have to switch to your old skin, soft reset, then tap radar.exe.
Just trying to narrow down the problem: If radar.exe works as a standalone application, your problem should be in the skin and/or TPexeDelay.exe, otherwise it may be the version of Radar.exe and/or radar.txt



Ah ok I thought it was to help you troubleshoot your problems and hence was a bit confused . As i said in one of the posts above the problem seems to have gone away and all is working well (except TP+ auto-updates on activesync connection) but I think someone mentioed a way around this earlier in the thread.

Thanks anyway,

Morpheus

P.S. the radar.exe I am using is working its just that there are three programs with the same name and hence its a bit confusing as which is the current one/best version as they seem to have been posted by different people.
Title: Re: weather update
Post by: ZapMe1 on May 02, 2007, 08:40:55 PM
@Morpheus:

As per your request in your PM, I've attached an AutoImgDL file that will run Radar.exe from \SD Card\Todayplus\Radar.exe

This will happen about 15 sec after detecting a WiFi connection  For this to work automatically, you must use PHM Tools, or even MortScript.

Details are in this thread.  http://forums.jhollin1138.com/index.php?topic=1717.0

Hope this is what you wanted.  Let me know if all is well!  8-)
Title: Re: weather update
Post by: Morpheus on May 03, 2007, 10:41:30 PM
Thanks ZapMe1,

Your mention of MortScript (once i found out what it was) gave me an idea on how to deal with the auto refresh issue by approaching the problem in a similar way to a unix shell script or Perl Script. I have written a MortScript that will check if an internet connection exists and weather the City1.txt file exists and has zero size and if so run Radar.exe . This effectively means that everytime TP splats over the weather info with an auto-refesh the script will detect this and update the data via Radar.exe.

Anyway The script is as follows plus a small script to stop it.

# TPWeatherRefreshUpdater.mscr:
#   Update the weather after a TP refresh

# Loop indefinitely
While ( 1 )

# Check if we can access the tpfans site and have a useful network connection for updating
    isConnected = InternetConnected( "http://72.9.224.178/~tpfansc/" )
    If ( isConnected )

        # if the city1.txt exists and is empty then TP has refreshed
        If ( FileExists( "\SD Card\TodayPlus\buffer\City1.txt" ) &&  \
             FileSize( "\SD Card\TodayPlus\buffer\City1.txt") < 100 )

   # Short pause of 3 seconds to try and detect a manual refresh
   Sleep( 3000 )
   
               # Make sure Radar.exe isn't already running
               If ( NOT ProcExists ( "Radar.exe" ) )
                  RunWait( "\SD Card\TodayPlus\Radar.exe" )
                  # Force update of today screen to cause the new data to be read
                  RedrawToday
               EndIf
        EndIf
    EndIf

    # wait 60 seconds
    Sleep( 60000 )

EndWhile



The script to stop this running:-

# StopTPWeatherRefreshUpdater.mscr:
#   Stop the refresh updater script if its running

refreshUpdater = "\Program Files\TodayPlus\TPWeatherRefreshUpdater.mscr"
If ( ScriptProcExists( refreshUpdater ) )
    If ( Question( "Stop TodayPlus Weather Refresh Updater process?" ) = YES )
        KillScript( "TPWeatherRefreshUpdater.mscr" )
    EndIf
Else
    Run( refreshUpdater )
EndIf


HTH,

Morpheus

P.S.
Obviously MortScript has to be installed for this to work (tested with version 4.0) just in case anyone else wants to try it.
Creating a shortcut to the script in your \Windows\startup folder will start it automatically on a reset. If you want it to check for a refresh more frequently than once a minute lower the value in the Sleep (60000) function call to a suitable number of milliseconds.

*edit* Now redraws the Today screen so that new weather data is displayed
Title: Re: weather update
Post by: Papita on June 16, 2007, 12:19:07 PM
If you are using the hammerskin all you have to do is download the TpExeDelay.exe file from http://todayplus.jhollin1138.com/files/uk_skinner/TpExeDelay.zip (http://todayplus.jhollin1138.com/files/uk_skinner/TpExeDelay.zip).
The TpExeDelay:  It is an exe that will launch any exe after the weather information is updated in TP.  List all the exe you wish to run in the TpExeDelay.txt and place this text file in \My Documents\.  The exe file can be anywhere Please note: each line of file pathway needs to be ended by a "return" even for the last one.  For example:

\SD Card\TodayPlus\Radar\Radar.exe<---hit return right after exe
in the TpExeDelay.txt delete

\Tp_Pack\TpRegistryWind.exe
\Tp_Pack\TpSkyTranslate.exe

and insert

\SD Card\TodayPlus\Radar\Radar.exe<---hit return right after exe

or the path where radar.exe is located. Then in the TodayPlus Config in shortcuts substitude the 7th groups,Apps7, the shortcut to Radar.exe with TpExeDelay.exe then go to the General tap and Clear Buffer and Reload Pluggin it should work.