Skip to content

UserInfo added in weather data to get user units preferences

Compare
Choose a tag to compare
@philippelt philippelt released this 18 Jan 18:28
· 81 commits to master since this release

Such as :
w = weatherData(...)
user = w.user

user.mail
user.unit -> "metric"
user.windunit -> "kph"

Check Netatmo documentation for the different values (can also look in the code the definition of UNITS)