diff --git a/cli_meter.py b/cli_meter.py index 79b8c5c..5522eb6 100755 --- a/cli_meter.py +++ b/cli_meter.py @@ -37,7 +37,8 @@ a_pin = 18 # Charges the capacitor. b_pin = 23 # Discharges the capacitor. # Make sure this is valid. -api_url = "http://3.9.19.84/api/readings/add/1" +#api_url = "http://35.178.176.131/api/readings/add/1" +api_url = "http://ritherdon.abbether.net/api/readings/add/1" def discharge(): GPIO.setup(a_pin, GPIO.IN) diff --git a/light_meter.py b/light_meter.py index 8afea6b..0b1a3db 100755 --- a/light_meter.py +++ b/light_meter.py @@ -86,7 +86,7 @@ def push_reading(lvalue): # payload = { "active": act, "light-reading": int(lvalue), "timestamp": time } payload = { "reading": int(lvalue), "time": time} # res = requests.post("http://192.168.1.228:5000/api/readings/add/1", data=json.dumps(payload), headers=headers) - res = requests.post("http://35.176.14.135/api/readings/add/1", data=json.dumps(payload), headers=headers) + res = requests.post("http://ritherdon.abbether.net/api/readings/add/1", data=json.dumps(payload), headers=headers) # print(int(lvalue)) # print(res.status_code) print(payload) diff --git a/shutdown.sh b/shutdown.sh index 08190c4..4358892 100755 --- a/shutdown.sh +++ b/shutdown.sh @@ -15,7 +15,8 @@ logDate=$(date '+%Y-%m-%dT%TZ') logFile="/home/rtrp/logs/shutdown-logs.txt" -mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +# mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +mainURL="http://ritherdon.abbether.net/api/status/update" getApiUrl () { case $HOSTNAME in diff --git a/startup.sh b/startup.sh index e3720cb..6e470a3 100755 --- a/startup.sh +++ b/startup.sh @@ -24,7 +24,8 @@ sleep 60 logDate=$(date '+%Y-%m-%dT%TZ') logFile="/home/rtrp/logs/startup-logs.txt" -mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +# mainURL="http://3.9.19.84/api/status/update" # Make sure this is valid. +mainURL="http://ritherdon.abbether.net/api/status/update" getApiUrl () { case $HOSTNAME in