We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ae23c commit f00bdcdCopy full SHA for f00bdcd
Adafruit_IO/mqtt_client.py
@@ -197,6 +197,13 @@ def subscribe_group(self, group_id):
197
"""
198
self._client.subscribe('{0}/groups/{1}'.format(self._username, group_id))
199
200
+ def subscribe_weather(self, weather_id, forecast_type):
201
+ """Subscribe to Adafruit IO Weather
202
+ :param int weather_id: weather record you want data for
203
+ :param string type: type of forecast data requested
204
+ """
205
+ self._client.subscribe('{0}/integration/weather/{1}/{2}'.format(self._username, weather_id, forecast_type))
206
+
207
def subscribe_time(self, time):
208
"""Subscribe to changes on the Adafruit IO time feeds. When the feed is
209
updated, the on_message function will be called and publish a new value:
0 commit comments