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

Headless start on a Pi

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

thecivvie
Posts: 39
Joined: Mon 02 Apr 2012 6:48 pm
Weather Station: Davis Vantage Vue
Operating System: Raspberry Pi
Location: Renvyle, Connemara, Ireland
Contact:

Headless start on a Pi

Post by thecivvie »

Is there anyway to start MX on a Pi headless. I currently have a monitor plugged in but the plan is to stick the lot in a box and put it up a mountain somewhere :)
Image
water01
Posts: 3253
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Headless start on a Pi

Post by water01 »

Install VNC and start it from a VNC console on another networked computer?
David
Image
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: Headless start on a Pi

Post by tumutbound »

I don't have a monitor/keyboard on my Pi, I just use ssh from my main computer.

THe problem is that when the network connection is closed for any reason, CumulusMX stops as the terminal session is closed.
Using nohup doesn't work neither does mono-service.
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Headless start on a Pi

Post by steve »

My Pi is headless, I use TightVNC. I guess that's not an option though if you don't have a desktop running on the Pi?
Steve
thecivvie
Posts: 39
Joined: Mon 02 Apr 2012 6:48 pm
Weather Station: Davis Vantage Vue
Operating System: Raspberry Pi
Location: Renvyle, Connemara, Ireland
Contact:

Re: Headless start on a Pi

Post by thecivvie »

I can ssh in alright, but as tumutbound says, the minute you log out it stops MX working. I am going to try a bash script to see if that works, Of course the problem is there is no way to restart CumulusMX remotely short of rebooting
Image
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Headless start on a Pi

Post by steve »

Presumably turning it into a service/daemon will solve some of these issues?
Steve
tumutbound
Posts: 154
Joined: Thu 11 Mar 2010 11:03 am
Weather Station: WH1081
Operating System: Linux, Raspberry Pi (Wheezy)
Location: Port Huon, Tasmania , Australia
Contact:

Re: Headless start on a Pi

Post by tumutbound »

steve wrote:Presumably turning it into a service/daemon will solve some of these issues?
It should do.

I've tried a few options to try to start it as a service but the fact the CumulusMX waits for and responds to stdin, kills the process. (at least I think that's what it is)
My weather
CumulusMX (3036)
Raspberry Pi: Wheezy
FineOffset WH1081
henkg
Posts: 99
Joined: Sun 24 Jul 2011 8:53 am
Weather Station: WH3080 (Alecto WS-5000 ECO)
Operating System: Raspbian Wheezy on RPI B+
Location: Zeeland, Netherlands

Re: Headless start on a Pi

Post by henkg »

Same here. Running a headless RPI, accessing it with a Windows PC using Putty. After closing the Putty session (or shutting down the PC, which is closing the Putty session), CumulusMX stops.

Being a Linux novice, I also would like to know how to keep CumulusMX running.
Image
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: Headless start on a Pi

Post by mcrossley »

nohup may work if MX wanted specific input like a Ctrl-Z to terminate rather than any input?
Last edited by mcrossley on Tue 06 Jan 2015 4:35 pm, edited 1 time in total.
swyman18
Posts: 56
Joined: Fri 24 Apr 2009 5:27 am
Weather Station: Davis Vantage Pro2
Operating System: Ubuntu Server 14.04
Location: Honoka'a, HI

Re: Headless start on a Pi

Post by swyman18 »

I've tried a few things as well to "daemonize" the startup command but unfortunately my Linux skills are not the best.
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: Headless start on a Pi

Post by mcrossley »

I'm going to have the same problem, I don't run a windows shell, just SSH in to the rPi. Still I can't run it on the Pi yet anyway as it overwrites the realtime.txt coming from my Cumulus 1 install as soon as I enable FTP.
freddie
Posts: 2475
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Headless start on a Pi

Post by freddie »

I installed screen ('apt-get install screen', then 'screen mono /path/to/exe', then ctrl+alt+d to detach) and that worked.
Freddie
Image
hmiller
Posts: 12
Joined: Fri 28 Dec 2012 10:21 pm
Weather Station: Davis VP2 Wireless
Operating System: Raspberry Pi Model B
Location: Darrington, Wa. USA

Re: Headless start on a Pi

Post by hmiller »

I will but installing mine on the PI this evening. When I used consolewd I used "screen" to keep it running at boot time. Perhaps that may work for this as well.
hmiller
Posts: 12
Joined: Fri 28 Dec 2012 10:21 pm
Weather Station: Davis VP2 Wireless
Operating System: Raspberry Pi Model B
Location: Darrington, Wa. USA

Re: Headless start on a Pi

Post by hmiller »

You beat me to it. :D Glad that works.
swyman18
Posts: 56
Joined: Fri 24 Apr 2009 5:27 am
Weather Station: Davis Vantage Pro2
Operating System: Ubuntu Server 14.04
Location: Honoka'a, HI

Re: Headless start on a Pi

Post by swyman18 »

I see executing screen allows me to launch CumulusMX and then quit the SSH session, that is cool.

Dumb question though, if I log in later under a new SSH session, is there a way to stop the program running under screen? Or do I just need to kill the process manually?
Locked