mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-19 17:23:40 -05:00
Add wind history support
This commit is contained in:
@@ -43,5 +43,17 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers
|
||||
{
|
||||
return (await _database.GetReadingHistoryGrouped(start, end, bucketMinutes)).ToList();
|
||||
}
|
||||
|
||||
[HttpGet("wind-speed-history-grouped")]
|
||||
public async Task<ActionResult<List<WindSpeedReadingGrouped>>> GetWindSpeedHistoryGrouped(DateTimeOffset start, DateTimeOffset end, int bucketMinutes = 2)
|
||||
{
|
||||
return (await _database.GetWindSpeedHistoryGrouped(start, end, bucketMinutes)).ToList();
|
||||
}
|
||||
|
||||
[HttpGet("wind-direction-history-grouped")]
|
||||
public async Task<ActionResult<List<WindDirectionReadingGrouped>>> GetWindDirectionHistoryGrouped(DateTimeOffset start, DateTimeOffset end)
|
||||
{
|
||||
return (await _database.GetWindDirectionHistoryGrouped(start, end)).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user