Start adding API endpoints

This commit is contained in:
2024-02-01 17:56:33 -05:00
parent 6460430a69
commit d8f6e170dd
9 changed files with 103 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
SELECT DISTINCT ON (name)
time,
name,
model,
temperature,
pressure,
humidity,
luminance,
gas_resistance AS gasResistance,
color_temperature AS colorTemperature,
air_quality_index AS airQualityIndex
FROM
reading
ORDER BY
name,
time DESC