Crate fritzapi[−][src]
Library for interfacing with the "AVM Home Automation" API https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf.
It is used by the fritzctrl utility.
Example
List devices
// Get a session id let sid = fritzapi::get_sid(&user, &password)?; // List devices let mut devices = fritzapi::list_devices(&sid)?; // If the first device is of, turn it on let dev = devices.first_mut().unwrap(); if !dev.is_on() { dev.turn_on(&sid)?; }
Re-exports
pub use error::Result; |
pub use error::FritzError; |
Modules
error |
Structs
DeviceStats | |
FritzDect2XX |
Enums
AVMDevice | |
DeviceStatsKind | Category of measurements that the fritz devices may provide. |
Functions
get_sid | Requests a temporary token (session id = sid) from the fritz box using user name and password. |
list_devices |