Added relay functionality
parent
5538f75472
commit
2a1376c1c4
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
/home/pi/video-player/relay-on.sh &
|
||||||
|
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
|
|
||||||
ffplay -fs -autoexit $(cat /overlayvideo)
|
ffplay -fs -autoexit $(cat /overlayvideo)
|
||||||
|
|
||||||
|
/home/pi/video-player/relay-off.sh &
|
||||||
|
|||||||
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Relay 1: GPIO 19
|
||||||
|
# Relay 2: GPIO 13
|
||||||
|
# Relay 3: GPIO 6
|
||||||
|
# Relay 4: GPIO 5
|
||||||
|
|
||||||
|
curl --retry 5 --retry-all-errors 10.242.84.111:8080/off/19
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Relay 1: GPIO 19
|
||||||
|
# Relay 2: GPIO 13
|
||||||
|
# Relay 3: GPIO 6
|
||||||
|
# Relay 4: GPIO 5
|
||||||
|
|
||||||
|
curl --retry 5 --retry-all-errors 10.242.84.111:8080/on/19
|
||||||
Loading…
Reference in New Issue