Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.2.4 build 3060 - 10 December 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

    jank
    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.3

    Post by jank » Wed 06 Nov 2019 8:21 am

    Hello Billy

    in my post earlier this year I asked you if you really need IPv6 or if you could disable it on your device and you told me that you are okay to disable it.
    Please keep in mind, ipv6 on the RaspberryPi can not be permanentely disabled, so it must be disabled on every boot ...as far as I remember

    But HansR would like to use IPv6 on his device to be prepared for the far future, for a life with ipv6.
    Anyway, I have a new version in place which is hiding the ipv6 information in the output but not presuppose a disabled ipv6 on your device.

    If I have time today, I will put the new version on the first page of this thread (as alwways)

    btw: If you followed my suggestiont earlier this year to disable ipv6:

    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......


    ...you can now delete this file to enable ipv6 in the hope, that my changes work :-)

    thank 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

    slashmusic
    Posts: 221
    Joined: Sun 10 Jan 2010 10:43 am
    Weather Station: WS2350
    Operating System: Raspberry Pi2 - Debian
    Location: Germany
    Contact:

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

    Post by slashmusic » Thu 07 Nov 2019 3:23 pm

    Version 2.5.5.4 is available [07.11.2019]

    * Fixed an output error on devices where ipv6 is enabled. (IPv6 information will now be ignored
    * Fixed an output error when checking CumulusMX Version information in status page
    * Syntax check of all output messages (thank you goes to Experimentor

    the update is available in the first post of this thread
    Image

    richard_newberry
    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.4

    Post by richard_newberry » Sun 17 Nov 2019 10:41 pm

    Hi,

    Can anyone help me what error messages are these since I updated to V2.5.5.4.

    nc: invalid option -- '4'
    nc -h for help
    ./cumulusmx.sh: line 636: [: integer expression expected
    <<<<<<<<< Cumulus Status at Sun 17 Nov 22:39:18 GMT 2019 >>>>>>>>

    Thanks.
    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: 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.4

    Post by jank » Mon 18 Nov 2019 11:18 am

    Hello Richard

    Your error: nc: invalid option -- '4'

    nc = netcat and I changed nothing at this line (please check line 247 for this code): CHECKPORT=$(nc -4 -z $IPADDRESS $PORT;echo $?)

    Can you also please run this command on your pi:

    nc -4 -z [YOUR IP ADDRESS] [TCP_PORT];echo $? (replace [YOUR IP ADDRESS] with the IP of the RaspberryPi and [TCP_PORT] with the TCP PPort used for CumulusMX

    you should get a 0 as a result. If you use any other port, your should get a 1 as theresult

    Exmaple:
    pi@cumulus:/CumulusMX $ nc -4 -z 192.168.193.6 9999;echo $?
    0


    What debian version are you using on your pi ?

    kind regards
    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: 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.4

    Post by richard_newberry » Mon 18 Nov 2019 12:12 pm

    I took the 4 out and error gone away i just got this error now.

    ./cumulusmx.sh: line 636: [: integer expression expected

    Using Debian Buster (10)
    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: 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.4

    Post by billy » Tue 19 Nov 2019 5:50 am

    Hi Jan,

    I have just installed 2.5.5.4 (having deleted /etc/sysctl.d/01-disable-ipv6.conf) and all is working beautifully. Now I just have to wait until I have an almost infinite number of devices in my home (after buying a house large enough to accommodate them) to justify the ipv6 addresses ;)

    Many thanks for your script.

    cheers, billy

    User avatar
    HansR
    Posts: 453
    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.4

    Post by HansR » Tue 19 Nov 2019 6:04 am

    @billy:
    I don't think it is about having billions of devices, it is about not wanting to change the standard installation of Linux. Why would you?
    Ipv6 is here to stay and you will encounter it whether you want or not. That's why everybody needs to be prepared.

    And indeed @jank, thanks for the script which makes it possible to have a controllable Cumulus environment.
    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)

    jank
    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.4

    Post by jank » Wed 20 Nov 2019 4:37 pm

    richard_newberry wrote:
    Mon 18 Nov 2019 12:12 pm
    I took the 4 out and error gone away i just got this error now.

    ./cumulusmx.sh: line 636: [: integer expression expected
    Using Debian Buster (10)
    Hello Richard
    you took the 4 away from
    nc -4 -z [IP_ADDRESS] [PORT];echo $?
    to
    nc -z [IP_ADDRESS] [PORT];echo $?

    I have also a Debian Buster here but with an without the -4 I am getting a correct value.

    can you please send me the output of this command --> nc -4 -z [IP_ADDRESS] [PORT];echo $? on your debian ? (It should be 0 or 1)
    Replace IP Address and Port with the IP of your raspberry pi and the port, where Cumulus is listening.....

    thank 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

    richard_newberry
    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.4

    Post by richard_newberry » Wed 20 Nov 2019 5:10 pm

    What about the problem on line 636? Integer expression ?

    Ok will do when get a chance.
    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: 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.4

    Post by jank » Thu 21 Nov 2019 8:49 am

    richard_newberry wrote:
    Wed 20 Nov 2019 5:10 pm
    What about the problem on line 636? Integer expression ?
    I don't have any idea......this line has absolutely nothing to do with the NC (Netcat command)
    In line 636 the verwsion information will be checked. ----> if [ $MXVERSIONSHORT -lt $CUMULUSMXONLINE ]; then

    Are you really sure, that you used the most current version of the script ? and that the line numbers matches the one I am looking here ?
    As I mentioned: Line 636 should have this code: if [ $MXVERSIONSHORT -lt $CUMULUSMXONLINE ]; then
    I am pretty sure, that $MXVERSIONSHORT and $CUMULUSMXONLINE is a Integer.

    I just put some debug (echo) lines in my script to find out the content of variables is integer or not.
    My check is doing this:

    echo CUMULUSMXONLINE: $CUMULUSMXONLINE
    echo MXVERSIONSHORT: $MXVERSIONSHORT

    case ${CUMULUSMXONLINE#[-+]} in
    *[!0-9]* | '') echo Not a number ;;
    * ) echo Valid number ;;
    esac


    and the output is


    CUMULUSMXONLINE: 3056
    MXVERSIONSHORT: 3053
    Valid number


    So can you please check if line 636 contains the above code ?
    To do so:
    nano cumulusmx.sh
    Press ALT+C on your keyboard and move the mouse. at the bottom you should see the line numbers
    CTRL+X to leave nano

    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
    mcrossley
    Posts: 5807
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2
    Operating System: Stretch Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

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

    Post by mcrossley » Thu 21 Nov 2019 9:00 am

    Perhaps because beta versions of the program have a version string like "3056b1" for beta 1?

    jank
    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.4

    Post by jank » Thu 21 Nov 2019 12:56 pm

    Hello Mark

    I am using this command to get your latest release

    curl -s https://cumulus.hosiene.co.uk/ -o /tmp/version.txt | grep -i "Latest Cumulus MX release" /tmp/version.txt | sed 's/^.*v3/>v3/' |cut -c15-18

    so only 4 digits are allowed :-)
    but thanks for the hint

    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
    mcrossley
    Posts: 5807
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2
    Operating System: Stretch Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

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

    Post by mcrossley » Thu 21 Nov 2019 1:07 pm

    Yeah, it's not the online version, Richard was part of a beta testing group and the exe has a "bx" appended to the version string where x=1,2,3 etc

    jank
    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.4

    Post by jank » Thu 21 Nov 2019 1:49 pm

    Marc: Thanks for letting me know

    Richard, can you please run the following commands on your Raspberry

    Line 636 is having this command: if [ $MXVERSIONSHORT -lt $CUMULUSMXONLINE ]; then
    So we need to find out, how these variables are being filled

    MXVERISONSHORT:
    PLease run the command below
    find /home/pi/CumulusMX/MXdiags/*.txt -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" " |xargs grep "Cumulus MX v" |sed 's/.*\(....\)/\1/''
    Please replace the path ion red with the folder where CumulusMX is installed: eg: /home/pi/CumulusMX

    CUMULUSONLINE: Please run the command below
    curl -s https://cumulus.hosiene.co.uk/ -o /tmp/version.txt | grep -i "Latest Cumulus MX release" /tmp/version.txt | sed 's/^.*v3/>v3/' |cut -c15-18

    Regarding the NetCat problem, please provde the result of this command:

    nc -4 -z [IP_ADDRESS] [PORT];echo $? Where IP Address is your IP_Address and Port is your Port
    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: 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.4

    Post by richard_newberry » Fri 22 Nov 2019 12:59 am

    I am not using a raspberry pi btw. using Debian inside VMware.

    curl -s https://cumulus.hosiene.co.uk/ -o /home/cumulus/CumulusMX/version.txt | grep -i "Latest Cumulus MX release" /home/cumulus/CumulusMX/version.txt | sed 's/^.*v3/>v3/' |cut -c15-18
    3056

    find /home/cumulus/CumulusMX/MXdiags/*.txt -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" " |xargs grep "Cumulus MX v" |sed 's/.*\(....\)/\1/'
    3056

    nc -4 -z [192.168.1.4] [8998];echo $?
    nc: invalid option -- '4'
    nc -h for help
    1

    This is why "4" didn't work.

    any idea why the line 636 error message comes up?
    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