mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add API to get most recent reading
This commit is contained in:
17
Weather/Service/Data/Resources/GetRecentReading.sql
Normal file
17
Weather/Service/Data/Resources/GetRecentReading.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
SELECT TOP 1 Timestamp,
|
||||
WindDirection,
|
||||
WindSpeed,
|
||||
Humidity,
|
||||
HumidityTemperature,
|
||||
Rain,
|
||||
Pressure,
|
||||
PressureTemperature,
|
||||
BatteryLevel,
|
||||
LightLevel,
|
||||
Latitude,
|
||||
Longitude,
|
||||
Altitude,
|
||||
SatelliteCount,
|
||||
GpsTimestamp
|
||||
FROM Reading
|
||||
ORDER BY Timestamp DESC
|
||||
Reference in New Issue
Block a user