Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post 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.
User avatar
TideMan
Posts: 36
Joined: Thu Jun 10, 2010 8:19 am
Weather Station: Fine Offset
Operating System: Ubuntu
Location: Port Levy, Banks Peninsula, NZ

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby TideMan » Thu Mar 17, 2016 10:09 pm

Just tried your script on my new RPi 3 running Jessie and it works perfectly!!
Thanks.
Image

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Thu Mar 17, 2016 10:16 pm

TideMan wrote:Just tried your script on my new RPi 3 running Jessie and it works perfectly!!
Thanks.

Thanks for confirming that the script is also working on the raspberry pi 3
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

endfm
Posts: 20
Joined: Sat Apr 25, 2015 8:11 am
Weather Station: XC0348
Operating System: Jessie
Location: Newcastle, Australia
Contact:

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby endfm » Mon Mar 21, 2016 3:14 pm

TideMan wrote:Just tried your script on my new RPi 3 running Jessie and it works perfectly!!
Thanks.


I can also confirm it's working as per the above.

Great script btw

however I need an explanation in regards to "screen" what does this enable me to do?

Is there a way to automatically start cumulusmx on boot using cron job? I'm using jessie non lite.

cheers
endfm

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Mon Mar 21, 2016 3:41 pm

endfm wrote:
TideMan wrote:Just tried your script on my new RPi 3 running Jessie and it works perfectly!!
Thanks.


I can also confirm it's working as per the above.
Great script btw
however I need an explanation in regards to "screen" what does this enable me to do?
Is there a way to automatically start cumulusmx on boot using cron job? I'm using jessie non lite.
cheers
endfm

Normally, when oyu read the documentation of cumulusMX -> viewtopic.php?f=27&t=12908
you will see, that cumulusMX is being started like this: sudo mono CumulusMX.exe -lang en-GB
you are calling MONO to open a .NET appliacation.
Doing it this way, CumulusMX ius running as a foreground process interactively in the SSH session/Windows you opened.

Once you close Putty (SSH Session) also CumulusMX will be closed and stop working
On Linux, there is a possibillity to run such kind of programs in the background. This program is called: "screen"
Since the handling of Screen is a little bit "cryptic". You can use screen to move the program into the backgrouind and you Can use screen to bring it back into the foreground.
So the purpose of my script to start cumulusmx and handle CumulusMX via simple commandline options.
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

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Mon Mar 21, 2016 3:44 pm

endfm wrote:Is there a way to automatically start cumulusmx on boot using cron job? I'm using jessie non lite.
endfm


Please see on page 1 of this thread and read the section
INIT.D Script: [08.01.2016] CumulusMX Init.d Script added as a replacement for a cron entry to start at boot

viewtopic.php?f=27&t=14753
this might solve your "problem"
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

endfm
Posts: 20
Joined: Sat Apr 25, 2015 8:11 am
Weather Station: XC0348
Operating System: Jessie
Location: Newcastle, Australia
Contact:

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby endfm » Tue Mar 22, 2016 5:11 am

jank wrote:
endfm wrote:
TideMan wrote:Just tried your script on my new RPi 3 running Jessie and it works perfectly!!
Thanks.


I can also confirm it's working as per the above.
Great script btw
however I need an explanation in regards to "screen" what does this enable me to do?
Is there a way to automatically start cumulusmx on boot using cron job? I'm using jessie non lite.
cheers
endfm

Normally, when oyu read the documentation of cumulusMX -> viewtopic.php?f=27&t=12908
you will see, that cumulusMX is being started like this: sudo mono CumulusMX.exe -lang en-GB
you are calling MONO to open a .NET appliacation.
Doing it this way, CumulusMX ius running as a foreground process interactively in the SSH session/Windows you opened.

Once you close Putty (SSH Session) also CumulusMX will be closed and stop working
On Linux, there is a possibillity to run such kind of programs in the background. This program is called: "screen"
Since the handling of Screen is a little bit "cryptic". You can use screen to move the program into the backgrouind and you Can use screen to bring it back into the foreground.
So the purpose of my script to start cumulusmx and handle CumulusMX via simple commandline options.


Ok cool, thankyou for that information so if I read this correctly if I just open up a terminal window and type screen then load cumuluxmx up in that I can then close down the terminal window so it runs in the background?

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Tue Mar 22, 2016 11:04 am

endfm wrote:Ok cool, thankyou for that information so if I read this correctly if I just open up a terminal window and type screen then load cumuluxmx up in that I can then close down the terminal window so it runs in the background?

Open s SSH connection (putty.exe) login as pi and type:

screen -dmS [SERVICENAME]-amds bash mono /home/pi/CumulusMX/CumulusMX.exe -port 8998

This command will start CumulusMX and let it run in a kind of dameon mode in the background. Now you can logout and CumulusMX is still running.
If you like to switch back the screened CumulusMX into the forground you need to use the ocmmand like this
screen -r -S [SERVICENAME]
to stop cumulusMX without bringing back the screened session, you can send a CTRL+C by using this command
screen -X -S [SERVICENAME] stuff "^C"

