diff --git a/kamera_server.py b/kamera_server.py index 7ba822b..125f8fc 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -38,7 +38,7 @@ def action(changePin, action): # Convert the pin from the URL into an integer: changePin = int(changePin) # Get the device name for the pin being changed: - deviceName = pins[changePin]['name'] + deviceName = pins_out[changePin]['name'] # If the action part of the URL is "on," execute the code indented below: if action == "on": # Set the pin high: