Skip to content

Commit 9b0e97c

Browse files
committed
added videoplayer
1 parent c7bb706 commit 9b0e97c

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

bin/ue-operator

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ if __name__ == "__main__":
150150
"/home/alexa/text_to_speech/text_to_speech.cfg"],
151151
stderr=subprocess.STDOUT
152152
)
153+
pl.append(
154+
["python3", OPT + "environment/videoplayer/videoplayer.py"],
155+
stderr=subprocess.STDOUT
156+
)
153157
pl.append("mosquitto -c " + OPT + "mosquitto.conf | grep Error")
154158
sleep(1)
155159
logic_command = ["python3", OPT + "logic/main.py"]

logic/workflow_definition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def create(self, settings):
2121
InitWorkflow([
2222
# legacy init
2323
SendTriggerWorkflow("Reset safe", "5/safe/control", State.OFF),
24-
SendTriggerWorkflow("Close lab room door", "4/door/entrance", State.OFF),
25-
SendTriggerWorkflow("Close server room door", "4/door/server", State.OFF),
24+
SendTriggerWorkflow("Close Control Room Door", "4/door/entrance", State.OFF),
25+
SendTriggerWorkflow("Close Server Room Door", "4/door/server", State.OFF),
2626
LightControlWorkflow(Location.LOBBYROOM, State.ON, 255, (255, 255, 255)),
2727
LightControlWorkflow(Location.MAINROOM, State.ON, 255, (255, 255, 255)),
2828
LightControlWorkflow(Location.SERVERROOM, State.ON, 255, (255, 255, 255)),
@@ -44,7 +44,7 @@ def create(self, settings):
4444
TTSAudioWorkflow("FailTTS1", "Warning, power failure! Warning, power failure!"),
4545
DelayWorkflow("FailDelay2", 5),
4646
LightControlWorkflow(Location.LOBBYROOM, State.ON, 255, (255, 0, 0)),
47-
#SendTriggerWorkflow("Play Video", "env/video", State.ON),
47+
SendTriggerWorkflow("Play Video Loop", "env/video", State.ON, data={"path":"/home/ubilab/Videos/PowerGridFailSplit/PowerGridFailSplit_2.mp4"}),
4848
]),
4949
SequenceWorkflow("Puzzle 1 - Cube", [
5050
Workflow("Panels Released", "1/cube/state"),
@@ -93,7 +93,7 @@ def create(self, settings):
9393

9494
ExitWorkflow([
9595
SendTriggerWorkflow("Radio Success", "3/audiocontrol/roomsolved", State.ON),
96-
#SendTriggerWorkflow("Play Video", "env/video", State.ON),
96+
SendTriggerWorkflow("Play Video End", "env/video", State.ON, data={"path":"/home/ubilab/Videos/PowerGridFailSplit/PowerGridFailSplit_3.mp4"}),
9797
LightControlWorkflow(Location.LOBBYROOM, State.ON, 255, (0, 255, 0)),
9898
LightControlWorkflow(Location.MAINROOM, State.ON, 255, (0, 255, 0)),
9999
LightControlWorkflow(Location.SERVERROOM, State.ON, 255, (0, 255, 0)),

0 commit comments

Comments
 (0)