From eceb05ff558ccbfb32b3ec3b589d6064cd54aabe Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Fri, 8 Jan 2021 19:48:19 +0000 Subject: [PATCH] fix device name checks. The device/host names for the devices running this program should be using 'galleryX' ('X' denotes the device number). I put 'factory' instead of gallery because I'm an idiot. 'factory' are the device names for the Light Meter project. --- relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay.py b/relay.py index 30434a7..35fc5ad 100644 --- a/relay.py +++ b/relay.py @@ -11,9 +11,9 @@ GPIO.setup(relay_pin, GPIO.OUT) def get_api_url(): # Yes, I know I could do this better. Stop moaning. - if (device_id == "factory1"): + if (device_id == "gallery1"): return "http://ritherdon.abbether.net/api/readings/add/1" - elif (device_id == "factory2"): + elif (device_id == "gallery2"): return "http://ritherdon.abbether.net/api/readings/add/2" # Make sure this is valid.