20 lines
843 B
Markdown
20 lines
843 B
Markdown
# go-weatherstation
|
|
|
|
Starter go-weatherstationrology data pipeline:
|
|
- MQTT ingest of WS90 payloads -> TimescaleDB
|
|
- Baseline forecast polling (Open-Meteo) -> TimescaleDB
|
|
|
|
## Run
|
|
1) Start services:
|
|
docker compose up -d
|
|
|
|
2) Copy config:
|
|
cp config.example.yaml config.yaml
|
|
# edit mqtt topic/broker + site lat/lon
|
|
|
|
3) Run:
|
|
go run ./cmd/ingestd -config config.yaml
|
|
|
|
## Publish a test WS90 payload
|
|
mosquitto_pub -h localhost -t ecowitt/ws90 -m '{"model":"Fineoffset-WS90","id":70618,"battery_ok":1,"battery_mV":3180,"temperature_C":24.2,"humidity":60,"wind_dir_deg":129,"wind_avg_m_s":0,"wind_max_m_s":0,"uvi":0,"light_lux":0,"flags":130,"rain_mm":0,"rain_start":0,"supercap_V":0.5,"firmware":160,"data":"3fff000000------0000ff7ff70000","mic":"CRC","protocol":"Fine Offset Electronics WS90 weather station","rssi":-44,"duration":32996}'
|