1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Riz - Wiz Light Control Library
//!
//! # API
//!
//! Note that all Riz API routes are also documented in OpenAPI spec.
//!
//! You can view the OpenAPI [locally](http://localhost:8080/v1/swagger-ui/)
//! if you have Riz API running.
//!
//! For an example of UI integration with this API, check out
//! [Riz-UI](https://github.com/a-tal/riz-ui)
//!
//! # CLI
//!
//! You can modify lights directly through the CLI. State will not be
//! updated (`rooms.json` is only written by the API).
//!
//! ```bash
//! $ riz --help
//! Riz light control CLI
//!
//! Usage: riz [OPTIONS] [IP]...
//!
//! Arguments:
//! [IP]... Bulb IPv4 address(es)
//!
//! Options:
//! -b, --brightness <BRIGHTNESS> Set the bulb brightness (10-100)
//! -c, --color <COLOR> Set the bulb color as r,g,b (0-255)
//! -C, --cool <COOL> Set the cool white value (1-100)
//! -W, --warm <WARM> Set the warm white value (1-100)
//! -p, --speed <SPEED> Set the bulb speed (20-200)
//! -t, --temp <TEMP> Set the bulb temperature in Kelvin (1000-8000)
//! -l, --list List the available scene IDs
//! -s, --scene <SCENE> Set the scene by ID
//! -o, --on Turn the bulb on
//! -f, --off Turn the bulb off
//! -r, --reboot Reboot the bulb
//! -i, --status Get the current bulb status
//! -h, --help Print help
//! -V, --version Print version
//! ```
//!
pub use Error;
pub use ;
pub use Storage;
pub use Worker;
pub type Result<T> = Result;