Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

[IMPLEMENTED] Add a "Local copy" option to Internet settings

A Forum to archive Cumulus MX development suggestions that have been rejected or solved by other means.
Locked
bobmoss
Posts: 14
Joined: Sat 27 Dec 2008 11:02 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry PI Zero W

[IMPLEMENTED] Add a "Local copy" option to Internet settings

Post by bobmoss »

Having just setup Cumulus MX on a Raspberry PI, I now want it to update a website running locally on the same machine.

The Wiki is a bit vague on how to do it without FTP, but after asking for help in the forum, it seems the only way to get Cumulus MX to copy files locally is to manually setup all the files under "Extra web files".

It would be great if, under the Web/FTP section there was a "local copy" option, where you could simply tick a box and put the local "/var/www/html" path in, and then it would work exactly the same as FTP.

Thanks.
bobmoss
Posts: 14
Joined: Sat 27 Dec 2008 11:02 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry PI Zero W

Re: Add a "Local copy" option to Internet settings

Post by bobmoss »

OK, I thought this was such a good idea, and I really couldn't be bothered to enter 20 odd extra web files in the configuration, I've spent the afternoon making the change myself and the pull request is awaiting admin approval!
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Add a "Local copy" option to Internet settings

Post by mcrossley »

I'll reply on the PR - it needs a little more work...
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Add a "Local copy" option to Internet settings

Post by Phil23 »

bobmoss wrote: Wed 01 Jul 2020 4:04 pm I really couldn't be bothered to enter 20 odd extra web files in the configuration,
Just thinking on a tangent from the Windows World.
If I was faced with the issue I'd look at installing a very simple FTP server on my hosting PC.

I'm sure Pi has one. One suggestion is sudo apt install proftpd.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
bobmoss
Posts: 14
Joined: Sat 27 Dec 2008 11:02 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry PI Zero W

Re: Add a "Local copy" option to Internet settings

Post by bobmoss »

mcrossley wrote: Thu 02 Jul 2020 8:05 am I'll reply on the PR - it needs a little more work...
Thanks, I shall await your comments!
bobmoss
Posts: 14
Joined: Sat 27 Dec 2008 11:02 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry PI Zero W

Re: Add a "Local copy" option to Internet settings

Post by bobmoss »

Phil23 wrote: Thu 02 Jul 2020 9:45 am Just thinking on a tangent from the Windows World.
If I was faced with the issue I'd look at installing a very simple FTP server on my hosting PC.
I'm sure Pi has one. One suggestion is sudo apt install proftpd.
Thanks, I do have the ftp server setup on the PI and could have gone down that route (and it would be best for most people at the moment). However I knew the "extra web files" could do a local copy (which is a better way of doing things), and I've got the programming skills to fix it, so thought I would have a go at changing it!
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Add a "Local copy" option to Internet settings

Post by Phil23 »

bobmoss wrote: Thu 02 Jul 2020 10:16 am and I've got the programming skills to fix it, so thought I would have a go at changing it!
One thought I had that some others rejected as an option to upload standard files with PHP extension.

Not applicable for fully fledged PHP sites was what someone mentioned.

But for one with limited html & PHP skills like myself if would be a good to use little bits of PHP on standard pages.

Probably something you could code; but ultimately Marks decision as to whether it was included.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Locked