Page 2 of 6

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 9:08 am
by nitrx
I tried a logfilfe from WD for test (dec 2013) and got this error in the log.txt

Code: Select all

'02.6' is not a valid floating point value
The value seems to be the temperature I think

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 9:15 am
by steve
You presumably use commas for decimals? But WD exported the data using full stops for decimals?

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 9:31 am
by nitrx
Hmm I really dont know I've attached the WD logfile (note I dont need the converter but was just curious if worked)

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 9:47 am
by steve
Yes, it's using full stops, that's a pain as Windows can't convert those automatically on a system which uses commas, it doesn't recognise them as numbers. When you export from WD, is there an option to choose the decimal separator, or does it always use a full stop, with no option?

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 9:50 am
by nitrx
Ok I try to find the export option if I can find it (messy interface) :roll:

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 10:01 am
by steve
I think if I just change the code so that it replaces any full stop decimals with whatever the PC is using before converting to numbers, that should work.

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 10:17 am
by nitrx
I can't find anything for exporting to a differrent format except some files that generate inf files which are meant to be for graphics I think .

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 4:03 pm
by steve
I've uploaded v1.1, which caters for the fact that the WD files have decimal points even though the PC may be configured for decimal commas. It also has an option to convert all of the files in the same folder as the one selected.

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 6:16 pm
by nitrx
This works fine Steve good job :clap:

Re: Convert Weather Display data to Cumulus?

Posted: Thu 30 Jan 2014 6:29 pm
by steve
Thanks for testing :)

Re: Convert Weather Display data to Cumulus?

Posted: Fri 31 Jan 2014 10:30 am
by martk1972
Thanks for this Steve, I have successfully converted my old WD files to Cumulus. :D

I did have to rename some of my old WD files, eg 92011lg had to be renamed to 092011lg otherwise I got an error saying - "011l" is not a valid integer value.

I had to add a 0 to the start of all my WD log files that started with 1-9 inclusive, those with 10, 11 and 12 were fine.

Re: Convert Weather Display data to Cumulus?

Posted: Fri 31 Jan 2014 10:38 am
by steve
Ah, I assumed that the log files would all start mmyyyy, but they actually just use one digit for for the first nine months of the year? :roll:

Re: Convert Weather Display data to Cumulus?

Posted: Fri 31 Jan 2014 11:45 am
by nitrx
Yes they do I run WD just and it created 12014lg.txt sorry it was not in my test..

Re: Convert Weather Display data to Cumulus?

Posted: Fri 31 Jan 2014 6:17 pm
by steve
I've upload v1.2, which caters for the files with the single digit months.

Re: Convert Weather Display data to Cumulus?

Posted: Fri 31 Jan 2014 6:51 pm
by duke
steve wrote:I've upload v1.2, which caters for the files with the single digit months.
Sorry Steve, I should have noted that and posted you a larger sample of monthly files in my earlier post.