Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Bug report in dayfile editor

Post Reply
Vathek
Posts: 30
Joined: Tue 28 Dec 2010 12:16 pm
Weather Station: PCE FWS-20 = Fine Offset WS1080
Operating System: Windows 10 x64
Location: Italy, Mondo Nuovo

Bug report in dayfile editor

Post by Vathek »

Hi, in the last build i finally found the time to manually inspect and remove spikes from last year data log.

THe problem I faced is that when I remove a line from dayfile editor and I click on recreate line, it adds a line with values written as 0.0 (with dot)
My regional settings want that it should be written as 0,0 (with comma) so at this point the "all time values" submit an error when parsing the dayfile.ini because it finds 0.0 dotted values.

After fixing them with notepad (search 0.0 and replace with 0,0) the dayfile works flawlessly.

Probably there's a bug in "insert new line" of dayfile editor which doesn't check for regional settings?
Thanks!
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Bug report in dayfile editor

Post by steve »

Marco-Luis reported the same problem in this thread: https://cumulus.hosiene.co.uk/viewtopic.php?f=6&t=6752

I tried to reproduce it by changing my system settings to use a comma, but the editor created the data correctly with a comma. Is the data shown in the editor with a comma before you save it? Could you zip up your diags folder and attach it, please?
Steve
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Bug report in dayfile editor

Post by mcrossley »

Steve, is it anything to do with a conflict between the System and User regional settings? Part of your code picking up the system settings rather than the user?
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Bug report in dayfile editor

Post by steve »

The grid component handles it all as text, it doesn't even know they're numbers. You can type any random garbage you want in the cells, and it will accept it and save it to the file exactly as you type it - even the date. The only 'intelligence' it applies is if you put some text in there which contains your list separator character; it will then save that cell with quotes around it so as not to break the CSV structure.
Steve
User avatar
yv1hx
Posts: 223
Joined: Mon 05 Apr 2010 10:40 pm
Weather Station: No station yet ...
Operating System: Win XP Professional
Location: Some point in the Earth

Re: Bug report in dayfile editor

Post by yv1hx »

I got the same bug again Steve, trying to reproduce the bug, I do the following steps:

1) Make a backup of dayfile.txt (Just in case...) ;)
2) Opened the dayfile.txt with Notepad ++ editor and arbitrarily deleted a line, in this case the 03 Feb line...
3) Opened the dayfile.txt editor, pushed the "create missing" and effectively got and recreate the missing line..but with dots in the last field....
4) Closed cumulus, make it a zip file with the \data, \diags folders inside and attached to this post..
5) Opened the again dayfile.txt with Notepad ++ editor changed the "offending" character (dot to comma) ...
6) Restarted Cumulus again ...

I hope Steve can recover some useful information from this post...
You do not have the required permissions to view the files attached to this post.
Marco
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Bug report in dayfile editor

Post by steve »

Ah, so it's not all of the numbers. It's the ones where there is no data available for that field and I've hard coded the string '0.0'. I can fix that.
Steve
Vathek
Posts: 30
Joined: Tue 28 Dec 2010 12:16 pm
Weather Station: PCE FWS-20 = Fine Offset WS1080
Operating System: Windows 10 x64
Location: Italy, Mondo Nuovo

Re: Bug report in dayfile editor

Post by Vathek »

:D :D :clap: Thanks !!
User avatar
yv1hx
Posts: 223
Joined: Mon 05 Apr 2010 10:40 pm
Weather Station: No station yet ...
Operating System: Win XP Professional
Location: Some point in the Earth

Re: Bug report in dayfile editor

Post by yv1hx »

steve wrote:Ah, so it's not all of the numbers. It's the ones where there is no data available for that field and I've hard coded the string '0.0'. I can fix that.
Great to heard that Steve!

Let me know if you need further help from here! :D
Marco
Post Reply