Skip to content

Commit fa98981

Browse files
author
brentru
committed
add Adafruit IO Connected Service: Weather
1 parent 41a074c commit fa98981

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

adafruit_io.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,13 @@ def delete_feed(self, feed_key):
231231
"""
232232
path = self._compose_path("feeds/{0}".format(feed_key))
233233
return self._delete(path)
234+
235+
# Adafruit IO Connected Services
236+
def receive_weather(self, weather_id):
237+
"""
238+
Adafruit IO Weather Forecast Service
239+
NOTE: This service is avaliable to Adafruit IO Plus subscribers only.
240+
:param int weather_id: ID for retrieving a specified weather record.
241+
"""
242+
path = self._compose_path("integrations/weather/{0}".format(weather_id))
243+
return self._get(path)

0 commit comments

Comments
 (0)