FAQ: Difference between revisions

6 bytes added ,  17:38, 19 January 2010
Line 138: Line 138:
Cumulus calculates rainfall from a counter supplied by the station which keeps increasing as the rain causes the rain gauge to tip. Cumulus remembers the value of that counter at the start of the meteorological day, so that at any time duing the day it can calculate today's rain by subtracting that figure from the current value of the counter. The start of day figure is stored in today.ini as the "Start=" figure, and the current value of the counter is stored in the monthly log files (e.g. jan10log.txt) as the 'total rainfall counter'. See the [[:Category:Log_Files|Log Files]] section of this Wiki for the formats of the files.
Cumulus calculates rainfall from a counter supplied by the station which keeps increasing as the rain causes the rain gauge to tip. Cumulus remembers the value of that counter at the start of the meteorological day, so that at any time duing the day it can calculate today's rain by subtracting that figure from the current value of the counter. The start of day figure is stored in today.ini as the "Start=" figure, and the current value of the counter is stored in the monthly log files (e.g. jan10log.txt) as the 'total rainfall counter'. See the [[:Category:Log_Files|Log Files]] section of this Wiki for the formats of the files.


So, to set today's total to zero, stop Cumulus and look for the current value of the total rainfall counter on the last line of the current monthly log file, and set the Start= figure in the today.ini file to that value. '''Don't just set the Start figure to zero, that will give you a large total for today!''' You can set today's total to other values in a similar way; just set the Start= figure so that the difference between that and the current total rainfall counter is the total you want to achieve. You may also want to edit the "Total rainfall today so far" values for today in the monthly log file to correspond.
So, to set today's total to zero, '''stop Cumulus''' and look for the current value of the total rainfall counter on the last line of the current monthly log file, and set the Start= figure in the today.ini file to that value. '''Don't just set the Start figure to zero, that will give you a large total for today!''' You can set today's total to other values in a similar way; just set the Start= figure so that the difference between that and the current total rainfall counter is the total you want to achieve. You may also want to edit the "Total rainfall today so far" values for today in the monthly log file to correspond.


'''Example:'''<br>
'''Example:'''<br>