File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121# (go to https://accounts.adafruit.com to find your username)
2222ADAFRUIT_IO_USERNAME = 'USER'
2323
24- # Set to ID of the forecast to subscribe to for updates.
24+ # Set to ID of the forecast to subscribe to for updates
2525forecast_id = 1234
2626
2727# Set to the ID of the feed to subscribe to for updates.
@@ -46,7 +46,7 @@ def connected(client):
4646 # This is a good place to subscribe to feed changes. The client parameter
4747 # passed to this function is the Adafruit IO MQTT client so you can make
4848 # calls against it easily.
49- print ('Connected to Adafruit IO! Listening for {0} changes ...' .format (FEED_ID ))
49+ print ('Connected to Adafruit IO! Listening to forecast: {0}...' .format (forecast_id ))
5050 # Subscribe to changes on a feed named DemoFeed.
5151 client .subscribe_weather (forecast_id , forecast_type )
5252
You can’t perform that action at this time.
0 commit comments