powreader
1.0.0
작고 간단한 도구는 (네덜란드) 스마트 파워 미터를 읽고 데이터를 다른 장치의 유입체로 전송합니다. 이를 통해 전력 계량기를 읽는 데 전념하지 않고도 동일한 Raspberry Pi에서 더 많은 유틸리티를 실행할 수 있습니다.
예를 들어 PI와 교차 적용 할 수있는 빌드이지만 모든 Linux 장치에서 실행될 수 있습니다. 거의 CPU 전원과 3MB 미만의 RAM을 사용합니다.
$ ./powreader --help Powreader 1.0
Powreader interprets the output from the digital power meter and outputs it in JSON or pushes it to an InfluxDB.
USAGE:
powreader [OPTIONS] <SERIALPORT>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --influxdb <influxdb> Sets the full host and port to the influxdb. Data is transfered over UDP. This argument
is given in the form of HOST:PORT. If this argument is not set, data will be printed as
a JSON stream.
ARGS:
<SERIALPORT> Sets the serial port to use
이 프로그램이 항상 실행되는지 확인하는 SystemD 구성을 만들었습니다. 나에게 실행 문자열은 다음과 같습니다.
/home/ubuntu/powreader --influxdb=192.168.0.50:8089 /dev/ttyUSB0여기서 '/dev/ttyusb0'은 스마트 파워 미터에 대한 일련의 연결이며, 인기있는 것은 데이터를 UDP로 밀어 넣는 데 사용하는 인플 락드B 데이터베이스의 위치입니다.
그런 다음 Grafana를 사용하여 그래프 및 게이지에 측정 값을 표시합니다.