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 3044 7 December 2018. 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.

Moderator: mcrossley

andrea_iw2ntf
Posts: 3
Joined: Fri 17 Aug 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 30 Aug 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: 310
Joined: Sat 13 Jun 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 30 Aug 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 17 Aug 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 30 Aug 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 09 May 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 25 Sep 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: 310
Joined: Sat 13 Jun 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 03 Oct 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: 291
Joined: Tue 12 Apr 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 28 Oct 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: 291
Joined: Tue 12 Apr 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 12 Nov 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!!

jank
Posts: 310
Joined: Sat 13 Jun 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 » Fri 16 Nov 2018 1:48 pm

Hello Richard

Line 1131 is the last line in this script......I know this kind of error when there is a (unclosed loop) (I hope this is the correct wording in english.
I am pretty sure, that an unclosed loop had the same result on previous kernel versions......and many other should see the same error.
My quesiton:
Which verison of my script are you using
Have you modified anything within the script?
Did you see this error right when you call the script or is it only if you call it with a parameter? (./cumulusmx.sh -h)
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: 291
Joined: Tue 12 Apr 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 19 Nov 2018 10:35 am

Hi Jank,

Thanks for getting back to me mate,

Im running the latest version mate.

I see this error when i do ./cumulusmx.sh -s

Kernel 4.18.10-2 i upgraded because @reboot scripts wasnt working on kernel 4.9.

Let me know what i need to change?
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!!

jank
Posts: 310
Joined: Sat 13 Jun 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 » Tue 20 Nov 2018 1:55 pm

Hello Richard

I have my raspbian updated to kernel: Linux cumulus2 4.14.81-v7+ however, i can not confirm the error you are seeing, but I can see that there is an error: ./cumulusmx.sh: Zeile 633: [: 3042: Einstelliger (unärer) Operator erwartet.

So I can not exclude, that very small syntax errors are being ignored in older kernels but newer kernels are nit ignoring my script anymore. :shock:
Where is your Cumulus running on ?
I need to check if I have other Linux computers in my network with higher Kernel versions (4.18) to verify your error.....
I will check it in the next days
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: 291
Joined: Tue 12 Apr 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 » Wed 21 Nov 2018 3:19 pm

Hi Jank,

CumulusMX is on a vmware box esxi 6.5 using Debian.

Thanks that would be much 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!!

richard_newberry
Posts: 291
Joined: Tue 12 Apr 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 » Fri 23 Nov 2018 11:25 pm

Yeah i now have the following error from doing ./cumulusmx.sh -s

./cumulusmx.sh: line 633: [: 3043: unary operator expected

Any updates on this please?
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!!

jank
Posts: 310
Joined: Sat 13 Jun 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 » Sat 24 Nov 2018 7:53 am

Yes,this is an easy one.
Since the Forum url has changed, the version number Variable is empty.
Along with your other Problem , i will release a fix for this.
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: 291
Joined: Tue 12 Apr 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 » Sat 24 Nov 2018 10:24 am

Thank you Jank
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!!

jank
Posts: 310
Joined: Sat 13 Jun 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 » Sun 25 Nov 2018 5:22 pm

richard_newberry wrote:
Mon 19 Nov 2018 10:35 am
Hi Jank,
Thanks for getting back to me mate,
Im running the latest version mate.
I see this error when i do ./cumulusmx.sh -s
Kernel 4.18.10-2 i upgraded because @reboot scripts wasnt working on kernel 4.9.
Let me know what i need to change?
Hello Richard
Today I updated my Linux Mint with Kernel 4.14 step by step until I reached Kernel 4.18 and after each update I checked the cumulusmx.sh.
Here's the screenshot with the final 4.18 Kernel.
IMG_20181125_174356.jpg
As you can see, I can not reproduce your error.
This is not good...but are you really 100% sure, that you are using my latest and unmodified version of cumulusmx.sh script and that it is not damaged?
The error you sent looks like a missing "fi" at the end of a loop ......so only 2 missing letters can cause this behaviour.....

Can you please upload the Script which is causing the errors here into the forum or send it via private message? Please zip it before you upload it.
Thanks Jan
You do not have the required permissions to view the files attached to this post.
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

Post Reply