Skip to content

Commit

Permalink
finetune startup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenVD committed Aug 12, 2018
1 parent 96219e0 commit 2c6ac75
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can think of rpisurv as a wrapper for omxplayer with following features (Rpi
- Rpisurv implements a watchdog for every stream displayed, if the process gets killed somehow. It will try to restart the stream/process. This gives you a very robust surveillance screen.
- Autocalculcate coordinates for every stream displayed. The last stream defined will be stretched to make use of the complete screen but only if some pixels are unused (if autostretch option is True).
- Stream up/down detection and autorearrange of the screen layout (if disable_probing_for_all_streams is False). So for example if you stop a camera (or just stop the server on the camera), rpisurv will detects this and will recalculate/redraw the screen with the still available cameras. The same is true if a previous unconnectable rtsp stream becomes connectable. All without any user interaction.
- All this behaviour is available per screen, but as of 2.0 you can configure multiple screens and cycle between them in an automated way.
- All this behaviour is available per screen, but as of 2.0 you can configure multiple screens and cycle between them in an automated way or via the keyboard.

## How to get started
In short: The idea is to connect your raspberry pi to a monitor and tell rpisurv which stream(s) and screen(s) it should display or cycle between. Rpisurv will autocalculate all the rest.
Expand Down Expand Up @@ -53,7 +53,7 @@ After installation you may change the placeholder images to something you like.

If you used the install.sh script, you can configure your streams in /etc/rpisurv. Do not forget to reboot afterwards.

If you are connected via keyboard, you can force the next screen rpisurv by pressing and holding n or space for some seconds in case multiple screens were defined (this takes longer depending on amount of unconnectable streams and they thus need to wait for timeout, keep holding until screen changes. Note, you can change probe_timeout per camera stream if needed).
If you are connected via keyboard, you can force the next screen by pressing and holding n or space for some seconds in case multiple screens were defined (this takes longer depending on amount of unconnectable streams and they thus need to wait for timeout, keep holding until screen changes. Note, you can change probe_timeout per camera stream if needed).

Keys F1 to F12, will force the equal numbered screen to be shown onscreen (this takes longer depending on amount of unconnectable streams and they thus need to wait for timeout, keep holding until screen changes. Note, you can change probe_timeout per camera stream if needed).

Expand Down Expand Up @@ -83,4 +83,4 @@ Disable rotation (as in pause rotation, as in fix the current displayed screen)

## Feature requests

Feature requests are tracked on https://feathub.com/SvenVD/rpisurv. If you would like to have a feature implemented on rpisurv, please check that this is not already been requested on feathub. If it is then add your vote to it, if it is not then request it as a new feature. The votes give us an indication on how feature requests compare to each other regarding popularity.
Feature requests are tracked on https://feathub.com/SvenVD/rpisurv. If you would like to have a feature implemented on rpisurv, please check that this is not already been requested on feathub. If it is then add your vote to it, if it is not then request it as a new feature. The votes give us an indication on how feature requests compare to each other regarding popularity.
4 changes: 0 additions & 4 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,3 @@ The normal update [procedure](https://github.com/SvenVD/rpisurv/blob/v2.0_branch
- "autostretch" and "nr_of_columns" options are now per-screen configuration options.
- Installer has been updated to request the user to preserve his current configuration file.





2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ get_init_sys
BASEPATH="$(cd $(dirname "${BASH_SOURCE[0]}");pwd)"

#Install needed packages
sudo apt-get install coreutils python-pygame python-yaml python-dbus python libraspberrypi-bin -y
sudo apt-get install coreutils procps python-pygame python-yaml python-dbus python libraspberrypi-bin -y

#Only install omxplayer if it isn't already installed (from source or package)
if [ ! -e /usr/bin/omxplayer ];then
Expand Down
1 change: 1 addition & 0 deletions rpisurv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#Removing leftover dbus connections first
/usr/bin/pkill -f "dbus-daemon --fork"
/bin/rm -fv /tmp/omxplayerdbus*
cd /usr/local/bin/rpisurv; python surveillance.py
2 changes: 1 addition & 1 deletion rpisurv.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rpisurv
ExecStop="/bin/rm -fv /tmp/omxplayerdbus*"
KillMode=control-group
Restart=on-failure
RestartSec=20

[Install]
WantedBy=multi-user.target

0 comments on commit 2c6ac75

Please sign in to comment.