#solar #iot #api

shinemonitor

Rust library for the shinemonitor.com website

3 releases

0.1.2 Aug 14, 2022
0.1.1 Aug 14, 2022
0.1.0 Aug 14, 2022

#1156 in Authentication

Download history 8/week @ 2024-12-11 66/week @ 2025-02-12 4/week @ 2025-02-26

70 downloads per month

MIT license

14KB
340 lines

Shinemonitor-rs

Rust libary for the shinemonitor.com website

(username and password required)

Example

use shinemonitor::ShineMonitorClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{
    let client = ShineMonitorClient::default();
    let res = client
    .auth("johnsmith","temp123")
    .await?
    .pid()
    .await?;
    
    println!("Pid Json: {:?}",res);

    Ok(())
}

Cargo.toml


shinemonitor = "0.1.0"
tokio = { version = "1", features = ["full"] }

Dependencies

~10–26MB
~310K SLoC