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.
slashmusic
Posts: 219
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.4.0

Post by slashmusic » Mon 11 Sep 2017 5:48 pm

Version 2.5.5.0 is available [11.09.2017]

Sorry for being so late making this script Debian Stretch ready

* Fixing an output problem of the ip address and netmask on Debian Stretch when using the Status page

Instead of the IP Address, the word inet is being displayed in the status page
This also resultet, that the status page is stating that CumuluxMX is NOT Running
___cumulusmx____.jpg
This is now fixed and compatible with Debian Jessie and Debian Stretch

(Attention: People who already using a cumulusmxsh.conf and updating from an earlier Version do NOT need to add new parameters or replace their existing cumulusmxsh.conf with the file in this update.
When running the script the first time, new Parameters will be added automatically to cumulusmxsh.conf)

New version is available in the first Post
You do not have the required permissions to view the files attached to this post.
Image

richard_newberry
Posts: 285
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 11 Sep 2017 9:53 pm

Thank you, I was having inet problems with Debian Stretch. I'll be updating when I get a chance and be reporting back to let you know how I get on.
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!!

slashmusic
Posts: 219
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.0

Post by slashmusic » Tue 12 Sep 2017 2:22 pm

Hello Richard
yes, I remember this...but unfortunately at that time I had not the chance to install the new debian...so I could not find a solution.
The main problem was, that the output of the "ifconfig eth0" in older debian verisons was different from the output in the new stretch version.
So my command to get the IP and netmask did not work anymore....but I found a new command which was unknown for me, to get just the ip address without any grep's and cut's which works on Debian Jessie and Stretch. (hostname -I did it)

but let me know if this still does not work for you
Image

richard_newberry
Posts: 285
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 » Tue 12 Sep 2017 4:34 pm

Thank you, I will hopefully be doing it tomorrow.
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: 285
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 13 Sep 2017 2:43 pm

All working now mate, cheers.
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: 285
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 17 Sep 2017 4:11 pm

Would this version work on Debian Buster 10.0 when it's released?
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: 306
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 17 Sep 2017 6:25 pm

Sionce I have not tested it yet, I can not say anything.
But, the problem between Debian Jessie and Stretch was not a problem with the bash script, only the output of one command was different (ifconfig)
And as long they do not change commands, I am sure, everything will work also with the next OS update
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

Luciano_SR
Posts: 9
Joined: Thu 28 Mar 2013 5:29 pm
Weather Station: AW WS-2080
Operating System: Lubuntu
Location: Brazil

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

Post by Luciano_SR » Wed 20 Dec 2017 4:46 pm

slashmusic wrote:Version 2.5.5.0 is available [11.09.2017]

Sorry for being so late making this script Debian Stretch ready

* Fixing an output problem of the ip address and netmask on Debian Stretch when using the Status page

Instead of the IP Address, the word inet is being displayed in the status page
This also resultet, that the status page is stating that CumuluxMX is NOT Running

___cumulusmx____.jpg

This is now fixed and compatible with Debian Jessie and Debian Stretch

(Attention: People who already using a cumulusmxsh.conf and updating from an earlier Version do NOT need to add new parameters or replace their existing cumulusmxsh.conf with the file in this update.
When running the script the first time, new Parameters will be added automatically to cumulusmxsh.conf)

New version is available in the first Post
Hi Slash! Thanks for the script, it works like a charm and it very well written! I finally can control my station remotely via a SSH connection!

One thing I noticed is that IPADDRESS=$(hostname -I) was not populating my IP correctly. It was getting all the IPs of the machine (ipv4 [space] ipv6 [space] other ipv6s). This didn't affect the functionalities of the script but gave some error messages.
I fixed it just replacing the "$(hostname -I)" for my machine local fixed IP.
Just wanted to let you know in case this is something needs to be fixed/updated.

I'm running Lubuntu 16.04.3 LTS (Xenial Xerus) - 4.10.0-40 generic

Best regards!

slashmusic
Posts: 219
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.0

Post by slashmusic » Thu 21 Dec 2017 3:28 pm

