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

Skip to content

Working example implementation for this library #489

@Lock128

Description

@Lock128

Hey

do we somewhere have a "working" piece of code for this repository - so what are the 5 lines of code that we need to use the library?

e.g. how to I use async_update_weather_stations?

In my current code I had been using


authorization = pyatmo.NetatmoOAuth2(
    client_id=CLIENT_ID,
    client_secret=CLIENT_SECRET,
   # scope="read_station",
)

authorization.extra["refresh_token"]="xxx"
authorization.refresh_tokens()

# 2 : Get devices list
weatherData = pyatmo.WeatherStationData(authorization)

but somehow pyatmo.WeatherStationData does not show any stations anymore...

What's the adviced implementation way right now? Do I need to switch to async_update_weather_stations?

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