diff --git a/relay.py b/relay.py index 515dbdf..344245e 100644 --- a/relay.py +++ b/relay.py @@ -15,9 +15,9 @@ 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"): - return "http://ritherdon.abbether.net/api/readings/add/1" + return "http://ritherdon.abbether.net/api/readings/latest/1" elif (device_id == "gallery2"): - return "http://ritherdon.abbether.net/api/readings/add/2" + return "http://ritherdon.abbether.net/api/readings/latest/2" # Make sure this is valid. # api_url = "http://ritherdon.abbether.net/api/readings/add/1"