Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Generating Files Without Uploading

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Generating Files Without Uploading

Post by mcrossley »

Bob, I think it is a fair point that the setup of interval/realtime, and FTP is not very intuitive. It's what has been there from day one and it could do with some loving.

Ideally you want a section of config that just controls all this in a simple manner. Currently FTP is "controlled" by whether the FTP host name is blank or not!

More for the ToDo list! :groan:
User avatar
radilly
Posts: 123
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspberry Pi 3, OS Buster Lite
Location: McMurray, PA, US
Contact:

Re: Generating Files Without Uploading

Post by radilly »

mcrossley wrote: Sun 10 Jan 2021 8:27 pm Bob, I think it is a fair point that the setup of interval/realtime, and FTP is not very intuitive. It's what has been there from day one and it could do with some loving.

Ideally you want a section of config that just controls all this in a simple manner. Currently FTP is "controlled" by whether the FTP host name is blank or not!

More for the ToDo list! :groan:
Mark-
The easiest, and I think largely adequate and quick solution would be to just add an (i) information line below the Host name as you've added elsewhere to the effect that leaving it blank disables FTP. I suspected that would do it, but I removed Host name, Username and Password to be sure ... the password being a small part of my idea to move to rsynch over ssh.

I did just put back FTP for a few minutes to capture some data on the difference in performance - which is significant. I'll start a separate thread on what I'm doing, looking for a little feedback (or testing) on it. If I can get some confirmation I'd be happy to write it up for the Wiki. That's part of my reason for wanting to clarify my understanding. I also believe some WinSCP scripting could do this on Windows as well. I've actually been using WinSCP in a batch file to effectively rsync my Cumulus install to a drive on my PC (although I just now realized I am accumulating a bunch of backup subdirectories :oops: ). May take me a couple days to pull together my thinking about how others can replicate my approach.

I think it's pretty amazing - the amount of flexibility baked into Cumulus given how it's evolved over time. There's also a considerable body of knowledge among those using this forum. At the same time I found it interesting that a few folks in this thread ... reasonably ... questioned why I'd want to disable FTP. (And if I hadn't run into an increasing number of FTP issues ... across 3 different hosting accounts over time ... I'd still be happily using it.)

In a nutshell I appreciate the work you've done, and, having skipped quite a few CMX updates, I have seen stability noticeably improved as much as features.
THANKS!
Cheers,
Bob
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Generating Files Without Uploading

Post by mcrossley »

I run Cumulus and my web server on the same box, so I can get away with local file copies using the Extra Files - easy for me!

As you note, good old FTP is just about the slowest file transfer mechanism you can use!
SFTP is considerably faster (it's just the equivalent of SCP under the skin), so use that if your web server supports it.

I'll add an info note to the host name setting.
User avatar
radilly
Posts: 123
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspberry Pi 3, OS Buster Lite
Location: McMurray, PA, US
Contact:

Re: Generating Files Without Uploading

Post by radilly »

mcrossley wrote: Mon 11 Jan 2021 10:16 am As you note, good old FTP is just about the slowest file transfer mechanism you can use!
SFTP is considerably faster (it's just the equivalent of SCP under the skin), so use that if your web server supports it.
Some years ago I was working on some really stripped down Unix systems and relied on vi, ftp, mail and got very comfortable with those basics. I believe today, the lite versions of Raspberry OS doesn't even have an ftp client.

I did try to use SFTP, but had issues. In fact it locked up my hosted server. Whatever I did ... the server saw it as an attack and shut down the IP address, which I had to have CSR reset for me. Not a great environment to experiment in! :shock: I'm pretty sure the issue was in the Pre-shared Private Key file for SFTP (psk file) spec. The closest things I know of is the ppk on Windows (PuTTY) and suspect I wasn't translating correctly to Raspbian. In researching SFTP I thought I read that SCP was somewhat better integrated with ssh.

I've now gone exclusively to password-less ssh, using ssh-keygen (https://www.ssh.com/ssh/keygen/) for all my uploads, CMX and several Python scripts - which does require a little initial server-side setup. No passwords are stored on disk, just the asymmetric keys. Seems to be working really well thus far.

I'll send a PM about sharing the approach.
mcrossley wrote: Mon 11 Jan 2021 10:16 am I run Cumulus and my web server on the same box, so I can get away with local file copies using the Extra Files - easy for me!
I installed apache on my Pis and have a few things running off it - mostly cgi-bin Python. I hadn't thought about moving the admin dashboard to it. (I sorta like the separate port.) I've had a couple domains hosted for some time, so I've just leveraged it for WX.
Cheers,
Bob
Post Reply