From bff2b727cc12af795bcc124515e5912b5e31cecd Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 25 Aug 2026 18:07:09 +0000 Subject: [PATCH] Add pressure --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index b912b74..0db7680 100644 --- a/main.py +++ b/main.py @@ -534,6 +534,9 @@ async def history(request): elif measurement == 'lux': client = sensors_client q = 'select mean("lux") as lux from air where "name" = \'{}\' and time >= {}s and time < {}s group by time({}) fill(linear)'.format(name, start, end, window) + elif measurement == 'hpa': + client = sensors_client + q = 'select mean("hpa") as hpa from air where "name" = \'{}\' and time >= {}s and time < {}s group by time({}) fill(linear)'.format(name, start, end, window) elif measurement == 'sleep': client = sensors_client q = 'select max("max_mag") as max_mag from sleep where "name" = \'{}\' and time >= {}s and time < {}s group by time({}) fill(linear)'.format(name, start, end, window)