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

VARIAS SESIONES ABIERTAS CUMULUS MX

Share your Cumulus MX user interface here

Moderator: mcrossley

Post Reply
ajimemar
Posts: 11
Joined: Wed 13 Jul 2016 8:31 pm
Weather Station: OREGON WMR-180
Operating System: LINUX
Location: Guadamur,Spain

VARIAS SESIONES ABIERTAS CUMULUS MX

Post by ajimemar »

Al objeto de enviar los datos a distintos alojamientos web, no se si es posible tener varias sesiones abiertas cada una con un ftp distinto o hay otra manera de hacerlo. Gracias.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: VARIAS SESIONES ABIERTAS CUMULUS MX

Post by freddie »

Translation: In order to send the data to different web hosts, I don't know if it is possible to have several sessions open, each one with a different FTP server, or if there is another way to do it. Thanks.
Freddie
Image
flort
Posts: 248
Joined: Thu 17 Dec 2020 9:06 am
Weather Station: Davis Vantage Vue
Operating System: Raspbian GNU/Linux 10 (buster)
Location: Tin Can Bay, Queensland, Australia

Re: VARIAS SESIONES ABIERTAS CUMULUS MX

Post by flort »

You could have multiple instances of Cumulus each with its own FTP settings, or something I use to do was a single instance of Cumulus with FTP details for one hosting company and then use LFTP to upload data to another host. LFTP was controlled by a Cron job with realtime data uploaded every 2 minutes, standard json files uploaded every 15 minutes and NOAA Reports/Dayfile uploaded once per day.

Script for LFTP standard json files looked something like this:

Code: Select all

lftp ftp://{hosting location & password} -e "mirror --reverse --only-newer /home/pi/CumulusMX/web/ /htdocs/weather; quit"
Script for LFTP realtime data (including websitedata.json):

Code: Select all

lftp ftp://{hosting location & password} -e "put -O /htdocs/weather /home/pi/CumulusMX/web/realtimegauges.txt; put -O /htdocs/weather /home/pi/CumulusMX/web/websitedata.json; put -O /htdocs/weather /home/pi/CumulusMX/web/realtime.txt; quit"
Script for LFTP reports:

Code: Select all

lftp ftp://{hosting location & password} -e "mirror --reverse --only-newer /home/pi/CumulusMX/Reports/ /htdocs/weather/NOAA-reports; put -O /htdocs/weather /home/pi/CumulusMX/data/dayfile.txt; quit"
Cron job

Code: Select all

	# m h  dom mon dow   command
	*/2 * * * * /home/pi/Scripts/ftpRealtime.sh
	1,16,31,46 * * * * /home/pi/Scripts/ftpWeb.sh
	15 0 * * * /home/pi/Scripts/ftpReports.sh
There may be a better way to achieve this but that's what worked for me.

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

Re: VARIAS SESIONES ABIERTAS CUMULUS MX

Post by mcrossley »

Thanks Trevor, I think that is what they were after.

Instead of cron you could also try the "External Programs" in Internet Settings?
ajimemar
Posts: 11
Joined: Wed 13 Jul 2016 8:31 pm
Weather Station: OREGON WMR-180
Operating System: LINUX
Location: Guadamur,Spain

Re: VARIAS SESIONES ABIERTAS CUMULUS MX

Post by ajimemar »

Muchas gracias a todos pero ya he encontrado la solución, se crean las distintas instalaciones cada una en una carpeta distinta, se hacen un enlace directo al ejecutable pero a este se le añade -port 899X detras del cumulusMX.exe es decir CumulusMX.exe -port 899x y así se pueden tener varias sesiones abiertas con la misma estación y enviado vía ftp cada una a un servidor distinto.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: VARIAS SESIONES ABIERTAS CUMULUS MX

Post by freddie »

Translation: Many thanks to everyone but I have already found the solution, the different installations are created each one in a different folder, a direct link is made to the executable but to this -port 899X is added after the cumulusMX.exe i.e. CumulusMX.exe -port 899x and thus you can have several sessions open with the same station and each one sent via ftp to a different server.
Freddie
Image
Post Reply