Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kittsville committed Jan 26, 2020
1 parent a0ff94c commit 8626e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adorable_qtpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import requests
import os

LOCAWOOD_TOKEN = os.environ["LOCAWOOD_TOKEN"]
LOCALWOOD_TOKEN = os.environ["LOCALWOOD_TOKEN"]
MQTT_HOST = os.environ["MQTT_HOST"]
MQTT_USERNAME = os.environ["MQTT_USERNAME"]
MQTT_TOPIC = os.environ["MQTT_TOPIC"]
Expand All @@ -27,7 +27,7 @@ def on_connect(client, userdata, flags, rc):
def on_message(client, userdata, msg):
print('Got message %s', msg.payload)
localwood_payload = json.loads(msg.payload.decode('utf-8'))
localwood_payload['token'] = LOCAWOOD_TOKEN
localwood_payload['token'] = LOCALWOOD_TOKEN

try:
requests.post('http://localhost:8080/sockets', data = localwood_payload)
Expand Down

0 comments on commit 8626e27

Please sign in to comment.