Hello, Thank you very much for the advice

It looks like every Linxux operating system is displaying it's ip address different then others.
My Debian for example:
hostname --help
-i, --ip-address addresses for the host name
-I, --all-ip-addresses all addresses for the host

when using -i I am getitng 127.0.0.1
when using -I I am getting my IPv4
This is working for me, and I also have an IPv6 address on my Raspberry, but hostname -I is only displaying my IPv4 address.
Lubuntu seem to displaying all IP addresses :-(
I am curious to know if this is working for you?
ip -f inet addr show eth0 | grep -Po 'inet \K[\d.]+'
Image

Luciano_SR
Posts: 9
Joined: Thu 28 Mar 2013 5:29 pm
Weather Station: AW WS-2080
Operating System: Lubuntu
Location: Brazil

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

Post by Luciano_SR » Sat 23 Dec 2017 7:00 pm

This one works, I just had to change to eno1 (my network adapter):

Code: Select all

ip -f inet addr show eno1 | grep -Po 'inet \K[\.]+'
192.168.1.6
Best regards

jnstllng
Posts: 11
Joined: Sun 15 Jan 2017 10:10 pm
Weather Station: WH1080
Operating System: Raspian, Windows 7, Windows 10

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

Post by jnstllng » Fri 12 Jan 2018 6:30 pm

Hej guys...

Today I changed to connect my Pi from a Fritz.Box based on DSL to one based on Cable.
After restarting CumulusMX with the script, it always gives me this line at the start:

Code: Select all

nc: port number invalid: 2a02:8071:2bba:7f00:2518:70aa:1c3a:67ee
and then:

Code: Select all

CumulusMX is not listening on TCP Port: 8998 (http://192.168.178.124 2a02:8071:2bba:7f00:2518:70aa:1c3a:67ee :8998) 
Maybe CumulusMX has not finnished to start yet or running on a different TCP Port then 8998.
Please wait additional 30 seconds and try again, If it still fail, restart CumulusMX to clearly start on TCP Port 8998 <(sudo) ./cumulusmx.sh -r>
However, everything is working fine. Data are uploaded and there are no issues. I also rebooted the Pi a couple of times.
Does anyone know these things? Obviously, this is just depending on the fact that the Pi is now connect to another router.

jnstllng
Posts: 11
Joined: Sun 15 Jan 2017 10:10 pm
Weather Station: WH1080
Operating System: Raspian, Windows 7, Windows 10

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

Post by jnstllng » Sun 14 Jan 2018 12:07 pm

To answer my last post a bit. I just noticed that my new router is connceted via IPv6 and IPv4 is only set through DS-Lite. This seems to be the reason that the error is thrown up. But everything works fine...

FrontBottom
Posts: 2
Joined: Sat 31 Dec 2016 2:04 am
Weather Station: WH3081
Operating System: Win7

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

Post by FrontBottom » Thu 18 Jan 2018 6:57 am

Just want to say thanks.

This script is awesome.

Cheers
Chris

wwuk
Posts: 2
Joined: Wed 17 Jan 2018 8:39 pm
Weather Station: WS3083
Operating System: Jessie
Location: Hampshire, UK

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

Post by wwuk » Fri 19 Jan 2018 12:51 pm

FrontBottom wrote:Just want to say thanks.

This script is awesome.

Cheers
Chris
What he said ↑ :D

I added this to my build last night, simplifies reboots considerably, many thanks to the author..

Chris
https://whitchurchweather.uk

Aercus WS3083 > RPI Zero W > CumulusMX > Weather34 CU-HRV-MYSQL

jank
Posts: 306
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 24 Jan 2018 6:52 pm

jnstllng wrote:To answer my last post a bit. I just noticed that my new router is connceted via IPv6 and IPv4 is only set through DS-Lite. This seems to be the reason that the error is thrown up. But everything works fine...
I will Look at this this Weekend, if it is possible to surpress IPv6 Output.
I also have a cable Connection with unitymedia but gladly an IPv4 Connection
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

Post Reply