rtlamr-psql-collect
is a data collection client for rtlamr. This tool is storing
the data in a PostgreSQL database.
The following requirements have to be fulfilled in order to run rtlamr-psql-collect
:
- Golang >= 1.16
- PostgreSQL >= 10
rtlamr
To install rtlamr
run:
go get github.com/bemasher/rtlamr
Install rtlamr_psql_collect
by running:
go get github.com/bpoetzschke/rtlamr_psql_collect
rtlamr_psql_collect
is entirely configured through environment variables.
DEBUG
- enable debug logDB_HOST
- Database host; requiredDB_PORT
- Database port; requiredDB_USER
- Database user; requiredDB_PASSWORD
- Database password; requiredDB_DATABASE
- Database to use; requiredRTLAMR_SERVER
- IP address and port of rtl_tcp instance; format: IP:PORTRTLAMR_FILTERID
- List your meter id's here separated by commas. Not required but it is suggested to use it.