https://github.com/rumpelsepp/opennetzteil
A specification and an implementation for controlling power supplies via http
https://github.com/rumpelsepp/opennetzteil
automation golang http opennetzteil powersupply
Last synced: 9 months ago
JSON representation
A specification and an implementation for controlling power supplies via http
- Host: GitHub
- URL: https://github.com/rumpelsepp/opennetzteil
- Owner: rumpelsepp
- License: gpl-3.0
- Created: 2022-05-05T06:19:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T23:26:50.000Z (over 2 years ago)
- Last Synced: 2024-06-21T18:51:26.872Z (almost 2 years ago)
- Topics: automation, golang, http, opennetzteil, powersupply
- Language: Go
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opennetzteil
Opennetzteil is a [specification](https://rumpelsepp.org/man/netzteil-http.7.html) for a http interface for power supply devices.
This project provides a server and a cli client.
The following devices are supported:
* [R&S®HMC804x](https://www.rohde-schwarz.com/de/produkt/hmc804x-produkt-startseite_63493-61542.html)
* [RND320](https://cdn-reichelt.de/documents/datenblatt/D400/RND320-KD3005D.pdf)
Writing drivers is simple; please contribute! :)
## Run it
Build it:
```
$ make
```
[Configure](https://rumpelsepp.org/man/netzteil.5.html) it:
```
$ cat $HOME/.config/netzteil/config.toml
[http]
bind = ":8000"
[[netzteile]]
handle = "file:///dev/ttyACM0"
model = "rnd320"
```
Run it:
```
$ ./netzteild
```
This is a usual http server.
More complex setups with reverse proxy, authentication, tls, … are possible but out of scope for including it here.
Use [caddy](https://caddyserver.com/) or [nginx](http://nginx.org/) for this.
## What means Netzteil?
Netzteil is german for "power supply device".