IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

I strongly advise all users using my server for their web site to make alternative arrangements.

Outgoing mail is disabled because of the malware on the server. No new forum registrations are currently possible, and mail to the forum administrator will not work.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post 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 Feb 16, 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby novy » Thu Feb 23, 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 Mar 11, 2017 6:28 pm, edited 2 times in total.

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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby jank » Thu Feb 23, 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 Feb 16, 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby novy » Thu Feb 23, 2017 9:54 pm

Ok ive done a fresh install

Followed the instructions here up to step 3
viewtopic.php?f=27&t=13767

And then here from step 2 on
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 Feb 23, 2017 11:29 pm, edited 1 time in total.

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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby VTHokie74 » Thu Feb 23, 2017 10:06 pm

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

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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby VTHokie74 » Fri Feb 24, 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 Feb 16, 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby novy » Fri Feb 24, 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 Jul 17, 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

Postby radilly » Tue Aug 22, 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
* viewtopic.php?f=27&t=14587 - Degraded allocation warning messages
* 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 Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby hillyjd » Tue Feb 13, 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: 13
Joined: Mon Sep 25, 2017 7:51 am
Weather Station: wh1080
Operating System: win10/rapsberry pi 2

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby Mincek » Fri Oct 12, 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: 304
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: RaspberryPi: CumulusMX init.d System Startup Script

Postby jank » Thu Oct 18, 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


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 7 guests