Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

RaspberryPi: CumulusMX init.d System Startup Script

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
User avatar
novy
Posts: 27
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy » Thu 23 Feb 2017 7:12 pm

Today i formatted the sd again reinstalled RASPBIAN JESSIE only
No berryboot installed this time.
just installed vnc server for control of the pi
all working and starting at boot .

In my last install i did have the cumulusmx.sh file and the cumulusmxsh.conf in my cumulusMX directory but as you say it may have not been installed correctly

I will start over again on a fresh install of cumulusMX now .
Last edited by novy on Sat 11 Mar 2017 6:28 pm, edited 2 times in total.

jank
Posts: 305
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank » Thu 23 Feb 2017 8:58 pm

Hiho
normally, here is nothing to install.
copy the Cumulusmx.sh and the cumulusmxsh.conf file into your CumulusMX directory
Make the cumulusmx.sh executable ---> chmod +x cumulusmx.sh
Open cumulusmx.sh with an editor (sudo nano cumulusmx.sh ) and insert the corect path to your CumulusMX installation directory in line 16
Open cumulusmxsh.conf and make some further setting changes (BAckup path, number of backups etc) and save it also
call the cumulusssmx.sh sctipt the first time --> sudo ./cumulusmx.sh -s (-s = Status) it will tell you if CumulusMX is already running)
If it it not running, you can start it by calling: sudo ./cumulusmx.sh (without any parameter) - call the script again and it will ask you to stop CumulusMX
If you want to see what else this script can do for you, use sudo ./cumulusmx.sh -h (for help)
You don
t need any graphical user interface on yourRaspberry pi anymore....just the console....no mouse ....only the keyboard :-)

Have fun........
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

User avatar
novy
Posts: 27
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy » Thu 23 Feb 2017 9:54 pm

Ok ive done a fresh install

Followed the instructions here up to step 3
http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

And then here from step 2 on
http://sandaysoft.com/forum/viewtopic.php?f=27&t=14753

Rebooted the pi and cumulus is running in background uploading data and starting at boot at last haha :)

The only things i did differently this time was not putting anything into crone e and having to remove it later .
Ive possibly not edited path_to_script in this part when i done it at first
sudo chmod +x /path_to_script/cumulusmx.sh
and i was using berryboot also yesterday.

Anyway everything is working perfect now
Cheers guys for your help much appreciated

nov.
Last edited by novy on Thu 23 Feb 2017 11:29 pm, edited 1 time in total.

User avatar
VTHokie74
Posts: 130
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Rasbian
Location: Ashland, KY

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by VTHokie74 » Thu 23 Feb 2017 10:06 pm

Great to hear!
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3

User avatar
VTHokie74
Posts: 130
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Rasbian
Location: Ashland, KY

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by VTHokie74 » Fri 24 Feb 2017 6:34 pm

Novy

I was wondering if you had forgotten the step to make cumulusmx.sh executable the first time?
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3

User avatar
novy
Posts: 27
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy » Fri 24 Feb 2017 9:37 pm

possibly that was my problem . i do not remember editing the path the first time round :roll:

its still running anyway

all good :)

User avatar
radilly
Posts: 62
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspian Jessie
Location: McMurray, PA, US
Contact:

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by radilly » Tue 22 Aug 2017 2:51 pm

In case anyone else runs into a nursery-size warning, i.e.

Code: Select all

Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.
I added the following line to my systemd service file

Code: Select all

[Service]
Environment=MONO_GC_PARAMS=nursery-size=8m
I was seeing the message every time I rebooted (but can't recall if a systemctl restart triggered it). Doubling the default nursery-size for mono seems to have stopped the warning without causing other issues I've noticed so far.

This is warning mentioned in
* http://sandaysoft.com/forum/viewtopic.php?f=27&t=14587 - Degraded allocation warning messages
* http://sandaysoft.com/forum/viewtopic.php?f=27&t=14338 - Arrgh! Network keeps randomly dropping when I run MX

Cheers,
Bob


Ref: https://stackoverflow.com/questions/184 ... g-persists

hillyjd
Posts: 26
Joined: Sun 23 Apr 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by hillyjd » Tue 13 Feb 2018 3:42 pm

I'm having the same problem with "degraded allocation". What file did you modify? I can't find a systemd service file.

Mincek
Posts: 14
Joined: Mon 25 Sep 2017 7:51 am
Weather Station: wh1080
Operating System: win10/rapsberry pi 2

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by Mincek » Fri 12 Oct 2018 12:05 pm

Hi, i have a problem with autostart :(

even if i go to manualy
sudo /etc/init.d/cumulusmx start
cumulus is not running ;/

maybe a little help ??

jank
Posts: 305
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank » Thu 18 Oct 2018 10:19 am

Hello

have you checked if the cumulusmx script is executable
sudo chmod +x /etc/init.d/cumulusmx

or have you made the needed changes in the top of this file to modify the path to the Cumulus Folder

CumulusMX_HOME=/CumulusMX
CumulusMX_USER=pi
NAME=CumulusMX
PIDFILE=/tmp/$NAME.pid
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

Mincek
Posts: 14
Joined: Mon 25 Sep 2017 7:51 am
Weather Station: wh1080
Operating System: win10/rapsberry pi 2

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by Mincek » Mon 22 Oct 2018 5:12 am

I've already done it in a different way, but thank you for your help.
Best Regards

Post Reply