diff --git a/relay.py b/relay.py index 35fc5ad..377cc1b 100644 --- a/relay.py +++ b/relay.py @@ -9,6 +9,8 @@ relay_pin = 11 GPIO.setmode(GPIO.BOARD) GPIO.setup(relay_pin, GPIO.OUT) +device_id = platform.node() # For servers logs. + def get_api_url(): # Yes, I know I could do this better. Stop moaning. if (device_id == "gallery1"):