Page 2 of 3

Re: Help for DeAgostini Italian Meto Station

Posted: Tue 15 Feb 2011 4:37 pm
by robor65
is all set to 0 in the main page

:(

I tried even copying your example of record, but all is set to 0 in the main page :( :( :(

Re: Help for DeAgostini Italian Meto Station

Posted: Tue 15 Feb 2011 4:46 pm
by steve
Have you tried restarting Cumulus after you've set the station type, and the location of the file etc? That example I gave works fine for me - but you will probably need semicolons (or you could just use spaces) and comma decimals.

Re: Help for DeAgostini Italian Meto Station

Posted: Tue 15 Feb 2011 6:02 pm
by robor65
it seems to read only wind average speed :?:

Re: Help for DeAgostini Italian Meto Station

Posted: Tue 15 Feb 2011 6:13 pm
by steve
You could try this: Stop Cumulus, edit cumulus.ini. In the [Station] section, add a line:

Logging=1

Start Cumulus, leave it until it should have read the file (what interval have you set?) then stop Cumulus and check the debug.log file for a message that starts:

Error processing EasyWeather file:

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 8:28 am
by robor65
I found these errors:

Code: Select all

0046.234 : 16/02/2011 9.17.00 Minute timer 17
0060.156 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0106.234 : 16/02/2011 9.18.00 Minute timer 18
0120.156 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0166.297 : 16/02/2011 9.19.00 Minute timer 19
0180.156 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0226.297 : 16/02/2011 9.20.00 Minute timer 20
0240.156 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0286.297 : 16/02/2011 9.21.00 Minute timer 21
0300.172 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0346.297 : 16/02/2011 9.22.00 Minute timer 22
0360.156 : Error processing EasyWeather file: '00;0' is not a valid floating point value
0387.938 : 9.22.41 Exit clicked
it seems cumulus needs "," as separator and "." for decimals even if my system uses ";" for separator and "," for decimals

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 8:38 am
by robor65
I changed separators and decimals and now see these errors:

Code: Select all

0540.188 : Error processing EasyWeather file: '18.00' is not a valid floating point value
0542.844 : 16/02/2011 9.32.00 Minute timer 32
0600.188 : Error processing EasyWeather file: '18.00' is not a valid floating point value
0602.844 : 16/02/2011 9.33.00 Minute timer 33
0660.188 : Error processing EasyWeather file: '18.00' is not a valid floating point value
0662.844 : 16/02/2011 9.34.00 Minute timer 34
0671.594 : 9.34.09 Exit clicked
it will be really hard using "," for separators and decimals :?: :?: :?:

In the record you sent me from Easyweather.dat I see a lot of spaces, maybe it nee to be formatted as fixed lenght?

Please, can you send me a complete EasyWeather.dat file?

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 9:04 am
by steve
It's a system routine that I'm using to parse the file, which is why I am uncertain about what delimiter it will need on your system. You definitely need commas for decimals. If semicolons don't work for separators, use spaces.

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 9:11 am
by steve
Here's an easyweather.dat file.

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 9:53 am
by robor65
I think Cumulus has problems reading easyweather.dat file in Italian environments.

I passed him this string:

Code: Select all

123456 16/2/2011 0.00.00 30/12/1899 8.00.00 5 27 23,70 87 6,90 4,80 0,00 1011,00 1011,00 8,60 0 7,90 0 315 NW 0 0,00 0,00 15,00 0,00 0,00 0,00 -0,75 0 0 0 0 0 0 0 0 000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
but the programs reads:

27 as Indoor Humidity (correct)
23 as Indoor Temperature (wrong)
70 as Outdoor Humidity (wrong)
87 as Outdoor Temperature (wrong)


1) I think the problem is: Cumulus reads ALWAYS commas as separators
2) In italian environment commas are used for decimals

So cumulus reads commas as separators and if I use dots as decimals it gives me an error

Please, tell me if my analisys could be correct and if you see any solution other than changing global setting that will affects all windows

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 10:05 am
by steve
Yes, I see the problem. Everywhere else in Cumulus where it reads in log files and parses them, it uses 'delimited text' where it sets the delimiter to the system list separator - semicolon in your case. In this case, it uses 'comma text', which clearly always uses a comma (and a space) as delimiter.

I could change it, but I need to know what easyweather.dat files look like on systems which use semicolon separators and comma decimals. I'll see if I can find out by changing my settings.

I really wanted to remove this code :(

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 10:15 am
by robor65
In fact, the strange thing, is that in your log files (i.e. feb11log.txt), cumulus save fields semicolon separated and with commas for decimals:

Code: Select all

16/02/11;10.15;6,0;23;-15,1;21,6;0,0;0;0,0;0,0;4,0;0,0;27,0;5;0,0;0,0;6,0;0,0;0
and can handle them, I tried to do some graphs.

Only reading easyweather.dat he needs commas to separate fields.

Please, do not remove this code, there are a lot of stations who has stupid programs (i.e. Italian DeAgostini) and we really need some good stuff. :mrgreen:

I attached a file to let you see how easyweather.dat could appears in an italian environment (I Hope)

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 10:21 am
by steve
robor65 wrote:Only reading easyweather.dat he needs commas to separate fields.
Yes, I know; for the reasons I stated above.

Having changed my settings, it seems that EW ignores the system settings. On 'european' settings it still uses a comma as a separator and a full stop as a decimal. So my existing code doesn't work on those systems; it correctly uses the comma separator, but parsing the values fails because it uses the system setting of a comma but the values have full stops.

I'll see if I can find a way to parse numbers with full stops on decimal comma systems. You will then need to generate your files in the same format.

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 10:23 am
by robor65
This will not be a problem.

Really, many many thanks for your help

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 10:59 am
by mcrossley
Certainly with .Net you can optionally specify the locale to use on the parsing calls to get around these sorts of problems.

Re: Help for DeAgostini Italian Meto Station

Posted: Wed 16 Feb 2011 11:02 am
by steve
mcrossley wrote:Certainly with .Net you can optionally specify the locale to use on the parsing calls to get around these sorts of problems.
Yes, you can do the same with Delphi.