easee-rs

Crates.ioeasee-rs
lib.rseasee-rs
version0.1.2
created_at2025-02-10 02:07:34.601876+00
updated_at2025-02-10 11:20:48.863243+00
descriptionA client for the Easee API
homepage
repositoryhttps://github.com/flowionab/easee
max_upload_size
id1549503
size55,329
Joatin Granlund (Joatin)

documentation

README

Easee API Client

This is a Rust client implementation for the Easee API. It provides an interface for interacting with Easee's EV charging platform, enabling users to authenticate, retrieve charger status, and control charging sessions.

Features

  • Authentication with Easee API
  • Fetching charger details and status
  • Starting and stopping charging sessions
  • Configuring charger settings

Installation

Add the following dependency to your Cargo.toml:

[dependencies]
easee-rs = "0.1"

(Note: Replace with the actual crate name if published on crates.io, or use a Git dependency if needed.)

Usage

use easee_rs::Client;

#[tokio::main]
async fn main() {
    let client = Client::new_with_access_token("your-api-key");
    match client.get_chargers().await {
        Ok(chargers) => println!("{:?}", chargers),
        Err(e) => eprintln!("Error: {}", e),
    }
}

Authentication

The client requires either an API key, or username and password for authentication. The API key can be obtained from the Easee developer portal, while the username and password are the same as those used to log in to the Easee app.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 6

cargo fmt