govee-toolkit 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -8
- package/binding.cjs +795 -0
- package/binding.d.cts +387 -0
- package/dist/index.d.ts +38 -1
- package/dist/index.js +46 -11
- package/package.json +51 -5
package/README.md
CHANGED
|
@@ -1,11 +1,80 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
opt-in, enabled per device by the user — see
|
|
5
|
-
[`../../docs/modes.md`](../../docs/modes.md). Also used by
|
|
6
|
-
`apps/playground`, `apps/desktop`, `packages/artnet-dmx-bridge` and
|
|
7
|
-
`integrations/homebridge`.
|
|
3
|
+
# Govee Toolkit
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
Your lights live on your network, and your commands stay there with them. Wi-Fi
|
|
6
|
+
or a Bluetooth link is all the toolkit needs, straight from your own machine.
|
|
7
|
+
The cloud waits as a third mode for the days you are away. And the toolkit
|
|
8
|
+
sends commands you have never seen before: the undocumented ones, read off the
|
|
9
|
+
wire.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
[](https://github.com/damient/govee-toolkit/blob/main/docs/roadmap.md)
|
|
12
|
+
[](https://github.com/damient/govee-toolkit/blob/main/LICENSE)
|
|
13
|
+
[](https://github.com/damient/govee-toolkit/actions/workflows/ci.yml)
|
|
14
|
+
|
|
15
|
+
[](https://crates.io/crates/govee-toolkit)
|
|
16
|
+
[](https://crates.io/crates/govee-toolkit-cli)
|
|
17
|
+
[](https://pypi.org/project/govee-toolkit/)
|
|
18
|
+
[](https://www.npmjs.com/package/govee-toolkit)
|
|
19
|
+
|
|
20
|
+
<!-- TODO: demo GIF here — a strip running per-segment colors. -->
|
|
21
|
+
|
|
22
|
+
## What it does
|
|
23
|
+
|
|
24
|
+
- Switch a device on and off, and set the brightness, the color and the white
|
|
25
|
+
temperature.
|
|
26
|
+
- Address every segment of a strip on its own, not only the preset effects.
|
|
27
|
+
- Drive a strip frame by frame in real time: music reactive, screen ambilight,
|
|
28
|
+
or your own source.
|
|
29
|
+
- Put a device out of the box on your Wi-Fi over Bluetooth, which is what makes
|
|
30
|
+
it reachable over `lan`.
|
|
31
|
+
|
|
32
|
+
A command travels over your Wi-Fi (`lan`), over Bluetooth (`ble`) or through
|
|
33
|
+
Govee's servers (`cloud`). You choose which modes to allow, per device. One
|
|
34
|
+
allowed mode means one mode: an unreachable device fails with an error rather
|
|
35
|
+
than taking a slower path in silence.
|
|
36
|
+
|
|
37
|
+
<br>
|
|
38
|
+
|
|
39
|
+
<p align="center">
|
|
40
|
+
<a href="https://gvetk.com/docs/start/"><img alt="Get started" src="https://img.shields.io/badge/Get%20started-0b7285?style=for-the-badge"></a>
|
|
41
|
+
<a href="https://gvetk.com/devices/"><img alt="Devices" src="https://img.shields.io/badge/Devices-3b444b?style=for-the-badge"></a>
|
|
42
|
+
<a href="https://gvetk.com/docs/modes/"><img alt="Modes" src="https://img.shields.io/badge/Modes-3b444b?style=for-the-badge"></a>
|
|
43
|
+
<a href="https://gvetk.com/reference/"><img alt="API reference" src="https://img.shields.io/badge/API%20reference-3b444b?style=for-the-badge"></a>
|
|
44
|
+
<a href="https://github.com/damient/govee-toolkit/blob/main/devices/README.md"><img alt="Add a device" src="https://img.shields.io/badge/Add%20a%20device-3b444b?style=for-the-badge"></a>
|
|
45
|
+
</p>
|
|
46
|
+
|
|
47
|
+
## Where the project is
|
|
48
|
+
|
|
49
|
+
The engine works over `lan`, over `ble` and over `cloud`, verified on real
|
|
50
|
+
hardware: discovery, on/off, brightness, color, per-segment color, and live
|
|
51
|
+
animation over the two local modes. It is usable today from Rust, from Python
|
|
52
|
+
and from Node.js.
|
|
53
|
+
|
|
54
|
+
Next come a desktop app, then Home Assistant, Homebridge and Matter.
|
|
55
|
+
[`docs/roadmap.md`](https://github.com/damient/govee-toolkit/blob/main/docs/roadmap.md) tracks the order.
|
|
56
|
+
|
|
57
|
+
## Contributing
|
|
58
|
+
|
|
59
|
+
The protocol is implemented once, in Rust; Python and Node.js bind to that core.
|
|
60
|
+
Command names, byte layouts and measured limits live in
|
|
61
|
+
[`devices/`](https://github.com/damient/govee-toolkit/tree/main/devices), never in code, so adding a model is editing one file.
|
|
62
|
+
[`docs/architecture.md`](https://github.com/damient/govee-toolkit/blob/main/docs/architecture.md) explains the shape of the code,
|
|
63
|
+
and [`CONTRIBUTING.md`](https://github.com/damient/govee-toolkit/blob/main/CONTRIBUTING.md) covers how to document a newly
|
|
64
|
+
discovered command.
|
|
65
|
+
|
|
66
|
+
Confirming whether your model works needs no code:
|
|
67
|
+
[`devices/README.md`](https://github.com/damient/govee-toolkit/blob/main/devices/README.md) walks through it.
|
|
68
|
+
|
|
69
|
+
## Legal notice
|
|
70
|
+
|
|
71
|
+
The "Govee" trademark is used descriptively only, to identify compatible
|
|
72
|
+
devices. This project is not affiliated with, sponsored by, or endorsed by
|
|
73
|
+
Govee.
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
[MIT](https://github.com/damient/govee-toolkit/blob/main/LICENSE)
|
|
78
|
+
|
|
79
|
+
<!-- Absolute: this file is the package description on the registry, where a
|
|
80
|
+
relative link out of the package directory is dead. -->
|