Crate glowmarkt

Source
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§

api
API request and response structures.
error
A basic error container.

Structs§

GlowmarktApi
Access to the Glowmarkt API.
GlowmarktEndpoint
The API endpoint.
Reading
A meter reading

Enums§

ReadingPeriod
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.