Added temp formatting to '/stats' and added documentation and CI

This commit is contained in:
2025-06-19 17:22:44 +02:00
parent ca4b75af7a
commit 0f487e3f93
9 changed files with 1102 additions and 17 deletions

View File

@@ -4,18 +4,18 @@ package types
// skewed meteorological events
type WeatherAnomaly struct {
Date ZephyrDate `json:"date"`
Temp float64 `json:"temperature"`
Temp string `json:"temperature"`
}
// The StatResult data type, representing weather statistics
// of past meteorological events
type StatResult struct {
Min float64 `json:"min"`
Max float64 `json:"max"`
Min string `json:"min"`
Max string `json:"max"`
Count int `json:"count"`
Mean float64 `json:"mean"`
StdDev float64 `json:"stdDev"`
Median float64 `json:"median"`
Mode float64 `json:"mode"`
Mean string `json:"mean"`
StdDev string `json:"stdDev"`
Median string `json:"median"`
Mode string `json:"mode"`
Anomaly *[]WeatherAnomaly `json:"anomaly"`
}