From c7263b4d0925e856b0b69197d3dc59d4dfca3cd5 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 8 Nov 2022 20:33:07 +0100 Subject: [PATCH] added automatic delayed shutter closing --- klappezu.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 klappezu.py diff --git a/klappezu.py b/klappezu.py new file mode 100644 index 0000000..14a3173 --- /dev/null +++ b/klappezu.py @@ -0,0 +1,14 @@ +from slic.devices.general.shutter import Shutter +from slic.utils.run_later import run_at, tomorrow + +sh1 = Shutter("SATFE10-OPSH066") +sh2 = Shutter("SATOP21-OPSH138") + +def close(): + sh1.close() + sh2.close() + +def klappezu(): + run_at(tomorrow(7), close) + +