0.1.0 |
|
---|
#5 in #cui
6KB
59 代码行
co2-mini-monitor
一个 CUI 应用程序,用于将 CO2Mini 室内空气质量监控器 或 CUSTOM CO2 MONITOR CO2-mini 的输出记录到 stdout。
$ co2-mini-monitor
{"time":"2021-03-13T12:41:26.632033+00:00","type":"co2","value":1100}
{"time":"2021-03-13T12:41:29.271876+00:00","type":"temp","value":21.7}
{"time":"2021-03-13T12:41:31.647808+00:00","type":"co2","value":1100}
{"time":"2021-03-13T12:41:34.295843+00:00","type":"temp","value":21.7}
{"time":"2021-03-13T12:41:36.671795+00:00","type":"co2","value":1104}
{"time":"2021-03-13T12:41:39.319682+00:00","type":"temp","value":21.7}
{"time":"2021-03-13T12:41:41.687658+00:00","type":"co2","value":1104}
{"time":"2021-03-13T12:41:44.335507+00:00","type":"temp","value":21.7}
{"time":"2021-03-13T12:41:46.711509+00:00","type":"co2","value":1108}
请注意,此程序在最近型号的设备中似乎不再进行数据包加密,因此它不处理数据包解密。如果因为加密而无法获得正确结果,请使用其他方案。
安装
cargo install co2-mini-monitor
另请参阅
- co2monitor - 处理数据包解密的 CUI 工具
- 低成本 USB CO2 监控器逆向工程 - 揭示数据包加密方式的项目
许可证
代码遵循 MIT 许可证,见 LICENSE。贡献者需要同意在此存储库中发送的任何修改都遵循许可证。
依赖项
~1.6–2.3MB
~37K SLoC