update prints for forecast

This commit is contained in:
brentru 2019-01-08 13:20:35 -05:00
parent c6b9dfcca8
commit 3f7a8d53f4

View file

@ -21,7 +21,7 @@ ADAFRUIT_IO_KEY = 'KEY'
# (go to https://accounts.adafruit.com to find your username) # (go to https://accounts.adafruit.com to find your username)
ADAFRUIT_IO_USERNAME = 'USER' ADAFRUIT_IO_USERNAME = 'USER'
# Set to ID of the forecast to subscribe to for updates. # Set to ID of the forecast to subscribe to for updates
forecast_id = 1234 forecast_id = 1234
# Set to the ID of the feed to subscribe to for updates. # Set to the ID of the feed to subscribe to for updates.
@ -46,7 +46,7 @@ def connected(client):
# This is a good place to subscribe to feed changes. The client parameter # This is a good place to subscribe to feed changes. The client parameter
# passed to this function is the Adafruit IO MQTT client so you can make # passed to this function is the Adafruit IO MQTT client so you can make
# calls against it easily. # calls against it easily.
print('Connected to Adafruit IO! Listening for {0} changes...'.format(FEED_ID)) print('Connected to Adafruit IO! Listening to forecast: {0}...'.format(forecast_id))
# Subscribe to changes on a feed named DemoFeed. # Subscribe to changes on a feed named DemoFeed.
client.subscribe_weather(forecast_id, forecast_type) client.subscribe_weather(forecast_id, forecast_type)