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.