Crates.io | purple-hue |
lib.rs | purple-hue |
version | 0.2.2 |
source | src |
created_at | 2020-09-06 18:09:03.640128 |
updated_at | 2022-07-24 17:26:12.267988 |
description | Change a hue light's color based on air quality data from purple air. |
homepage | |
repository | https://github.com/mike-zorn/purple-hue |
max_upload_size | |
id | 285478 |
size | 131,514 |
Change a hue light's color based on air quality data from purple air.
cargo install purple-hue
purple-hue
is in the AUR.
In order to run purple-hue, you need to configure a sensor, light and register a user.
You can find the sensor id from the purple air map. The light id is available through these instructions. Finally, you can register a user via purple-hue register-user
. Save all of these in a purple-hue.toml
file either at /etc/purple-hue.toml
, ./purple-hue.toml
or $XDG_CONFIG/purple-hue.toml
. An example configuration follows.
light_id = 1
sensor_id = 1
user_id = "user-id"
Instead of providing a sensor_id
, you can also set a sensor_ip
if you are able to access the http api of a given sensor.
This repository has a systemd unit and timer that can be used to run this as a systemd service every minute.
The following instructions are for deploying updates to this repository to crates.io and to the Arch User Repository.
cargo generate-lockfile
cargo publish
makepkg --printsrcinfo > .SRCINFO
in the AUR package repository