Welcome to the Cumulus Support forum.
Latest Cumulus MX release v3.2.3 build 3059 - 04 December 2019.
See the Wiki for downloading either version.
Latest Cumulus MX release v3.2.3 build 3059 - 04 December 2019.
See the Wiki for downloading either version.
CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.4
Moderator: mcrossley
-
- Posts: 307
- 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
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.
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!!
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!!
-
- Posts: 333
- 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
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
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
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767
-
- Posts: 307
- 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
I dont know.
I will alter the script to point to the right url.
Thanks Jank.
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!!
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!!
-
- Posts: 333
- 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
Okay you can find it in line 170richard_newberry wrote: ↑Tue 27 Nov 2018 10:03 amI dont know.
I will alter the script to point to the right url.
Thanks Jank.
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 pmi 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
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767
-
- Posts: 307
- 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
Thanks Jank, that's sorted it out.
Sorry to waste your time.
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!!
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!!
- billy
- Posts: 57
- 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
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".
If I use "/etc/init.d/cumulusmx" status to check status I get:
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?
If I use "/etc/init.d/cumulusmx" status to check status I get:
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.
-
- Posts: 333
- 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
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
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
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767
- billy
- Posts: 57
- 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
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!
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!
- billy
- Posts: 57
- 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
Jan, just confirming that seems to have sorted it out. Thanks for your help.
-
- Posts: 307
- 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
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.
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!!
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!!
-
- Posts: 333
- 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
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* torichard_newberry wrote: ↑Mon 01 Jul 2019 10:59 amThis 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.
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
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767
- HansR
- Posts: 449
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: Davis Vantage Pro 2+
- Operating System: Raspbian GNU/Linux 10 (Buster)
- Location: Wagenborgen (NL)
- Contact:
Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.2
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.
The problem is the delimiter character in the cut command.
Not a very big problem but thought I ought to inform you.
Best,
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)
Not a very big problem but thought I ought to inform you.
Best,
https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
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)
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)
-
- Posts: 333
- 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
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)
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
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767
- HansR
- Posts: 449
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: Davis Vantage Pro 2+
- Operating System: Raspbian GNU/Linux 10 (Buster)
- Location: Wagenborgen (NL)
- Contact:
Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.3
Thnx Jan, quick reply, works perfectly 
Best,

Best,
https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
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)
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)
- HansR
- Posts: 449
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: Davis Vantage Pro 2+
- Operating System: Raspbian GNU/Linux 10 (Buster)
- Location: Wagenborgen (NL)
- Contact:
Re: CumulusMX - RaspberyPi - Start|Stop|Restart Script V2.5.5.3
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.
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.
You do not have the required permissions to view the files attached to this post.
https://meteo-wagenborgen.nl / Cumulus (3.1.2-b3055)
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)
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)