The problem was previously it was looking for a date in 2020! Your field delimiter and date delimiter suggestion was irrelevant as although I don't use MX, I believe Cumulus 1 and Cumulus 3 (MX) use same format for dates in dayfile.txt (although dates in other Cumulus log files are different between the two versions). You (dazza123) have solved that year problem, as presumably you were previously feeding in the first two figures of the year as the last two digits, now you are feeding in the correct 4 digit year. Perhaps, for the benefit of others, you can share what you had wrong and have now corrected, because I can't read your mind to know how you corrected the year.
Mapantz has spotted (well done) why that you still have a problem with the dates, as my Cumulus template file line 188 containsMapantz wrote:Anything to do with Cumulus V1 vs Cumulus V3?
Code: Select all
<script>var metDate=['<#metdate format="dd">','<#metdate format="mm">','<#metdate format="yyyy">',(parseInt("0"+"<#rollovertime>",10)),"<#rollovertime>"];</script><!-- Pass current Meteorological date and rollover time to script to search dayfile.txt, so knows what day to start search from -->
The solution is simple, the month format selector in template line 188 needs to be in capitals to work with both Cumulus 1 and Cumulus MX:
Code: Select all
<script>var metDate=['<#metdate format="dd">','<#metdate format="MM">','<#metdate format="yyyy">',(parseInt("0"+"<#rollovertime>",10)),"<#rollovertime>"];</script><!-- Pass current Meteorological date and rollover time to script to search dayfile.txt, so knows what day to start search from -->]