Page 1 of 1

NOAA reports file copy

Posted: Thu 06 May 2021 9:21 am
by freddie
Does the setting that FTPs NOAA reports to your website also do local copies?

Re: NOAA reports file copy

Posted: Thu 06 May 2021 1:23 pm
by philpugh
Local to where?

If you have enabled the reports to be generated there will be a copy of the NOAA reports on your CumulusMX system in the Reports directory. The reports are created as part of the daily 'roll-over' process. It is possible to (re)generate NOAA reports for any historical information stored by your CumulusMX system - see Reports from your CumulusMX local dashboard on how to (re)generate and to view existing reports.

You can FTP them to another system which could be on your local network. The FTP process is generally used to copy them to your web server - which could be local! See the NOAA settings page from the local dashboard.

Re: NOAA reports file copy

Posted: Thu 06 May 2021 1:29 pm
by philpugh
It just occurred to me that what you could be asking is - is there is a way to do a 'normal' FTP to webserver AND FTP to a local system (NOT your CumulusSMX system).

I don't think there is an automatic way of doing this (?) You should be able to do it using a Cron job under UN*X or similar under Windows. It would need to be scheduled once a day AFTER the roll-over process in order to get the latest report.

Re: NOAA reports file copy

Posted: Thu 06 May 2021 1:36 pm
by freddie
I meant just doing a copy on the MX host to a web server running on that host. I didn't want the hassle of running an FTP server on the same host. I do this with other MX-generated files - but they all have fixed filenames, unlike the NOAA reports where the filenames vary by month and year.

I could easily do this myself on Linux using system utilities - but it isn't for me, it is for another user running a Windows host.

Re: NOAA reports file copy

Posted: Thu 06 May 2021 2:00 pm
by mcrossley
freddie wrote: Thu 06 May 2021 9:21 am Does the setting that FTPs NOAA reports to your website also do local copies?
No, and though the Extra web files can use variable names for the current log file, extra log file, and airlink log file. There are no variables for the NOAA reports - that may be a good enhancement suggestion!

Re: NOAA reports file copy

Posted: Thu 06 May 2021 3:02 pm
by sfws
freddie wrote: Thu 06 May 2021 9:21 am Does the setting that FTPs NOAA reports to your website also do local copies?


Both the legacy Cumulus, and Steve Loft's beta MX, implemented local copy of reports, and other files, if you did not specify a host name. It did a file transfer if you specified all parameters.
This was not documented in the Help provided with the legacy, but it was documented by Steve somewhere as I recall when I moved from a public website to a local web site I was able to switch to local copying of moon image and NOAA reports with Cumulus 1.
For MX beta see this topic for how Steve implemented this. It seems that Mark may have changed how MX works in his additions, so MX only offers file transfer for both moon and NOAA reports.

Bob Moss wrote code to implement a local copy alternative see here for standard files (as they existed at that time) but Mark declined to incorporate it into MX. The timing was off as Mark was already working on a new build at the time, so Bob's suggestion was submitted based on obsolete build, but I suspect Bob never had another try.

Of course MX has changed drastically since that time, but given how many people do have local web sites, maybe Local Copy should be offered by MX if you don't specify host name, just like the legacy.

Re: NOAA reports file copy

Posted: Thu 06 May 2021 4:21 pm
by mcrossley
sfws wrote: Thu 06 May 2021 3:02 pm For MX beta see this topic for how Steve implemented this. It seems that Mark may have changed how MX works in his additions, so MX only offers file transfer for both moon and NOAA reports.
Nope, the MX source code that Steve released (b3043) had no option for local copy of files if the hostname was blank. So it looks like he removed that feature at some point?

Re: NOAA reports file copy

Posted: Thu 06 May 2021 5:11 pm
by sfws
mcrossley wrote: Thu 06 May 2021 4:21 pm Nope, the MX source code that Steve released (b3043) had no option for local copy of files if the hostname was blank. So it looks like he removed that feature at some point?
Thanks, another undocumented action by Steve.

Re: NOAA reports file copy

Posted: Thu 06 May 2021 5:20 pm
by HansR
Documentation is a good thing, but it kills as well (experience).