Thanks to visit codestin.com
Credit goes to github.com

Skip to content

authentication #417

@larszod

Description

@larszod

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions