Reduce length of weatherProvider field in response

This commit is contained in:
Matthew Oslan
2020-03-21 16:37:03 -04:00
parent 0cfd777963
commit a563cbd21c
7 changed files with 10 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ export interface WeatherDataForecast {
export interface BaseWateringData {
/** The WeatherProvider that generated this data. */
weatherProvider: WeatherProviderId;
weatherProvider: WeatherProviderShortId;
/** The total precipitation over the window (in inches). */
precip: number;
}
@@ -75,3 +75,4 @@ export interface ZimmermanWateringData extends BaseWateringData {
}
export type WeatherProviderId = "OWM" | "DarkSky" | "local" | "mock" | "WUnderground";
export type WeatherProviderShortId = "OWM" | "DS" | "local" | "mock" | "WU";