This repo is the fork of netatmo-rs
, which is a simple Rust library to talk to Netatmo's API.
The original library is not maintained anymore, and I needed to add some features to it. Also I revamped the code to use the latest Rust features and libraries.
This fork has the following changes:
- Uses
thiserror
crate for error handling. - Uses
reqwest
's async client for making requests. - Drops the support to Client credentials grant type, which is not supported by Netatmo anymore.
This library assumes that the user already has an Access Token for the Netatmo API. If you don't have one, you can get it by following the steps here.
NETATMO_ACCESS_TOKEN=xxxx NETATMO_DEVICE_ID=xxxx cargo run --example get_station_data
- Semantic transformation of results -> use enums, timezone etc instead of Strings and int values.