As you can see, this is very complicated and thats the reason why I wrote this little big program to handle CumulusMX on a command line much more easier.
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

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Tue Mar 22, 2016 11:04 am

endfm wrote:Ok cool, thankyou for that information so if I read this correctly if I just open up a terminal window and type screen then load cumuluxmx up in that I can then close down the terminal window so it runs in the background?

Open s SSH connection (putty.exe) login as pi and type:

screen -dmS [SERVICENAME]-amds bash mono /home/pi/CumulusMX/CumulusMX.exe -port 8998

This command will start CumulusMX and let it run in a kind of dameon mode in the background. Now you can logout and CumulusMX is still running.
If you like to switch back the screened CumulusMX into the forground you need to use the ocmmand like this
screen -r -S [SERVICENAME]
to stop cumulusMX without bringing back the screened session, you can send a CTRL+C by using this command
screen -X -S [SERVICENAME] stuff "^C"

As you can see, this is very complicated and thats the reason why I wrote this little big program to handle CumulusMX on a command line much more easier.
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

endfm
Posts: 20
Joined: Sat Apr 25, 2015 8:11 am
Weather Station: XC0348
Operating System: Jessie
Location: Newcastle, Australia
Contact:

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby endfm » Tue Mar 22, 2016 2:28 pm

ooh, I get it now. Thanks heaps, greatest script ever, I just leave it on my other screen and it updates every 5min, no time-outs or anything!

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Tue Mar 22, 2016 2:47 pm

endfm wrote:ooh, I get it now. Thanks heaps, greatest script ever, I just leave it on my other screen and it updates every 5min, no time-outs or anything!


ah, I assume you are talking about the option -n (CumulusNow) which is reading the current Weatherstation values form CumulusMX and displaying it on the Temrinal Window.
this is only one of the things my script can do.
Type ./cumulusmx.sh -h to see what else the script can do.
CumulusNow is only an addon form the CumulusStart-Stop Script.
and yes, it is displaying the values and update them every 5 minutes.....
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: 281
Joined: Tue Apr 12, 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Debian Stretch (VMWARE Esxi 6.5)
Location: Leicester
Contact:

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby richard_newberry » Wed Mar 23, 2016 1:02 am

Hi,

I've tried out the init.d script and updated to V2.5.0

Error i'm getting is ifconfig command not found

error messages below:

./cumulusmx.sh: line 148: ifconfig: command not found
./cumulusmx.sh: line 149: ifconfig: command not found
no port[s] to connect to
./cumulusmx.sh: line 573: ifconfig: command not found
./cumulusmx.sh: line 574: ifconfig: command not found

cumulus@debian:~/CumulusMX$ /etc/init.d/cumulusmx status
Checking CumulusMX... Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Process dead but pidfile exists

This is ran by user "cumulus"

Any suggestions 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: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Sat Mar 26, 2016 2:34 pm

Questions was moved and answered in this Forum post --> http://sandaysoft.com/forum/viewtopic.php?f=27&t=14753
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

jank
Posts: 302
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby jank » Sat Mar 26, 2016 2:35 pm

Question was moved and answered in this forum post --> http://sandaysoft.com/forum/viewtopic.php?f=27&t=14753
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: 219
Joined: Sun Jan 10, 2010 10:43 am
Weather Station: WS2350
Operating System: Raspberry Pi2 - Debian
Location: Germany
Contact:

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby slashmusic » Sun Apr 10, 2016 12:12 pm

Version 2.5.1.0 is available [10.04.2016]

o Some smaller bugfixes and cosmetic improvements
+ Cloud Backup Support
You can create a backup into all "netdrive" enable Cloud storage which support WebDAV protocol

/home/pi/CumulusMX/cumulusmx.sh -b -c

Example: T-Onlne , 1und1 , OwnCloud, TeamDrive,Barracuda Backup Service,Copy,Trend Micro SafeSync,OneDrive, ElephantDrive, CloudMe, Box and many other more.
Check your Cloud Provider for WebDav Support

(Attention: People who already using a cumulusmxsh.conf and updating from an earlier Version do NOT need to add new parameters or replöace 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
Image

kjunkin
Posts: 3
Joined: Wed Apr 20, 2016 9:28 pm
Weather Station: Davis Vanage Pro
Operating System: RaspberryPi
Location: Alabama

Re: CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5

Postby kjunkin » Thu Apr 21, 2016 1:57 am

As a total newbie to Raspberry Pi, I am totally lost in how CumulusMX is supposed to function. Can someone please direct me to an area where the setup instructions for the CumulsMX is located for Raspberry. I have downloaded the files, done all the updates, and run the sudo command that are listed inside other forum areas, but just lost. I would have through that the cross platform version would give me the setup screen like in windows. Does all the setting have to be made through the ini file ? Please give some direction. Sorry to be so needy. I have 6 stations I want to move over to the raspberry platform.

Thanks


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 4 guests