-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"system_name" : "XBMC", | ||
"network_interface" : "wlan0", | ||
"admins_chats" : [ | ||
"000000000", | ||
"123456789" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/systemctl halt,/usr/bin/systemctl reboot,/usr/bin/poweroff,/usr/bin/systemctl shutdown,/usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl start motion,/usr/bin/systemctl stop motion,/usr/bin/systemctl show motion -p ActiveState,/opt/motion/on_cam_enable.sh *,/opt/motion/on_cam_disable.sh *,/opt/motion/on_snapshot.sh,/opt/motion/on_cam_record_disable.sh *,/opt/motion/on_cam_record_enable.sh *,/opt/motion/on_send_sms.sh *,/opt/motion/on_flag_set.sh *,/opt/motion/on_flag_clear.sh *,/usr/bin/fsck * | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl shutdown | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl poweroff | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl reboot | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl halt | ||
ALL ALL=NOPASSWD: /usr/bin/shutdown | ||
ALL ALL=NOPASSWD: /usr/bin/poweroff | ||
ALL ALL=NOPASSWD: /usr/bin/reboot | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl start motion | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl stop motion | ||
ALL ALL=NOPASSWD: /usr/bin/systemctl show motion -p ActiveState | ||
ALL ALL=NOPASSWD: /opt/motion/on_cam_enable.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_cam_disable.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_snapshot.sh | ||
ALL ALL=NOPASSWD: /opt/motion/on_cam_record_disable.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_cam_record_enable.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_send_sms.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_flag_set.sh * | ||
ALL ALL=NOPASSWD: /opt/motion/on_flag_clear.sh * | ||
ALL ALL=NOPASSWD: /usr/bin/fsck * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# ./on_ups_event.sh message_text | ||
|
||
/opt/motion/send_event.sh -f -i ups_event "${1}" | ||
|
||
/opt/motion/send_snapshot_rtsp.sh "rtsp://10.1.1.1/?user=admin&password=password&channel=1&stream=0" | ||
/opt/motion/send_snapshot_rtsp.sh "rtsp://10.1.1.2/?user=admin&password=password&channel=1&stream=0" |