If you use Cumulus, please donate Image

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

MX 3043 Issues

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: MX 3043 Issues

Postby rogerthn » Sun Jan 29, 2017 5:40 pm

vagos wrote:Done!!!, is there a way to identify if I have successfully managed to create a new screen? If I press Ctrl+A+D there is no notification. It just works.

screen will tell you if it fails to create a new screen

I do agree with Steve, /boot is NOT a good place for any application!
I do use /home/pi/CumulusMX and I start it at boot as below.
The script /home/pi/CumulusMX/start_CumulusMX.sh as below.

Code: Select all

#!/bin/bash
/bin/sleep 69
cd /home/pi/CumulusMX
sudo mono CumulusMX.exe

Do not forget

Code: Select all

chmod +x /home/pi/start_CumulusMX.sh


Then a crontab entry

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/start_CumulusMX.sh
Image

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Sun Jan 29, 2017 5:56 pm

If I insert the sd card to win10 environment I can only "see" boot folder.

Nothing else. Is there a way of browsing the other folders inside sd card?

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: MX 3043 Issues

Postby rogerthn » Sun Jan 29, 2017 6:48 pm

vagos wrote:If I insert the sd card to win10 environment I can only "see" boot folder.

Nothing else. Is there a way of browsing the other folders inside sd card?

Wintendo can only see the first partition on "removables"

Try ftp software with sftp support, FileZilla used to be my choice while other prefere WinSCP.
Once installed connect to the Raspberry IP using sftp

Edit:
OR
Move all CumulusMX-files from /boot to /home/pi/CumulusMX
Image

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Wed Feb 01, 2017 6:57 am

Thanks again, since during week working days my free time is very limited I have not reported back.

After 2 days of continuous operation I have managed to get this error from 16:00 yesterday.

error reading data from station it may need reseting

Cumulus is normaly reporting but it cannot get data from station.

Since I'm currently away, I have only rebooted Rpi and my girlfriend removed and installed back the usb cable.

With no luck unfortunately. Any way to overcome this issue? Anything I can do with Cumulus Dashboard?

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Wed Feb 01, 2017 7:14 am

I have rebooted the station in total.

Works again.

I have also enabled

"Synchronise Fine Offset reads"

Work around for Fine Offset console USB lockup problem

Question: The clock on the station has anything to do with Cumulus logging time stamp?

I'll revert back with feedback

User avatar
mcrossley
Posts: 4944
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: MX 3043 Issues

Postby mcrossley » Wed Feb 01, 2017 11:16 am

vagos wrote:Question: The clock on the station has anything to do with Cumulus logging time stamp?

No.

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Sat Feb 04, 2017 12:43 pm

rogerthn wrote:
vagos wrote:Done!!!, is there a way to identify if I have successfully managed to create a new screen? If I press Ctrl+A+D there is no notification. It just works.

screen will tell you if it fails to create a new screen

I do agree with Steve, /boot is NOT a good place for any application!
I do use /home/pi/CumulusMX and I start it at boot as below.
The script /home/pi/CumulusMX/start_CumulusMX.sh as below.

Code: Select all

#!/bin/bash
/bin/sleep 69
cd /home/pi/CumulusMX
sudo mono CumulusMX.exe

Do not forget

Code: Select all

chmod +x /home/pi/start_CumulusMX.sh


Then a crontab entry

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/start_CumulusMX.sh



With some reading and your instructions I have managed to create a script file but the crontab entry doesnt seem to work correctly.

If I call the script it works. Could you please clarify what -fa -d -m means?

I assume -d -m -S creates a new screen in detached mode. What about -fa?

I have noticed that the service runs for a little but then stops. (No active connection to the dashboard)

Thanks again

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: MX 3043 Issues

Postby rogerthn » Sat Feb 04, 2017 4:34 pm

From

Code: Select all

man screen

-f, -fn, and -fa turns flow-control on, off, or "automatic switching mode". i.e. -fa automatic switching mode
-d -m Start screen in "detached" mode.

Maybe you could try to reboot, within 1 minute logon and do

Code: Select all

screen -r Cumulus
Image

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Sat Feb 04, 2017 6:34 pm

ok thnx,

why if I call the script it runs but when I run it via crontab entry it doesn't?

