Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newam/corsairmi-mqtt
Read power measurements from a corsair ATX power supply, and publish to a MQTT server
https://github.com/newam/corsairmi-mqtt
Last synced: 25 days ago
JSON representation
Read power measurements from a corsair ATX power supply, and publish to a MQTT server
- Host: GitHub
- URL: https://github.com/newam/corsairmi-mqtt
- Owner: newAM
- License: mit
- Created: 2021-01-11T01:38:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T23:28:25.000Z (6 months ago)
- Last Synced: 2024-05-05T00:24:07.981Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 227 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# corsairmi-mqtt
[![CI](https://github.com/newAM/corsairmi-mqtt/workflows/CI/badge.svg)](https://github.com/newAM/corsairmi-mqtt/actions?query=branch%3Amain)
This is a simple daemon to read power measurements from my power supply, and publish them to a MQTT server.
This code is for reference only, it will not be suitable for most people because it is tailored for my specific setup, consisting of:
* A [NixOS] client.
* A MQTT server with TLS-PSK.## Configuration Example
```nix
{ config, ... }:{
sops.secrets.corsairmi-mqtt-psk = {
mode = "0440";
group = "psu";
};
services.corsairmi-mqtt = {
enable = true;
pskFilePath = config.sops.secrets.corsairmi-mqtt-psk.path;
ip = "192.168.2.3";
port = 8883;
topic = "/home/room/pc_name/psu";
};
}
```[NixOS]: https://nixos.org/