Changes between Version 3 and Version 4 of RaspberryPiSurveillanceMonitor


Ignore:
Timestamp:
Jun 5, 2017, 8:24:09 AM (8 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RaspberryPiSurveillanceMonitor

    v3 v4  
    99I 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.
    1010
    11 /etc/motd:
     11file:/etc/motd:
    1212{{{
    1313WWW: http://rickvanderzwet.nl - webcampi @ rustdam
     
    1919
    2020
    21 /etc/service/camera1/run:
     21file:/etc/service/camera1/run:
    2222{{{
    2323#!/bin/sh
     
    2626}}}
    2727
    28 /etc/service/camera2/run:
     28file:/etc/service/camera2/run:
    2929{{{
    3030#!/bin/sh
     
    3333}}}
    3434
    35 /etc/service/camera3/run:
     35file:/etc/service/camera3/run:
    3636{{{
    3737#!/bin/sh
     
    4444= Monitoring of camera feeds =
    4545
    46 /root/kill_stuck_omxplayer.sh:
     46file:/root/kill_stuck_omxplayer.sh:
    4747{{{
    4848#!/bin/sh
     
    6060}}}
    6161
    62 /etc/crontab:
     62file:/etc/crontab:
    6363{{{
    6464*  *    * * *   root    /root/kill_stuck_omxplayer.sh | logger
    6565}}}
    6666
    67 = rsyslog issues =
     67= Rsyslog issues =
    6868My log was flooding with messages like this:
    6969{{{
     
    7878        *.=notice;*.=warn       |/dev/xconsole
    7979}}}
     80
     81
     82= Remote monitoring of screen output =
     83For 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
     85Compile 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
     91Install webserver:
     92 $ sudo apt-get install apache2
     93 $ sudo chown -R pi:pi /var/www/html
     94
     95file:/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
     111file:/etc/crontab:
     112{{{
     113*       *       *       *       *       pi /usr/bin/raspi2png -p /var/www/html/snapshot.png 2>&1 | logger -t raspi2png
     114}}}