From 0c756c5e491246f1141bb7a431c2810ad246983d Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Tue, 31 Aug 2021 23:49:53 -0700 Subject: Very hip home automation All the GPIO libraries are such a mess that this seems suitable for now --- bin/lights-off | 3 +++ bin/lights-on | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 bin/lights-off create mode 100755 bin/lights-on diff --git a/bin/lights-off b/bin/lights-off new file mode 100755 index 0000000..ee0afad --- /dev/null +++ b/bin/lights-off @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +ssh pi@raspberrypi.local -t 'echo 0 > /sys/class/gpio/gpio17/value' diff --git a/bin/lights-on b/bin/lights-on new file mode 100755 index 0000000..581b9af --- /dev/null +++ b/bin/lights-on @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +ssh pi@raspberrypi.local -t 'echo 1 > /sys/class/gpio/gpio17/value' -- cgit v1.2.3