Author Topic: Decoding the format of cityx.txt.time  (Read 12288 times)

Timmy

  • TodayPlus Veteran
  • *****
  • Posts: 640
Decoding the format of cityx.txt.time
« Reply #15 on: March 30, 2005, 10:25:02 AM »
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

  • TodayPlus Veteran
  • *****
  • Posts: 595
Decoding the format of cityx.txt.time
« Reply #16 on: March 30, 2005, 11:18:01 AM »
Quote from: "Timmy"
Broesel,

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

  • TodayPlus Veteran
  • *****
  • Posts: 640
Decoding the format of cityx.txt.time
« Reply #17 on: March 30, 2005, 01:25:22 PM »
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

  • TodayPlus Veteran
  • *****
  • Posts: 640
Decoding the format of cityx.txt.time
« Reply #18 on: March 30, 2005, 01:40:41 PM »
@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

  • TodayPlus Veteran
  • *****
  • Posts: 595
Decoding the format of cityx.txt.time
« Reply #19 on: March 30, 2005, 01:56:08 PM »
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

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Decoding the format of cityx.txt.time
« Reply #20 on: March 31, 2005, 10:13:45 PM »
Sorry, missed all the action.  I was out of town for 3 days.  I will slowly digest all the exciting.. :wink:

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Decoding the format of cityx.txt.time
« Reply #21 on: March 31, 2005, 10:45:45 PM »
Quote from: "eemond"
Here'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

  • TodayPlus User
  • **
  • Posts: 81
Decoding the format of cityx.txt.time
« Reply #22 on: April 01, 2005, 01:52:39 PM »
Broesel,

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

Thanks...

Regards,
eemond

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Decoding the format of cityx.txt.time
« Reply #23 on: April 01, 2005, 02:00:14 PM »
Quote from: "eemond"
Broesel,

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

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Decoding the format of cityx.txt.time
« Reply #24 on: April 02, 2005, 04:34:17 PM »
Broesel or anyone use eemond's exe:

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

   :roll:

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Decoding the format of cityx.txt.time
« Reply #25 on: April 03, 2005, 04:05:47 AM »
Quote from: "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:


No, did not see any negative number  :knownot:

Everything seems to be fine  :D

Regards Broesel

uk_skinner

  • Global Moderator
  • TodayPlus Veteran
  • *****
  • Posts: 1313
Decoding the format of cityx.txt.time
« Reply #26 on: April 03, 2005, 07:45:42 AM »
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

  • TodayPlus User
  • **
  • Posts: 81
Decoding the format of cityx.txt.time
« Reply #27 on: April 03, 2005, 10:09:04 AM »
UK,

Can you share the radar.exe source with me?

Thanks in advance...

Regards,
eemond

Broesel

  • TodayPlus Veteran
  • *****
  • Posts: 595
Decoding the format of cityx.txt.time
« Reply #28 on: April 03, 2005, 10:48:10 AM »
Quote from: "uk_skinner"
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.


Yes, I'm interested  :lol:

Regards Broesel

ZapMe1

  • TodayPlus Veteran
  • *****
  • Posts: 551
Decoding the format of cityx.txt.time
« Reply #29 on: April 03, 2005, 11:22:26 AM »
Count me in too !!  :D
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"