https://github.com/niktheblak/ruuvitag-measurement-api
API for reading current RuuviTag temperatures from PostgreSQL (or TimescaleDB)
https://github.com/niktheblak/ruuvitag-measurement-api
golang postgresql ruuvitag timescaledb
Last synced: 3 months ago
JSON representation
API for reading current RuuviTag temperatures from PostgreSQL (or TimescaleDB)
- Host: GitHub
- URL: https://github.com/niktheblak/ruuvitag-measurement-api
- Owner: niktheblak
- License: agpl-3.0
- Created: 2020-12-01T11:42:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-04-08T00:55:35.000Z (3 months ago)
- Last Synced: 2026-04-12T22:27:47.402Z (3 months ago)
- Topics: golang, postgresql, ruuvitag, timescaledb
- Language: Go
- Homepage:
- Size: 842 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruuvitag-measurement-api
API for reading current RuuviTag temperatures from PostgreSQL (or TimescaleDB).
## Usage
Create a config file (TOML or YAML) with your PostgreSQL credentials:
```toml
[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:
```shell
go run main.go server --config config.toml
```