mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Start adding API endpoints
This commit is contained in:
16
Environment/Service/Data/Queries/GetRecentReadings.sql
Normal file
16
Environment/Service/Data/Queries/GetRecentReadings.sql
Normal 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
|
||||
Reference in New Issue
Block a user