Month.ini: Difference between revisions

2,220 bytes added ,  8 April 2022
m
Minor clarifications, to better cover C1 and MX differences
mNo edit summary
m (Minor clarifications, to better cover C1 and MX differences)
 
(4 intermediate revisions by the same user not shown)
{{Template:Version badge Mx}}{{Version badge 1}}This page applies to both flavours.
<div style="background: LemonChiffon;padding:5px; margin:2px;">
= Format of the file =
[[File:Crystal Clear info.png|40px]] This page was written for the (legacy) Cumulus 1 software. It has been partially updated to cover MX, but that was for a MX release that is no longer latest!
 
{{TOCright}}
Please can a contributor redesign this page and update content, so it is more friendly for those using latest release, while still helping those using older MX releases and the legacy Cumulus software.
</div>
 
This is as described at [[:Category:Ini_Files]], where some differences between the legacy Cumulus and MX are noted.
 
 
== Introduction ==
 
{{TOCright}}
The log file "month.ini" is where Cumulus software tracks the extremes for this month, the file is divided into a number of sections ''headed by a name in square brackets []''.
 
== Cumulus 1.9.2 ==
 
PleaseThe Cumulus 1.9.2 beta releases were the first appearance of monthly (and yearly) extreme record tracking. The release announcement when 1.9.2 came out of beta (see https://cumulus.hosiene.co.uk/viewtopic.php?p=51829#p51829) forstarts detailsby aboutexplaining how to use the new high/low editing screen for initialising the extra extreme records addedincluded toin the new file '''month.ini''' inthat formed part of this release.
 
==Cumulus builds 1041 to 1088==
 
=== PriorBugs present prior to Cumulus 1.9.3 beta build 1048 ===
Month.ini is one of the files that is included in the back up made each time there is a roll-over at the end of a meteorological day. All the files stored reflect the position as the day ended, not always the position as the new day starts. For example, Cumulus stores the '''Month.ini''' for the month just finishing when it does end of month roll-over.
 
Month.ini contains the highest daily value for certain derivatives in the month, those daily values are supposed to be accumulated over a meteorological day, so the accumulation resets at rollover time. Due to a programming bug, some were reset at midnight irrespective of actual rollover time. Prior to build 1048 this meant that for those using 9am/10am rollover, wind run (for example) accumulated between midnight and rollover was assigned to the following day.
== Prior to Cumulus 1.9.3 beta build 1048 ==
 
Month.iniWithout containsgetting thetoo highesttechnical, dailysome valueof forthe certain derivativestime-stamps in thethis month,file thoseare dailyin valuesa are supposedspecific to beCumulus accumulatedtime-zone, overthat afor meteorological9am/10am dayrollover, sodiffers from the accumulationtime-zone resetsof atthe rolloverhost timecomputer. DueIn tothis ainternal programmingprocessing bugtime-zone, somethe weredate resetpart atis midnighta irrespective[[Meteorological ofday|meteorological actualdate]] rolloverand the time. part Prioris tozero build(00:00) 1048at thisrollover, meantso that fora thosetime usingpart 9am/10amshown rollover,as wind03:00 runactually accumulatedrepresents betweennoon midnighton andthe rollovercomputer wasclock assignedwith Cumulus 1 set to rollover at 09:00 on the followingcomputer dayclock. Against that Equallybackground, some values where peaks at a particular time were tracked in this file,. Cumulus was supposed to convert the internal time-stamps to computer clock equivalents for outputs in web tags (the date logged was adjusted to the correct calendar day, butthe betweentime midnight and rollover it should be assignedadjusted to meteorologicalcorrect datetime (thewithin previousthat calendar dateday). to ensureUnfortunately, peaksthis weremeant notfor assignedextremes totimed wrongbetween month.midnight and Therollover fullon descriptionthe offirst bugsday wasof nota recordednew asmonth, itCumulus was assumedassigning everyone updatedthem to fixedthe buildnew month, andinstead peopleof didthe notold caremonth, aboutbecause pastthe recordsconversion (Cumulusfrom 1internal atmeteorological thisdate stage(the discardedprevious records forcalendar past monthsdate). in Itthe wasprevious subsequentlymonth discoveredto thatcalendar the(computer bugsclock) weredate nothappened fixedtoo completelyearly in buildthe processing 1048sequence!
 
The full description of bugs was not recorded as it was assumed everyone updated to any build claimed to be fixing bugs, and people did not care about past records (Cumulus 1 at this stage discarded records for past months). It was subsequently discovered that the bugs were not fixed completely in build 1048!
== Prior to Cumulus 1.9.3 beta build 1053 ==
 
=== PriorBugs remaining prior to Cumulus 1.9.3 beta build 1053 ===
 
Before to the release of build 1053,
#If you restarted Cumulus 1 on the first day of a calendar month, before your rollover time on that day
#Cumulus created a new meteorological month early, and updated the month.ini as if it had started at midnight, losing everything in the month.ini for the previous month, and corrupting the month.ini for the meteorological month that correctly starts only after rollover.
 
==Cumulus 1.9.2 to 1.9.4 builds 1041 to 1088==
 
Month.ini is one of the files that is included in the back up made each time there is a roll-over at the end of a meteorological day. All the files stored reflectby thelegacy positionCumulus assoftware in the daybuilds ended,listed notin alwaysthe heading reflect the position as the new day startsended. For example, the legacy Cumulus at these builds stores the '''Month.ini''' for the month just finishing when it does end of month roll-over.
 
 
== Cumulus version 1.9.4: From build 1089 to final Cumulus 1 build ==
 
OnLater builds of the endlegacy ofsoftware monthdo roll-overa back-up folderas at start of day. This means when the month changes, Cumulus stores the '''month.ini''' after it has been initialised for the new month. No copy is retained of the month.ini at the end of the month.
 
== Cumulus MX version 3.0.0 onwards ==
 
<div style="background: LemonChiffon;padding:5px; margin:2px;">
[[File:Crystal Clear info.png|40px]] This page was written for the (legacy) Cumulus 1 software. It has been partially updated to cover MX, but that was for a MX release that is no longer latest!
 
Please can a contributor redesign this page and update content, so it is more friendly for those using latest release, while still helping those using older MX releases and the legacy Cumulus software.
</div>
 
 
MX uses the same '''month.ini''' file to record extreme records for current month. At start of each meteorological day, MX backs up the current file as in its [[Data folder|/data]], so when the month changes, this backs up the (empty) file for new month. The content is essentially same as other flavours except that when new extremes occur the date format used has year first as shown in example in table below. 3.6.x releases of MX add Canadian Humidity Index and Feels Like Temperatures to what is stored.
 
From build 3035 onwards, MX archives the month.ini and year.ini file at the end of the month/year as monthYYYYMM.ini and yearYYYY.ini. This means that although the file saved in the back up daily folder contains the month.ini for the new month and so does not back up the end of month position, the old monthly log ini file is preserved for true end of month state in the data folder with a new name.
 
 
From version 3.6.0, an additional [FeelsLike] section is added to this log file.
 
== Retaining month.ini after month changes ==
 
[[File:Badge vMx.png]]InAs mentioned [[#Cumulus MX, version 3.0.0 onwards|at end of this section]] Cumulus MX retains the file at the end of each month,. the The final ''month.ini'' for that month is renamed '''monthYYYYMM.ini''' (where YYYY denotes the year using 4 digits and MM denotes the month using two digits) e.g. ''month201703.ini'', thus ensuring that statistics for all past months remain accessible.
 
[[File:Badge v1.png]]ThereAlthough isCumulus no1 obviousresets facility''month.ini'' at the end of each month, without saving the file [[#Cumulus version 1.9.4: From build 1089 to achievefinal aCumulus similar1 retentionbuild|see automaticallyhere]], it is possible to view old months using [[Cumulus_Screenshots#View_data|screen]] provided in Cumulus 1,; althoughthat allgenerates thea informationsimilar can(but not identical extreme records) set of bemonthly generatedderivatives by doing calculations from the relevant lines in dayfile.txt. If you want such information on a web page, then some JavaScript code (as explained in support forum posts) can parse a copy of [[Dayfile.txt]] uploaded to your web server, and do the equivalent calculations. If the daily summary is available in a database table, then those calculations are very easy to code in SQL. ifFor thethose dailytechnically summaryable, there is availablean easy work-around to save month.in on a databasemonthly basis using the "extra files" feature. However,It thereworks because you can include "<currentlogfile>" in a remote path. Please note that this is an inefficient process (because there is no facility within Cumulus 1 to perform an action only when month ends, and this technique therefore adds an action each time Cumulus does an update) work-aroundprocess, usingbut theit "extrais files"easy featureto that you can include "<currentlogfile>"implement:
ExtraLocal25=data\month.ini
ExtraRemote25=data\month<currentlogfile>.ini
ExtraFTP25=0
 
This will save a file with a name like '''monthMar19log.txt.ini''' in your data folder. Note that there might be changes to month.ini after the last time the above work-around copies it, because the copy happens one update interval before the end of the month rollover and so will not pick up any extremes recorded in closing seconds of the month.
 
= Meaning of the different parameters =
 
You have probably worked out that the attribute ''Speed'' in the examples in the above table is the maximum wind speed, that ''Gust'' is the maximum gust speed in the month and that ''Windrun'' is the maximum daily wind run. Those are the three rows that appear in the wind section of the table in the '''thismonth.htm''' web page. But you might be puzzled that the web page only shows a date for the maximum daily wind run, yet the month.ini entry includes a time. All that means is there was no wind after that time on that day, in Cumulus 1 if you edit your template '''thismonthT.htm''' and specify ''<#MonthWindRunHD format=HH:nn>'' you will see the time appear instead of the date. Put simply, the date/time entry is when Cumulus last updated that figure. In this particular case its calculated wind run never exceeded that figure in this month, so the entry has not been updated. Similarly, highest daily rainfall tracking includes a time, representing the final updating of the total on the date reported.
 
In the [Temp] section, some of Steve's attribute names might be slightly less obvious. '''Low=''' is obviously the lowest temperature in the month and '''High=''' the highest. Comparing entries against the web page; Highest Minimum is obviously '''HighMin=''' and '''HighRange=''' the ''Highest Daily Range''. All the rest are easy to work out. For the date/time entries High is frequently (not in 'HighRange' example) abbreviated to 'H', Low to 'L' and the characters 'Time' are appended.
For full details see [[Correcting Extremes]] page.
 
The diagnostic logs (for cumulus 1 in [[Diags folder]]) record before and after values for updates to highs and lows for monthly and annual extreme records, and can help if this file is corrupted by a false extreme. TheMX storeddiagnostics valuesdo canreport bewhen corrected"month.ini" inis Cumulusupdated, 1but usingthey the 'don'Thist month's(at records''time screenof ontyping thethis) '''Edit'''record menu.what Inwas MXupdated, theso equivalent editorthere is accessedno viabefore theand user interface you see in aafter browsertracking.
 
The stored values can be corrected in Cumulus 1 using the ''This month's records'' screen on the '''Edit''' menu. In MX the equivalent editor is accessed via the user interface you see in a browser.
 
If you cannot find the file when using Microsoft Windows [[FAQ#I_can.E2.80.99t_find_my_data_files.21|see this FAQ]].
 
 
[[Category:LogIni Files]]
5,838

edits