From 3ace5a9454d06b3fb85a8e547de7c97d72d028db Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jan 2026 16:31:26 +1100 Subject: [PATCH] update readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e2dc3c6..135ef86 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ Retention/compression: - `observations_ws90` has a 90‑day retention policy and compression after 7 days. - `observations_baro` has a 90‑day retention policy and compression after 7 days. +### Existing databases +If you’re on an existing database, you’ll need to apply the new table definition once (the init SQL only runs on a fresh DB). Example: + +```sh +docker compose exec -T timescaledb psql -U postgres -d micrometeo -f /docker-entrypoint-initdb.d/001_schema.sql +``` + +Or copy just the `observations_baro` section into a manual `psql -c`. + ## Publish a test WS90 payload ```sh 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}'