aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jumbotron/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jumbotron/files')
-rw-r--r--roles/jumbotron/files/fakta-bell.sh31
-rw-r--r--roles/jumbotron/files/fakta.service7
-rw-r--r--roles/jumbotron/files/fakta.timer9
3 files changed, 47 insertions, 0 deletions
diff --git a/roles/jumbotron/files/fakta-bell.sh b/roles/jumbotron/files/fakta-bell.sh
new file mode 100644
index 0000000..1adf451
--- /dev/null
+++ b/roles/jumbotron/files/fakta-bell.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+for i in 1 2 3; do
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+ sleep 0.1
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+ sleep 0.01
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+ sleep 0.01
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+ sleep 0.1
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+ sleep 0.01
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 1
+ sleep 0.01
+ gpio write 2 0
+done
diff --git a/roles/jumbotron/files/fakta.service b/roles/jumbotron/files/fakta.service
new file mode 100644
index 0000000..7338d64
--- /dev/null
+++ b/roles/jumbotron/files/fakta.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Ring fakta bell
+
+[Service]
+Type=oneshot
+User=jumbotron
+ExecStart=/home/jumbotron/fakta-bell.sh
diff --git a/roles/jumbotron/files/fakta.timer b/roles/jumbotron/files/fakta.timer
new file mode 100644
index 0000000..1417a59
--- /dev/null
+++ b/roles/jumbotron/files/fakta.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Ring fakta bell
+
+[Timer]
+OnCalendar=*-*-* 20:45:00
+Persistent=false
+
+[Install]
+WantedBy=timers.target