-
Notifications
You must be signed in to change notification settings - Fork 35
Description
This is not an issue or bug, but a request for some instructions (sorry).
Maybe add some simple, basic example for connecting to netatmo on the home network inside firewall.
Something that I don't understand is the significance of "client_id" and "client_secret" and also the "redirect URL". Can you maybe shed some light on this?:
import pyatmo
USERNAME = "netatmo username"
PASSWORD = "netatmo password"
REDIRECT_URL = What is this?
authorization = pyatmo.ClientAuth(
client_id=None,
client_secret=None,
username=USERNAME,
password=PASSWORD,
redirect_uri=REDIRECT_URL,
scope="read_station",
)
r = pyatmo.HomeData(authorization)
r.update()
r.process()
print(r.homes)
for home_id in r.homes.keys():
r = pyatmo.HomeStatus(authorization, home_id)
r.update()
r.process()
print(r.rooms)