API for reading current RuuviTag temperatures from PostgreSQL (or TimescaleDB).
Create a config file (TOML or YAML) with your PostgreSQL credentials:
[postgres]
host = "my-postgres-instance.cloud"
port = 5432
database = "ruuvitag"
username = "measurement_api"
password = "..."
table = "ruuvitag"
name_table = "ruuvitag_names"
[server]
port = 8180
token = ["..."]
Then run the server:
go run main.go server --config config.toml