Expand description
Access to the Glowmarkt API for meter readings.
Developed based on https://bitbucket.org/ijosh/brightglowmarkt/src/master/
Re-exports§
pub use api::Device;pub use api::DeviceType;pub use api::Resource;pub use api::ResourceType;pub use api::VirtualEntity;pub use error::Error;pub use error::ErrorKind;
Modules§
Structs§
- Glowmarkt
Api - Access to the Glowmarkt API.
- Glowmarkt
Endpoint - The API endpoint.
- Reading
- A meter reading
Enums§
- Reading
Period - The time window for each reading.
Constants§
- APPLICATION_
ID - The default application ID to use when communicating with the API.
- BASE_
URL - The default API endpoint.
Functions§
- align_
to_ period - Attempts to align the given date to the start of a reading period.
- split_
periods - Splits a range of readings into a set of ranges that the API will accept.