Page 1 of 1

Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 7:03 pm
by ronwright418
Yesterday I finished installing my new Davis weather station to replace a worn out FO station. (Thanks again for the help on that Steve). Running MX 3038 on a Pi2. I noted that 'Today's rain' was 2.81in but should have been 0. The 2.81in rate had occurred on Jan 3. I edited Today's rain to read 0. Today I noticed that 'Rainfall This Month' and 'Rainfall This Year' read 0 on the template table.


Capture.JPG
They are both OK in the 'this month' and 'this year' tables except for the date.

Is there a way to correct this?

Thanks,
Ron

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 7:37 pm
by steve
Monthly and annual totals are calculated at startup from the daily totals in dayfile.txt, so I suspect that having set that 2.81 to zero all of your entries in dayfile.txt are zero. You need to stop MX and edit one or more entries in dayfile.txt, and then restart MX.

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 8:03 pm
by ronwright418
Is there a key to show what the series of numbers in dayfile.txt represent?

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 8:10 pm
by steve
In the wiki: http://wiki.sandaysoft.com/a/Dayfile.txt

MX currently has no built in editor for the log files, which makes it a bit harder to do manual alterations.

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 8:28 pm
by ronwright418
Thanks, shoulda looked there. I did find some info in search, but it seemed like everybody there knew the key. Guess I'll have a go with Notepad++ and find out what RegEx does also.

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 8:46 pm
by ronwright418
Just a hint for those who may not think about it: A spreadsheet is a handy way to look at the data and the columns coincide with the alpha list in the wiki.

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 9:05 pm
by PaulMy
Just a hint for those who may not think about it: A spreadsheet is a handy way to look at the data and the columns coincide with the alpha list in the wiki.
Correct, but keep in mind that it is not recommended to use spreadsheet/Excel to edit the file(s) as it can change some formatting like I learned that hard way over the past week when my time stamps were altered :oops:

I see you mention RegEx which I had not heard of until last week, and that was a godsend to help me out of my dilemma.

Paul

Re: Rainfall This Month and Year not Showing on Table

Posted: Sat 14 Jan 2017 9:08 pm
by mcrossley
ronwright418 wrote:Just a hint for those who may not think about it: A spreadsheet is a handy way to look at the data and the columns coincide with the alpha list in the wiki.
But be *very* careful saving data from a spreadsheet, they tend to mangle the date and time formats. If you do use a spreadsheet it is best to convert any date and columns to a text type. Also decimal places may be lost (you never know where they may be important) for integer values - eg "12.0" saves as "12".

I did write an Excel spreadsheet that imported and saved the data using macros in a "Cumulus friendly" way. Maybe I should finish that one day...

Re: Rainfall This Month and Year not Showing on Table

Posted: Mon 16 Jan 2017 1:13 pm
by ronwright418
Thanks to those who warned about editing with a spreadsheet. I just used it to find the data easier. No counting columns as with notepad++, which is much easier than notepad. Does anyone know of a way to use notepad++ in Filezilla?

Re: Rainfall This Month and Year not Showing on Table

Posted: Mon 16 Jan 2017 4:44 pm
by rogerthn
ronwright418 wrote:Thanks to those who warned about editing with a spreadsheet. I just used it to find the data easier. No counting columns as with notepad++, which is much easier than notepad. Does anyone know of a way to use notepad++ in Filezilla?
Should be possible
Edit => Settings... => File editing => Use custom editor => Browse for it :)

Re: Rainfall This Month and Year not Showing on Table

Posted: Mon 16 Jan 2017 7:23 pm
by ronwright418
rogerthn wrote:
ronwright418 wrote:Thanks to those who warned about editing with a spreadsheet. I just used it to find the data easier. No counting columns as with notepad++, which is much easier than notepad. Does anyone know of a way to use notepad++ in Filezilla?
Should be possible
Edit => Settings... => File editing => Use custom editor => Browse for it :)
Thanks rogerthn. I tried that and it works for some files, but dayfile.txt defaults to notepad for some reason. May just something in my system? Guess I'll have to keep transferring files -- could be worse, I only have a few lines to deal with.

Re: Rainfall This Month and Year not Showing on Table

Posted: Mon 16 Jan 2017 7:36 pm
by steve
Did you select 'always use default editor'?

Re: Rainfall This Month and Year not Showing on Table

Posted: Mon 16 Jan 2017 9:41 pm
by ronwright418
steve wrote:Did you select 'always use default editor'?
I didn't because I thought that would revert back to notepad. Guess I overthought it. That did the trick, thanks again.