Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.1.2 build 3055 - 4 November 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

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

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

richard_newberry
Posts: 302
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Buster
Location: Leicester
Contact:

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

Post by richard_newberry » Tue 27 Nov 2018 1:24 am

i have only took out Raspberry pi bit because mines not a Raspberry Pi

Please see attached the files as requested.

I have deleted the old file and still the same error message.
You do not have the required permissions to view the files attached to this post.
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: 325
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 27 Nov 2018 8:13 am

Hello Richard
I downloaded your file and started it on my Raspberry PI and it worked as expected.
Some posts ago, you wrote about this error message:

error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file
But in the attached docx file I can see, that the command: ./cumulusmx.sh -s is correctly showing the status information without the above error.
The only error is on top of the status page:

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

And this error is "normal" because the variable: $MXVERSIONONLINE is pointing to "http://sandaysoft.com/forum/" and must be changed to
"https://cumulus.hosiene.co.uk/" .......

So I am a little bit confused where, and when you get the error error is: ./cumulusmx.sh: line 1131: syntax error: unexpected end of file ?

Jan
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: 302
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Buster
Location: Leicester
Contact:

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

Post by richard_newberry » Tue 27 Nov 2018 10:03 am

I dont know.

I will alter the script to point to the right url.

Thanks 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: 325
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 27 Nov 2018 11:10 am

