Page 1 of 2

CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Tue 09 Nov 2021 11:27 pm
by inSight-er
Hi there,
I have a current CumulusMX installation (3.13.7 (build 3153) - 9 November 2021) on a Raspberry Pi 4B under Raspbian Buster.
Cumulus runs so far and finds my weather station (WH1080). However, no data is transmitted.
Two lines are displayed alternately in the terminal:
"Looking for Fine Offset station"
"Fine Offset station found"
I can't find any error logs even though I switched on logging.

Clould you please help me ?
Greetings, Holger

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 8:23 am
by water01
The MX logs are in a folder called MXDiags.

Zip up the latest .txt file and upload it to this Topic and we should be able to help.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:16 am
by inSight-er
Hi,

the error message is "Stream open failed" ...
But it finds the WH1080 Station.
What can I do ?

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:32 am
by water01
As per Mark's message in your other Topic viewtopic.php?p=158036#p158036 and my previous Reply you need to post the entire log in MXDiags not tell us what you have found in it because other lines in the log will give us better clues as to what is happening.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:51 am
by inSight-er
Hi,
I,ll do my very best, but Iam new in CumulusMX
Thanks for supporting me.

Here are all the Logfiles in CumulusMX
I´ll be online again later, have to go to work now.

MXdiags.zip

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:56 am
by mcrossley
Are you running CumulusMX as a regular user, or under the root account or using sudo?

If a regular user could you try using sudo?...

> sudo mono CumulusMx.exe

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:23 pm
by inSight-er
Hi mcrossley,

I started CumulusMX.exe with sudo. The program connected successfully on the first attempt.
If data were to be transferred now, that would be a surprisingly simple solution to my problem. I'll let this go on until tomorrow.
How did you come up with it ?

Thank you in advance, Holger

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Wed 10 Nov 2021 11:32 pm
by water01
How did you come up with it ?


The standard instructions to start CumulusMX on a Linux installation say that it must be started by using "sudo" to give it root permissions. On Windows it must started with Administrator permissions.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 1:01 pm
by mcrossley
By default on Linux you must be a privileged user to access USB devices.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 2:05 pm
by inSight-er
Hi,
It works ! :D
CumulusMX finds the WH1080 and also saves data on the Raspberry's hard drive.
It is strange that a call with sudo mono/home/cumulusMX/CumulusMX.exe alone is not enough. With my Raspberry, the path must first be set with cd /home/cumulusMX, otherwise there will be problems with the paths. But it's not that bad, I'll write a script, then it should work.
Thank you all !

Can I set the path to the Cumulus directory somewhere in the parameters? Apparently the program remembers the paths.

Greetings, Holger

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 2:33 pm
by mcrossley
You must set the working path to the CumulusMX folder before starting CMX interactively.

If you run it as a service, then that is done for you.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 3:18 pm
by inSight-er
Hi mcrossley,
yes, OK.
I set the Working Directory with a script:

cd /home/CumulusMX
sudo mono /home/CumulusMX/CumulusMX.exe


Is there any possibility to set it from CumulusXM - Webinterface, or .ini or ...

Best regards Holger

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 3:27 pm
by freddie
Easier to install as a service (systemd unit) rather than writing a script.

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Thu 11 Nov 2021 6:50 pm
by inSight-er
Hello, everyone,

so far everything looks very good and works. :D
Sometimes, however, after a restart, the web interface does not display any data, although it is available.
If I restart again, the display is fine again. Does anyone have an idea why this might be ?

Greetings, Holger

Re: CumulusMX on Raspberry Pi 4B no data is transmitted

Posted: Fri 12 Nov 2021 11:11 pm
by Gyvate
I recommend you enter a line in the crontab file (Linux scheduler) for startup of your RPi:

sudo nano /etc/crontab

in order to edit the crontab file - don't forget to save with CTRL-O 8-)

best to put that line as the first line, at least on top above the table and under the SHELL and PATH entries:
e.g.
# ------------- example of crontab with CumulusMX startup entry ----------------
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

@reboot root mount -t cifs -o username=Gast,password=xxxxxxxx //192.168.1.55/...............
@reboot root mount -t cifs -o username=Gast,password=xxxxxxxx //192.168.1.55/...............

# Start Cumulus as background task 30s after reboot (delay to allow WiFi to start up)
@reboot root (sleep 30;cd /home/pi/CumulusMX;sudo mono CumulusMX.exe) &


# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
..........
# ------------------- end example -------------------

the path will of course depend on where you have installed CMX:
reading from your earlier post that would be /home/CumulusMX in your case

if your RPi connects to the network via WiFi, the missing delay might be the reason for your admin interface not showing data.