Skip to content

netatmo-rs is a simple Rust library to talk to Netatmo's API.

License

Notifications You must be signed in to change notification settings

Green-Mod/netatmo-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netatmo-rs

This repo is the fork of netatmo-rs, which is a simple Rust library to talk to Netatmo's API.

So why the fork?

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:

  1. Uses thiserror crate for error handling.
  2. Uses reqwest's async client for making requests.
  3. 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.

Development

Run Examples

NETATMO_ACCESS_TOKEN=xxxx NETATMO_DEVICE_ID=xxxx cargo run --example get_station_data

Todos

  1. Semantic transformation of results -> use enums, timezone etc instead of Strings and int values.

About

netatmo-rs is a simple Rust library to talk to Netatmo's API.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 100.0%