richard_newberry wrote:
Tue 27 Nov 2018 10:03 am
I dont know.
I will alter the script to point to the right url.
Thanks Jank.
Okay you can find it in line 170
and replace this line with
MXVERSIONONLINE=$(curl -s https://cumulus.hosiene.co.uk/ -o /tmp/version.txt | grep -i "Latest Cumulus MX release" /tmp/version.txt | sed 's/^.*v3.0.0/>v3.0.0/' |cut -c2-18)


So I assume, I can ignore this error (post) from you?
richard_newberry wrote:
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.
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: 302
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Buster
Location: Leicester
Contact:

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

Post by richard_newberry » Tue 27 Nov 2018 11:25 pm

Thanks Jank, that's sorted it out.

Sorry to waste your time.
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!!

User avatar
billy
Posts: 54
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

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

Post by billy » Tue 05 Feb 2019 10:28 am

Recently I upgraded to V2.5.5.0 and now when I check the status with "sudo ./cumulusmx.sh -s" I get errors that are probably due to the first one reported "nc: port number invalid".

Capture.PNG

If I use "/etc/init.d/cumulusmx" status to check status I get:

Capture2.PNG

None of this seems significant because everything else apparently functions as expected despite what the script reports (or doesn't). The script is started at boot using init.d.

This has been reported previously in this thread but I can't find any solutions - at least that I understand and can work out how to implement. The reason I would like to solve it is the "nc: port number invalid " seems to be causing a cron job, that does a daily backup, to issue an email each time - but the backup works.

So, is there a "simple" solution to its irritating consequence?
You do not have the required permissions to view the files attached to this post.

jank
Posts: 325
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 05 Feb 2019 11:20 am

Hello

if you have a look into your first screenshot, you can see, that there is not an IPv4 IP Address listed, but an IPv6 IP address.

Background:
An IPv4 address with Port 8998 looks like 192.168.3.222:8998
an IPv6 Address looks like: xxxx:xxxx:xxxx:xxxx (Hexdecimal characters)

You can do me a favour....I just looked into the code and I can see, that I determine the IP Address with the command: hostname -I
Can you pleasecheck this command on your PI:
hostname -I

I assume, you are getting the IPv6 IP address instead of an IPv4 IP address ?

If you see an IPv6 Address, you can temporary disable IPv6 with this command

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

After the next reboot, IPv6 is still enabled, or insert
echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6 to enable it immidiately

I assume, you are still using an IPv4 Network ?
If you think it is safe to turn IPv6 permanently off, follow this:
nano /etc/sysctl.d/01-disable-ipv6.conf to create an empty file and insert this line:

net.ipv6.conf.all.disable_ipv6 = 1
Save.
This will permanently disable IPv6 (If you need IPv6 sometime in the future, remove this file......

Would this be an option for you ?

Jan
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
billy
Posts: 54
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

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

Post by billy » Tue 05 Feb 2019 1:08 pm

hostname -I does indeed give the IPv6 IP address

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 results in:
"-bash: /proc/sys/net/ipv6/conf/all/disable_ipv6: Permission denied"
(prefixing sudo does not change this)

However, I have successfully made /etc/sysctl.d/01-disable-ipv6.conf
And after a reboot sudo ./cumulusmx.sh -s no longer produces the error.

My network seems to have both an IPv4 and an IPv6 address - when checking network settings on a windows 10 pc. But I don't really know what I'm doing in that area so may not be looking at the correct part.

The daily cron job doing the backup happens early tomorrow morning, so I await the outcome.

It's looking promising - thank you!

User avatar
billy
Posts: 54
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: Oregon WMR200
Operating System: RPi jessie
Location: Perth, Australia

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

Post by billy » Fri 08 Feb 2019 2:03 am

Jan, just confirming that seems to have sorted it out. Thanks for your help.

richard_newberry
Posts: 302
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Buster
Location: Leicester
Contact:

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

Post by richard_newberry » Mon 01 Jul 2019 10:59 am

This is what I receive on my status page but I can't find version V2.5.5.2.

can you point me in the right direction please.
You do not have the required permissions to view the files attached to this post.
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: 325
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 » Mon 01 Jul 2019 12:43 pm

richard_newberry wrote:
Mon 01 Jul 2019 10:59 am
This is what I receive on my status page but I can't find version V2.5.5.2.
can you point me in the right direction please.
Hello Richard....I am so sorry, I missed to put the 2.5.5.2 on this website. The change between 2.5.5.0 and 2.5.5.2 is just small. I corrected the URLs in the script from *sandaysoft* to
https://cumulus.hosiene.co.uk .....The most current version is now on the first page of this post, available for download,,,,,
Jan
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
HansR
Posts: 346
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 9 (stretch)
Location: Wagenborgen (NL)
Contact:

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

Post by HansR » Wed 03 Jul 2019 8:19 am

Hi,

I just updated the start/stop script to 2.5.5.2 version. All is OK, but I took the opportunity to run the -c option and I noticed the FTP check went wrong. As CumulusMX is running fine I checked the script and found a small error: in the lines where you parse the cumulus.ini at the FTP section, the passwordline goes wrong if there is an '=' character in the password (which is legal) and which happens to be the case in my situation.

Code: Select all

 FTPPASS=$(grep -A 5 "FTP site" $INSTPATH/Cumulus.ini | grep Password | cut -d = -f 2)
The problem is the delimiter character in the cut command.
Not a very big problem but thought I ought to inform you.

Best,
https://meteo-wagenborgen.nl / Cumulus MX 3.1.0-b3053
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

jank
Posts: 325
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.2

Post by jank » Wed 03 Jul 2019 9:49 am

HansR wrote:
Wed 03 Jul 2019 8:19 am
.....found a small error: in the lines where you parse the cumulus.ini at the FTP section, the passwordline goes wrong if there is an '=' character in the password (which is legal) and which happens to be the case in my situation.
Hello Hans
thank you very much for reporting this error.

A new Script Version is in the first post where this error is being fixed (2.5.5.3)
The change is

Code: Select all

 FTPPASS=$(grep -A 5 "FTP site" $INSTPATH/Cumulus.ini | grep Password | cut -d = -f 2-10)
PLease let me know if this doesn ot work for you......
Jan
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
HansR
Posts: 346
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 9 (stretch)
Location: Wagenborgen (NL)
Contact:

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

Post by HansR » Wed 03 Jul 2019 12:15 pm

Thnx Jan, quick reply, works perfectly :)
Best,
https://meteo-wagenborgen.nl / Cumulus MX 3.1.0-b3053
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

User avatar
HansR
Posts: 346
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 9 (stretch)
Location: Wagenborgen (NL)
Contact:

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

Post by HansR » Fri 25 Oct 2019 2:47 pm

Hi,

I recently got a new modem and I am now on ipv6 address. This results in the following output while starting. Cumulus starts and stops OK but there is an error.

IPv6 error in cumulusmxsh.JPG
You do not have the required permissions to view the files attached to this post.
https://meteo-wagenborgen.nl / Cumulus MX 3.1.0-b3053
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / Linux 4.19.75-v7+ armv7l
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)

Post Reply