Is there anything else to do?

Just to note: that I have enabled auto login via raspi-config. Does it do any harm to the crontab?

Another note is that I have a clear installation of jessie lite, the CumulusMx is now on Pi folder, with static ip, auto user login, script enabled and given su access.

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: MX 3043 Issues

Postby rogerthn » Sat Feb 04, 2017 7:32 pm

Did you try screen -r Cumulus within a minute?
You could try to modify start_CumulusMX.sh as below to check how long it is running

Code: Select all

#!/bin/bash
echo staring $(date) > /home/pi/start_CumulusMX.log
/bin/sleep 69
echo Slept $(date) >> /home/pi/start_CumulusMX.log
cd /home/pi/CumulusMX
echo cd done $(date) >> /home/pi/start_CumulusMX.log
sudo mono CumulusMX.exe

btw, you can also try screen -r Cumulus after more than one minute
The screen should be there
Image

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Sun Feb 05, 2017 10:32 am

Recaping

1)My installed directory is home/pi and then CumulusMX without any folder (made all the proper corrections from your suggested code

2)I have created a cumu.sh file as script file

inside i have pasted

Code: Select all

#!/bin/bash
echo staring $(date) > /home/pi/start_CumulusMX.log
/bin/sleep 20
echo Slept $(date) >> /home/pi/start_CumulusMX.log
cd /home/pi/
echo cd done $(date) >> /home/pi/start_CumulusMX.log
sudo mono CumulusMX.exe


the file start_CumulusMX.log ok, what it logs?

3) By running the script only

Code: Select all

sudo ./cumu.sh


its working but without logging

4) Getting the entry inside crontab

Code: Select all

sudo nano /etc/rc.local


and then pasting your code before return (0)

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh


Results.

After reboot the script doesnt run. Neither

Code: Select all

screen -r Cumulus
returns a screen.

Thats my progress up to now

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: MX 3043 Issues

Postby rogerthn » Sun Feb 05, 2017 12:27 pm

vagos wrote:Recaping
.
.
.

Code: Select all

sudo nano /etc/rc.local


and then pasting your code before return (0)

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh


Results.

After reboot the script doesnt run. Neither

Code: Select all

screen -r Cumulus
returns a screen.

Thats my progress up to now

aha
Remove

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh

from /etc/rc.local
Then as user pi

Code: Select all

crontab -e

and paste

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh

/etc/rc.local
Image

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Sun Feb 05, 2017 1:49 pm

Deleted the entry from

Code: Select all

sudo nano /etc/rc.local


geting the entry

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh

to

Code: Select all

sudo nano /etc/crontab -e


same thing. Nothing happens :groan:, again no screen to recover

Code: Select all

screen -r Cumulus

jlmr731
Posts: 109
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: MX 3043 Issues

Postby jlmr731 » Sun Feb 05, 2017 4:44 pm

vagos wrote:Deleted the entry from

Code: Select all

sudo nano /etc/rc.local


geting the entry

Code: Select all

@reboot /usr/bin/screen -fa -d -m -S Cumulus $HOME/cumu.sh

to

Code: Select all

sudo nano /etc/crontab -e


same thing. Nothing happens :groan:, again no screen to recover

Code: Select all

screen -r Cumulus



crontab is a application.
when you did

Code: Select all

sudo nano /etc/crontab -e

you made a file named "crontab" in the /etc directory or edited it if it was already there

Try as your normal user log in run

Code: Select all

crontab -e

then it will bring you into the crontab editor and then enter your commands you need to run

vagos
Posts: 20
Joined: Thu Jan 19, 2017 3:19 pm
Weather Station: WS3083 Aercus Instruments
Operating System: Win10 + Rasrpian (Rpi1)

Re: MX 3043 Issues

Postby vagos » Mon Feb 06, 2017 8:17 pm

Thank you Jeff.

Well

Code: Select all

sudo crontab -e


inside there i got the attached image
Ctrl+O
Ctrl+X

rebooting and nothing again.

PS: Small correction the path is $HOME/pi/cumu.sh

corrected on the crotab -e but still doesnt work
You do not have the required permissions to view the files attached to this post.


Return to “Cumulus MX”

Who is online

Users browsing this forum: NeilThomas and 4 guests