Changes between Version 3 and Version 4 of RaspberryPiSurveillanceMonitor
- Timestamp:
- Jun 5, 2017, 8:24:09 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RaspberryPiSurveillanceMonitor
v3 v4 9 9 I use the [http://cr.yp.to/daemontools.html daemontools] framework, since it provides me with logging, monitoring, restarting out-of-the-box. I also like the way his way of thinking, to avoid reinventing the wheel everytime you need to write an deamon. 10 10 11 /etc/motd:11 file:/etc/motd: 12 12 {{{ 13 13 WWW: http://rickvanderzwet.nl - webcampi @ rustdam … … 19 19 20 20 21 /etc/service/camera1/run:21 file:/etc/service/camera1/run: 22 22 {{{ 23 23 #!/bin/sh … … 26 26 }}} 27 27 28 /etc/service/camera2/run:28 file:/etc/service/camera2/run: 29 29 {{{ 30 30 #!/bin/sh … … 33 33 }}} 34 34 35 /etc/service/camera3/run:35 file:/etc/service/camera3/run: 36 36 {{{ 37 37 #!/bin/sh … … 44 44 = Monitoring of camera feeds = 45 45 46 /root/kill_stuck_omxplayer.sh:46 file:/root/kill_stuck_omxplayer.sh: 47 47 {{{ 48 48 #!/bin/sh … … 60 60 }}} 61 61 62 /etc/crontab:62 file:/etc/crontab: 63 63 {{{ 64 64 * * * * * root /root/kill_stuck_omxplayer.sh | logger 65 65 }}} 66 66 67 = rsyslog issues =67 = Rsyslog issues = 68 68 My log was flooding with messages like this: 69 69 {{{ … … 78 78 *.=notice;*.=warn |/dev/xconsole 79 79 }}} 80 81 82 = Remote monitoring of screen output = 83 For debugging I remotely need to be able to look at the screen to see what is displayed. This is done by using [https://github.com/AndrewFromMelbourne/raspi2png.git raspi2png] to grep the output of the display and present then using Apache. 84 85 Compile and install raspi2png: 86 $ mkdir src; cd src 87 $ git clone https://github.com/AndrewFromMelbourne/raspi2png.git 88 $ cd raspi2png 89 $ sudo make install 90 91 Install webserver: 92 $ sudo apt-get install apache2 93 $ sudo chown -R pi:pi /var/www/html 94 95 file:/var/www/html: 96 {{{ 97 <html> 98 <head> 99 <meta charset="UTF-8"> 100 <meta http-equiv="refresh" content="10"> 101 </head> 102 103 <body> 104 <img src="snapshot.png" width="100%" height="100%"> 105 </body> 106 </html> 107 }}} 108 109 110 111 file:/etc/crontab: 112 {{{ 113 * * * * * pi /usr/bin/raspi2png -p /var/www/html/snapshot.png 2>&1 | logger -t raspi2png 114 }}}