Sandaysoft

Support forum for Cumulus weather station software
It is currently Wed Jun 19, 2013 1:59 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Bug report in dayfile editor
PostPosted: Sun Feb 05, 2012 12:37 pm 
Offline

Joined: Tue Dec 28, 2010 12:16 pm
Posts: 14
Location: Italy, Boarezzo
Weather Station: LaCrosse WS2350
Operating System: Windows 7 x64
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!


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Sun Feb 05, 2012 12:46 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Marco-Luis reported the same problem in this thread: http://sandaysoft.com/forum/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
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Sun Feb 05, 2012 3:45 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2596
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
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?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Sun Feb 05, 2012 4:04 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Mon Feb 06, 2012 2:55 am 
Offline
User avatar

Joined: Mon Apr 05, 2010 10:40 pm
Posts: 218
Location: Cabimas, Zulia, Venezuela
Weather Station: WX-200 / WS-2310
Operating System: Win XP Professional
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-Luis
YV1HX
Cabimas, Zulia, Venezuela
http://www.twitter.com/meteoven


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Mon Feb 06, 2012 9:25 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17835
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
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
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Mon Feb 06, 2012 6:20 pm 
Offline

Joined: Tue Dec 28, 2010 12:16 pm
Posts: 14
Location: Italy, Boarezzo
Weather Station: LaCrosse WS2350
Operating System: Windows 7 x64
:D :D :clap: Thanks !!


Top
 Profile  
 
 Post subject: Re: Bug report in dayfile editor
PostPosted: Mon Feb 06, 2012 6:57 pm 
Offline
User avatar

Joined: Mon Apr 05, 2010 10:40 pm
Posts: 218
Location: Cabimas, Zulia, Venezuela
Weather Station: WX-200 / WS-2310
Operating System: Win XP Professional
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-Luis
YV1HX
Cabimas, Zulia, Venezuela
http://www.twitter.com/meteoven


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group