Author Topic: Realtime.txt - change in format? - SOLVED  (Read 1917 times)

0 Members and 1 Guest are viewing this topic.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Realtime.txt - change in format? - SOLVED
« on: April 12, 2016, 09:35:02 AM »
Hi,
I have a question regarding the cumulus realtime.txt.

So far everything always worked fine. I used the documentation:
http://wiki.sandaysoft.com/a/Realtime.txt

to create the script for the updates for Meteotemplate.

Today I received an email from a new user who wanted to use Cumulus and the update was not working. After some testing I found there must be some problem with his realtime.txt. So I asked him to send me an example of one of his files.

When I saw it I immediately spotted the problem. It turns out his realtime.txt looks like this:

Code: [Select]
04/12/2016 14:29:58 18.5 41 5.01428 0.4 0.4 150.5 12 0 1007.9 SSO 1 m/s C hPa mm 1.11003 0 24 686 0 20.8 56 23.7 4.3 18.7 14:07 8.7 07:12 0.7 14:15 2.5 00:00 1008.9 09:40 1007.1 05:00 1.1.0 001 0.9 17.4761 18.5   0 75 0  1  ONO  ft 18.5 0 
Notice the first field: 04/12/2016

So far I have always seen date only in this format: DD/MM/YY (eg- 12/04/16)

the only thing that is variable is the separator, but it was always day, followed by month and 2-digit year abbreviation.

His file seems to be like: MM/DD/YYYY

The documentation also says it is always DD/MM/YY, so I wanted to know if there were some changes in the software, in which case I would somehow need to take this into account (probably by having the user select the format, because there is no way of the script being automatically able to distinguish DD/MM and MM/DD).
« Last Edit: April 12, 2016, 11:10:41 AM by Jachym »

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Realtime.txt - change in format?
« Reply #1 on: April 12, 2016, 09:52:06 AM »
SWAG:  Is this the result of a setting at the OS level (system localization)?  I've seen this a LOT  as I've worked with clients around the world.  Darn frustrating...
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Realtime.txt - change in format? - SOLVED
« Reply #2 on: April 12, 2016, 10:20:05 AM »
OK, sorry, problem solved....

It is the case that it is really just the separator that changes.

The user just emailed me that in fact he is not using Cumulus, but a different software, which he made himself and which produces a file with the realtime.txt format. He only told me he wants to use the cumulus.php for updates, so I was assuming he is using Cumulus.

He now told me this, which i didn´t know before so it explained why this was happening.

Sorry for the confusion, I didn´t know this before.

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5519
    • KomokaWeather
Re: Realtime.txt - change in format?
« Reply #3 on: April 12, 2016, 10:33:18 AM »
No changes that I am aware of.  And further discussion here on somewhat different, but similar reply http://sandaysoft.com/forum/viewtopic.php?f=27&t=14248&p=110513&hilit=realtime.txt+format#p110513


Paul

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Realtime.txt - change in format?
« Reply #4 on: April 12, 2016, 10:35:13 AM »
No Paul, it is OK, sorry for the confusion. See my post above.

 

anything