mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -05:00
Add history endpoint and do some cleanup
This commit is contained in:
24
Environment/Service/Data/Queries/CreateReading.psql
Normal file
24
Environment/Service/Data/Queries/CreateReading.psql
Normal file
@@ -0,0 +1,24 @@
|
||||
INSERT INTO reading(
|
||||
time,
|
||||
name,
|
||||
model,
|
||||
temperature,
|
||||
pressure,
|
||||
humidity,
|
||||
luminance,
|
||||
gas_resistance,
|
||||
color_temperature,
|
||||
air_quality_index)
|
||||
VALUES (
|
||||
@Timestamp,
|
||||
@Name,
|
||||
@Model,
|
||||
@Temperature,
|
||||
@Pressure,
|
||||
@Humidity,
|
||||
@Luminance,
|
||||
@GasResistance,
|
||||
@ColorTemperature,
|
||||
@AirQualityIndex)
|
||||
ON CONFLICT
|
||||
DO NOTHING
|
||||
Reference in New Issue
Block a user