This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry Pi and Cumulus MX
(09-06-2016, 23:36)spudstrawb Wrote: I got the RPi3 and CumulusMX operational last night. I did have a bit of trouble getting CumulusMX talking to the WeatherDuino and managed to find some information advising that the Serial Port name in Station Settings (in CumulusMX) needs to be set to "/dev/ttyUSB0" (or 1 or 2 or 3, depending on which USB port the RX unit is connected to the RPi3 by), rather than "COM15" for a PC connection. It all sprang to life once I'd made that change. Werk - it would be useful if this bit of information was added to the "v2.0 Software - Cumulus 1 and CumulusMX configuration" thread.

Good point - same for me a few weeks ago when I installed my pi3.
I've set up some aliases as well to make things a bit easier. I thought I'd document it here in case anyone else sees a use for it. Steps involved were:

1. In a terminal, type "nano ~/.bashrc" (without the quotes)

2. Add the following lines to the bottom of the file:
alias mxstart='sudo /home/pi/CumulusMX/ -start'
alias mxstop='sudo /home/pi/CumulusMX/ -stop'
alias mxstatus='sudo /home/pi/CumulusMX/ -status'
alias mxreload='sudo /home/pi/CumulusMX/ -force-reload'

Ctrl + X, then Y to save the file and exit. Then reboot. Then you can just use the shortened commands (mxstart, mxstop etc) to make things a bit easier to manage.
Very useful, at least for a Linux noob like me.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

Hey spuds, that's awesome... didn't know about aliases... Many thanks...

Just a confirmation another station upgraded to latest software versions. V2.0 dated 27/07/2016 and CumulusMX upgraded the same time to (3.0.0-b3040). All seems good.
I at last got around to implementing the CumulusMX automatic start script at boot time for my Raspberry Pi featured here:

Makes life quite a deal easier.

I want to show again the stability of WeatherDuino. This was my up time status just before I took the system offline for the updates.

Attached File(s) Image(s)
For those using CumulusMX init.d System Startup Script
as described here:

may be useful adding a sleep instruction to the script. In case of a power failure, this will try to ensure that CumulusMX only starts after the RX unit is ready for connection (give time for it receive data from external sensors).

Look to sleep 180 instruction, at line 14:

# /etc/init.d/cumulusmx
# Provides:
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start (CumulusMX) at boot time
# Description:       Enable service provided by daemon.
# chkconfig:         2345 95 05
# Version:           1.2 - 08.06.2016
sleep 180


# Wait until external drive with CumulusMX is mounted
while [ "$x" -lt 300 -a ! -e $CumulusMX_HOME/Cumulus.ini ]; do
   sleep .1
if [ -e $CumulusMX_HOME/Cumulus.ini ]
   echo "$(date +"%b %d %H:%M:%S") CumulusMX init.d-Script: CumulusMX is being started at system boot within "$x" seconds"
   echo "$(date +"%b %d %H:%M:%S") CumulusMX init.d-Script: CumulusMX could not be started - unable to mount "$CumulusMX_HOME" within 30 seconds"
   exit 1
# End - Wait until external drive with CumulusMX is mounted

case $1 in
       printf "%-50s" "Starting $NAME..."
       if [ "$CumulusMX_USER" != "$WHOAMI" ]; then
       /bin/su $CumulusMX_USER $CumulusMX_HOME/ >/dev/null 2>&1
       $CumulusMX_HOME/ >/dev/null 2>&1
       echo -e "Stopping $NAME\n"
       $CumulusMX_HOME/ -q >/dev/null 2>&1
        printf "%-50s" "Restarting $NAME"
       $CumulusMX_HOME/ -r
       printf "%-50s" "Reloading $NAME"
       $CumulusMX_HOME/ -q
        printf "%-50s" "Checking $NAME..."
        if [ -f $PIDFILE ]; then
            PID=`cat $PIDFILE`
            if [ -z "`ps axf | grep ${PID} | grep -v grep`" ]; then
                printf "%s\n" "Process dead but pidfile exists"
                echo "Running"
            printf "%s\n" "Service not running"
    echo "Usage: /etc/init.d/cumulusmx {start|stop|force-reload|status}"
    exit 1
exit 0

Surely there are better ways to do this... I let that for the Linux experts.

(16-08-2016, 11:13)qldbureau Wrote: ...
I want to show again the stability of WeatherDuino. This was my up time status just before I took the system offline for the updates.

Thanks qldbureau.
I'm also very happy with the v2.0 software. I really recommend to everybody to upgrade to v2.0 as soon as possible.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel

Has anyone done a image for the Pi 3 ? This will make it a lot easier for everyone if you can just load a image straight onto the SD card and put it in the Pi then just edit the required files for your particular operation of Cumulus MX?

Users browsing this thread: 1 Guest(s)