• Welcome to TodayPlus Boards v2.
 

Decoding the format of cityx.txt.time

Started by Broesel, March 24, 2005, 07:25:52 AM

Previous topic - Next topic

Timmy

Broesel,

Just curious: for what purpose are you going to use this EXE?

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: TimmyBroesel,

Just curious: for what purpose are you going to use this EXE?

Timmy

Hey Timmy,

if you're downloading the weatherupdates wiht only the radar.exe, you
won't get an actual updatetime in the skin and it is not possible, to
calculate "weatherupdatetime" as needed in the most skins.

With this exe, you don't need to download the weatherdata twice
(via refresh by TodayPlus and radar.exe). You are able to call only the
weatherdata with the radar.exe and then run this exe to update the
cityx.txt.time. So you can have a button that referres to the radar.exe
and update your weather without downloading rss-news

Regards Broesel

Timmy

Broesel,

Thanks for your explanation! I'm gonna try this exe in my own skin.

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

@Broesel & @Uk_skinner,

I'm using uk_skinner's TpExeDelay.exe and this EXE don't work in combination with eemond's newest EXE. TpExeDelay.exe only works after a 'rss-refresh'. I'm sorry I have to discover this fact...

Uk_skinner, do you have a solution? If not: no big problem for me, because TpExeDelay.exe does it's work fine.

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy@Broesel & @Uk_skinner,

I'm using uk_skinner's TpExeDelay.exe and this EXE don't work in combination with eemond's newest EXE. TpExeDelay.exe only works after a 'rss-refresh'. I'm sorry I have to discover this fact...

That's right, but if you click the button, when the time specified in the
config.exe is not  run off, the weather-data from weather.com will download
and the exe will set the updatetime, so you can set the time before refresh
higher and can nevertheless download the actual weatherdata and
the update-time is set right in the skin.

Regards Broesel

uk_skinner

Sorry, missed all the action.  I was out of town for 3 days.  I will slowly digest all the exciting.. :wink:

uk_skinner

Quote from: eemondHere's an EXE to run on your PDA. UK was headed in the right direction. The city1.txt.time file contains the datetime stamp of the LastWrite to the city1.txt file. The datetime stamp is the concatenation of the two lines in the city1.txt.time file (Google GetFileTime).

The EXE gets the BasePath and numcities from your Registry and loops through your city1.txt files, writing the LastWrite datetime stamp into the city1.txt.time file.

Backup your PDA as with any EXE. Have fun.

eemond

eemond:

Can you share with us what the second line is?  I can get the first one by getting the filetime (dwHighDateTime) of city.txt.time.  But the 2nd one did not look likes the one (dwLowDateTime) I got from file time . :?:

eemond

Broesel,

Can you please share the source with UK. I'm out of my office until Monday.

Thanks...

Regards,
eemond

uk_skinner

Quote from: eemondBroesel,

Can you please share the source with UK. I'm out of my office until Monday.

Thanks...

Regards,
eemond

Thanks eemond.

Broesel, if you can send me the source, I will see I can incorporate into Rotalus's latest radar.exe and let it write the new city.txt.time when city.txt is downloaded.

uk_skinner

Broesel or anyone use eemond's exe:

 Did you ever seen the negative number in the 2nd line of city.txt.time?

  :roll:

Broesel

Quote from: uk_skinnerBroesel or anyone use eemond's exe:


 Did you ever seen the negative number in the 2nd line of city.txt.time?

  :roll:

No, did not see any negative number  :knownot:

Everything seems to be fine  :D

Regards Broesel

uk_skinner

Problem solved.

I was looking at the right direction but wrong format.  The 2nd line was "unsigned" number.  So, I have incoporated the ability to write city.txt.time file in radar.exe.  The radar.exe will check the storage file name for each download.  If it starts with "city", then it will write the city.txt.time after the downloading finished.

If anyone is interesting, please let me know and I would like someone test it before I release to public.

eemond

UK,

Can you share the radar.exe source with me?

Thanks in advance...

Regards,
eemond

Broesel

Quote from: uk_skinnerThe radar.exe will check the storage file name for each download.  If it starts with "city", then it will write the city.txt.time after the downloading finished.

If anyone is interesting, please let me know and I would like someone test it before I release to public.

Yes, I'm interested  :lol:

Regards Broesel

ZapMe1

ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"