summaryrefslogtreecommitdiffstats
path: root/examples/poweroff.cron
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-11-13 18:49:59 +0100
committerJose M. Guisado <jguisado@soleta.eu>2022-11-13 18:49:59 +0100
commit5e546fbee20bce6c78ccf562c9cde43500fe1b0c (patch)
treed38da62a3f91601e04b98a63d99b33f16a4f9568 /examples/poweroff.cron
parentdff298d421afcbe2bdd2246be961d5e963b7fdd0 (diff)
examples: add examples folder
deploy-ubuntu.sh is a simple bash script combining multiple ogcli commands used to format and deploy some image. poweroff.cron is a sample cron file used to schedule client poweroff.
Diffstat (limited to 'examples/poweroff.cron')
-rw-r--r--examples/poweroff.cron11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/poweroff.cron b/examples/poweroff.cron
new file mode 100644
index 0000000..da4c476
--- /dev/null
+++ b/examples/poweroff.cron
@@ -0,0 +1,11 @@
+# This cron task automatically powers off all clients
+# specified at 22:00 local time starting Monday until
+# Friday.
+#
+# You can specify clients to shutdown using several parameters
+# like --client-ip, --room-id, or even --center-id.
+#
+# Usually on debian based distros one can insert cron tasks
+# using "crontab -e".
+
+0 22 * * 1-5 ogcli send poweroff --client-ip 192.168.56.11