Page 3 of 3
Re: CumulusMX Crashes on RPi
Posted: Sat 04 Jul 2015 8:31 am
by mcrossley
I never got nohup to work with mono/CMX, screen is solid for me.
Re: CumulusMX Crashes on RPi
Posted: Sat 04 Jul 2015 2:15 pm
by pete_c
Personally here use multiple SSH sessions to watch. That said many times I can see what is going on just typing top or in a second / third SSH session. Many times also just skip the SSH piece and use Webmin to watch the console and then leave the page.
Webmin is an alternative methodology of managing your RPi2. I use it to update the RPi2 and other stuff. You can also start up the RPi2 / CumulusMX using a one liner rather than upstart and watch it for a bit if you want.
Webmin installation is easy on the RPi2. (change the xx to tt)
1 - sudo wget hxxp://prdownloads.sourceforge.net/webadmin/webmin_1.760_all.deb
2 - sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
3 - dpkg --install webmin_1.760_all.deb
4 - log in to Webmin with your user name and password at a hxxp://ipofrpi2:10000/
5 - note that the initial Webmin main page shows you basic status of your RPi2.
I created a quickie one liner to start and watch CumulusMX and then leave the Webmin page.
Re: CumulusMX Crashes on RPi
Posted: Sat 04 Jul 2015 8:17 pm
by acatalano
Lots of good stuff here!! Many thanks to everyone for the suggestions, apps etc., It will take me days to go through these and add them to the system. I have only been using SSH & and remote desktop so far. I had tried out SAMBA before without success so the RPi would be discoverable on my Windows 2012 R2 network, but the setup is so complex (lots of options) that I have put it aside for now. I thought it might be possible to backup the RPi to the server for safekeeping of the data.
Re: CumulusMX Crashes on RPi
Posted: Sun 05 Jul 2015 2:04 pm
by pete_c
I thought it might be possible to backup the RPi to the server for safekeeping of the data.
Baby steps one step at a time works for me....
There are many methodologies of backup once you get in to the whole RPi2 mode of doing things.
Put your Wintel cap and Linux cap on and blend them together to get the best of both worlds.
Two very simple ways to do this.
1 - Install WinSCP on your Wintel Machine. Shut down CumulusMX. Copy over the CumulusMX directory to your Wintel Machine as that is all that is involved with backing up CumulusMX. Later on you can use RSync in a cron job to automate or even just a quickie script if you want.
2 - You can do image the entire SD card by removing it from your RPi2 and copying the image of the SD card over to your Wintel PC using an SD to USB device. You can also make a compressed image of the SD card using DD in Linux. You cannot do this live with the SD card in the RPi2. That said it takes 5 minutes to do with a quick PC.
Here mostly just back up the directory of CumulusMX and do an occasional image of the entire SD. That said I do keep a base image for the SD put away in case of some major catastrophe.
Relating to using Samba; personally I do not use it for my RPi2 / CumulusMX set up. That said if you want give Webmin a try as there is a management GUI page dedicated to the use and configuration of Samba. That said it is just as easy to configure it via SSH and Nano editing the configuration file.
Re: CumulusMX Crashes on RPi
Posted: Tue 07 Jul 2015 12:27 am
by acatalano
Jan
Many thanks for writing this script to parse the CumulusMX ini file and allow the upload of images from a webcam. I am editing the fstab folder to mount a temporary drive (/home/pi/camera) to avoid causing fatigue in the SD card memory, then writing and re-writing the "image.jpg" file to this folder. I was thinking to add the raspistill command to the beginning of your script to "take the picture" and write the image file then your script would upload the image file via ftp. The raspistill command is: sudo raspistill -q 10 -t 0 -ex auto -tl 30000 -o /home/pi/camera/image.jpg This creates a lower quality image every 5 minutes and stores it in the folder in memory. One concern is that the command is trying to generate a file every 5 minutes. The Cron calls the script again every 5 minutes. There may be some conflict there. As an alternative running raspistill with no timelapse feature (no tl 30000) and then letting Cron execute the script every 5 minutes might be better.
Any opinion?
I neglected to properly thank you for providing this script. Many thanks, this will make setting up the webcam much easier!!
Re: CumulusMX Crashes on RPi
Posted: Tue 07 Jul 2015 2:43 am
by acatalano
Jan
Now that I've looked at your script language in cumuluswebcam.sh and understood how it operates I think it makes the most sense to place the raspistill (with no timelapse, i.e., -tl 0) in the CRON file and let that do all the timing. The image will be taken by raspistill and placed in the /camera/ folder immediately on starting, then the cumuluswebcam.sh script will upload it to the site. The CRON will wait 5 minutes and re-start. It should be quite straightforward.
Re: CumulusMX Crashes on RPi
Posted: Wed 08 Jul 2015 7:25 am
by slashmusic
Once i Return from my vacation, i will check how to integrale raspistill bettet into this small Script. I don't know this program (raspistill) so far.
Jan
Re: CumulusMX Crashes on RPi
Posted: Wed 08 Jul 2015 6:15 pm
by acatalano
Actually, I have raspistill working within cron. Then I use wput to FTP it to the Weatherunderground site. Works very well and frees the webcam from Cumulus. I am just about to load my data onto the RPi and see if it all works.