Simple driver to control EG-PMS2 surge protector with power management implemented in Rust. The whole implemnetation is done in user-land. (Works on FreeBSD)
$ cargo build -r
- Get status of sockets:
$ egpms status
- Get status of single socket:
./egpms status 1
- Enable socket:
./egpms enable 1
- Disable socket:
./egpms disable 1
The tool can be configured to assign names to socket representations.
To do this, create a .egpms.toml
file in your $HOME
directory:
[config]
[[sockets]]
socket_id = 1
name = "tv"
[[sockets]]
socket_id = 2
name = "pralka"
- support multiple devices
Mariusz Zaborski [email protected]
BSD-2-Clause-FreeBSD