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

CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
andrea_iw2ntf
Posts: 3
Joined: Fri Aug 17, 2018 8:11 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Gaggiano - MI - ITA
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by andrea_iw2ntf » Thu Aug 30, 2018 4:01 pm

ok, tnx

this is the result...
You do not have the required permissions to view the files attached to this post.

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

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by jank » Thu Aug 30, 2018 5:15 pm

Hello, looks like pgrep isn't working on your Raspberry (as expected)
can you check:
pgrep -v
pgrep -ia mono
pgrep -ia cron


and also pgrep -v mono did you see many PID's (don'tpaste them here....a simple yes/no would be enough :-)

I assume the command: pidof mono is showing the correct PID ?

If the command pidof mono is showing the correct PID you can simply modify the script at line 155 by changing the line from:
MONOPID=$(pgrep mono && echo)
into
MONOPID=$(pidof mono)
This is less complicated then using pgrep ....not sure, why I used pgrep instead of pidof.

anyways, let me know if you did not feel confortable to change a line in the code of the script, in this cae, I can send you a modified file ?
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

andrea_iw2ntf
Posts: 3
Joined: Fri Aug 17, 2018 8:11 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Gaggiano - MI - ITA
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by andrea_iw2ntf » Thu Aug 30, 2018 7:42 pm

WOW

now it works properly! It was in line n. 188.

PID is displayed correctly

I attach the file

It could be called script V2.5.5.1

tnx! Andrea iw2ntf
You do not have the required permissions to view the files attached to this post.

bab5871
Posts: 12
Joined: Mon May 09, 2016 3:42 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian Jesse RPi3
Location: Ballston Lake NY

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by bab5871 » Tue Sep 25, 2018 6:11 pm

So I've been logging into the pi, starting screen then doing a sudo mono cumulusmx.exe... Some times CumulusMX will error out and throw an exception which mono keeps running until you hit ctrl c to close it out. Will this script address any crashes like this and restart cumulus?

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

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by jank » Wed Oct 03, 2018 8:32 am

bab5871 wrote:So I've been logging into the pi, starting screen then doing a sudo mono cumulusmx.exe... Some times CumulusMX will error out and throw an exception which mono keeps running until you hit ctrl c to close it out. Will this script address any crashes like this and restart cumulus?
What you are looking for is a kind of watchdog. This script is not a watchdog it is just an easy way to manage Mono/CumulusMX but it is not checking for any errors thrown by these programs (exceptions).
Regarding the exceptions you constantly get....have you ever tried to use another RaspberrryPi? Maybe it is a simple hardware (Memory) problem or your SD Card is damaged ?

Btw: Found this topic here...maybe it is interesting for you ?
http://sandaysoft.com/forum/viewtopic.php?f=27&t=17095
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

richard_newberry
Posts: 283
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by richard_newberry » Sun Oct 28, 2018 4:22 pm

Nice bit of software you made mate.

Are you still going to support your software.

Hi Steve,

I am really sorry about not knowing about a family member passing away. I just get frustrated other software needs updated if i do cumulus doesnt work.

I know your software is the best so far why i dont want to change it.

All the best Steve in your retirement. Enjoy it youve only got one life.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

richard_newberry
Posts: 283
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.0

Post by richard_newberry » Mon Nov 12, 2018 11:24 pm

i am getting error on kernel on 4.18

error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file

An thing would be appreciated.
Desford Weather
http://www.desford-weather.co.uk
http://desford-weather.co.uk
Also on Desford weather underground.
Looking forward to cumulus on Linux platform it'll rock!!

Post Reply