@sfws,sfws wrote: ↑Mon 19 Jul 2021 2:02 pm I do not actually use the new default web pages, but I checked /opt/CumulusMX/webfiles/js/noaarpts.js.
The relevant file name selection code isi.e. it accepts 1 or 2 digits for month and pads that to 2 digits with any necessary leading zero, it only accepts 4 digits for year, subtracts "2000" and pads out what remains to 2 digits, and does not allow anyone to change the bits of the file name that are in quotes. This is discussed by Mark here.Code: Select all
url: rptPath + 'NOAAMO' + pad2(m) + pad2(y - 2000) + '.txt',
In my noaarpts.js (both local and server) I have these two lines:
Code: Select all
68 url: rptPath + 'NOAAMO' + pad2(m) + pad2(y - 2000) + '.txt',
107 reqRpt = rptPath + 'NOAAMO' + month + pad2(yr - 2000) + '.txt';
Since my NOAA files are now being created with a name format like NOAAMO2021-07.txt, if I just changed the above two paths to something like this, would that then allow monthly reports to be displayed (once I have some on the server!):
Code: Select all
rptPath + 'NOAAMO' + y + '-' + pad2(m) + '.txt'