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 3042 Jan 14 2017. See this post for download

CumulusMX - RasperryPi - Start|Stop|Restart Script V2.5.3.0

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
jank
Posts: 241
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.3.0

Postby jank » Thu Oct 06, 2016 11:07 am

fonixmunkee wrote:Just started playing around with Cumulus MX and this script is a life-saver. Thank you very much!

You are welcome. Exactly this was my intension last year,
when I started one year ago.
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

Kipuka
Posts: 24
Joined: Thu Sep 15, 2016 9:51 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Win 10

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

Postby Kipuka » Mon Oct 10, 2016 9:01 pm

I am hoping to use this script to start cumulusmx as boot up. Power supply here is pretty didgy so it is essential that i can get cmx to restart when the power comes back on. In a perfect world i have a script to boot the rpi when power returns and then this script to restart cmx once rpi has booted. my irrigation system is dependent upon data from my weather station which it gets from WU, CMX, VP2 so if CMX is down the irrigation system is not able to function properly.

so far i have installed the script and updated the conf file to reflect the appropriate ipath. the script runs fine using sudo ./...

I am stuck trying to get the script to run at boot up. i dont see anything in your lines to be inserted in cron that just say, run this script at boot up. and i am guessing that if i create a file in /etc/init.d that contains the command for launching the script...but i am not sure how to do this.

Can someone please help me to understand how to make it so this script will run at boot up? And if there is some way to make it so the rpi boots at the resumption of power, that would be perfect.

thanks!

Mark

User avatar
VTHokie74
Posts: 108
Joined: Tue Apr 10, 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Rasbian
Location: Ashland, KY

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

Postby VTHokie74 » Tue Oct 11, 2016 1:23 am

I tried editing crontab to add an @reboot ... entry to start Cumulus on a reboot. I could not get it to work. jamk has another option discussed in this topic:

viewtopic.php?f=27&t=14753

The init.d method worked for me. Also you might want to run raspi-config and choose the option to wait on network at reboot. I found this allows my router and modem to boot up after a power failure.
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3

jank
Posts: 241
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.3.0

Postby jank » Tue Oct 11, 2016 10:29 am

VTHokie74 wrote:I tried editing crontab to add an @reboot ... entry to start Cumulus on a reboot. I could not get it to work. jamk has another option discussed in this topic:
viewtopic.php?f=27&t=14753
The init.d method worked for me. Also you might want to run raspi-config and choose the option to wait on network at reboot. I found this allows my router and modem to boot up after a power failure.

I also want to mention, that some people had also trouble to get the init.d script working (for any reason I don't know)
In this case, in the most current version of the CumulusMX Start|Stop script, there is a new option which is a kind of watchdog.
In simple words, you create a new Cron entry which is checking every 10 minutes, if CumulusMX is running.
If not, it will be started,
if yes, nothing happens.
Disadvantage: In case you want to make some maintenance work on your raspberry pi and want to stop CumulusMX, it will be started every 10 Minutes :-)

Please see this post: http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767&p=120459#p120459

For all who have trouble strating CumulusMX with the init.d Startup Script at system boot, here is a command to check, if the init.d startup scirpt is correctly inserted into the runlevel of your system.
1) install a small program called: chkconfig
sudo apt-get install chkconfig
2) run the command to check if the startup script should be started at system boot
chkconfig |grep cumu
as a result you should see:

cumulusmx on

If you not see this result (line), you probably missed to enter the following command to insert the startup script into the runlevels

sudo update-rc.d cumulusmx defaults
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

takezo
Posts: 31
Joined: Fri Nov 18, 2016 2:18 pm
Weather Station: raspberry pi
Operating System: debina

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

Postby takezo » Fri Dec 02, 2016 12:26 pm

Hi All!

I use to run cumulusMX scripts from this link:


apparently the script start cumulusmx correctly but dashboard doesn't show nothing. I have try to run the service without the script and I have seen next error starting the service:


Code: Select all

takezo@-WEATHER:~/scripts/Cumulus/CumulusMX $ sudo mono CumulusMX.exe
Current culture: Spanish (Spain)
Serial: C1C14BD8D8C0C9F8B78320EFD1263EE1
Cumulus MX v.3.0.0 build 3041
Today.ini = data/today.ini
Last update=2016-12-01T12:30:00
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
sysname=Linux release=4.4.34 machine=armv6l
Fine Offset station found
Connected to station
Error reading data from station - it may need resetting
Error reading data from station - it may need resetting
Error reading data from station - it may need resetting
Error reading data from station - it may need resetting
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
  at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in <filename unknown>:0
  at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0
  at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0
  at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0
  at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0




any idea..?

water01
Posts: 1336
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Gurney Slade,Somerset, UK
Contact:

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

Postby water01 » Sat Dec 03, 2016 10:52 am

You need to reset your station, this has nothing to do with the script.

On a point of order posting the same query in multiple Topics will not get you an answer any quicker and is consider bad forum manners.


Return to “Cumulus MX”

Who is online

Users browsing this forum: Dennisdg, grwkak, Terryaph and 3 guests