Added a /conditions/current endpoint with computed best-guess values for current conditions
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
This commit is contained in:
@@ -6,11 +6,23 @@ const (
|
||||
// ObservationWindow defines how far back observations are queried.
|
||||
ObservationWindow = 30 * time.Minute
|
||||
|
||||
// DefaultObservationCount defines the default number of observations returned.
|
||||
DefaultObservationCount = 5
|
||||
|
||||
// MaxObservationCount defines the max observation count accepted from query params.
|
||||
MaxObservationCount = 100
|
||||
|
||||
// ForecastQueryLimit defines the max forecast periods returned.
|
||||
ForecastQueryLimit = 5
|
||||
|
||||
// DefaultOutputUnitSystem is the API's default output unit system.
|
||||
DefaultOutputUnitSystem = "us"
|
||||
// UnitSystemUS identifies the US customary unit system.
|
||||
UnitSystemUS = "us"
|
||||
|
||||
// UnitSystemMetric identifies the metric unit system.
|
||||
UnitSystemMetric = "metric"
|
||||
|
||||
// DefaultOutputUnitSystem is the API's default output unit system for forecast/current conditions.
|
||||
DefaultOutputUnitSystem = UnitSystemUS
|
||||
|
||||
// DefaultHTTPAddr is the default listen address for the HTTP server.
|
||||
DefaultHTTPAddr = ":8080"
|
||||
|
||||
Reference in New Issue
Block a user