Revert "Add support for fallback WeatherProviders"

This reverts commit 0e23e56817.
This commit is contained in:
Matthew Oslan
2019-05-23 14:36:34 -04:00
parent 4ffeed5999
commit dec9f31dec
2 changed files with 1 additions and 50 deletions

View File

@@ -6,11 +6,7 @@ import * as moment from "moment-timezone";
import * as geoTZ from "geo-tz";
import { AdjustmentOptions, GeoCoordinates, TimeData, WateringData, WeatherData, WeatherProvider } from "../types";
import CompositeWeatherProvider from "./weatherProviders/CompositeWeatherProvider";
const weatherProvider: WeatherProvider = new CompositeWeatherProvider(
( process.env.WEATHER_PROVIDER || "OWM" ).split( "," ).map( ( id ) => require( "./weatherProviders/" + id ).default )
);
const weatherProvider: WeatherProvider = require("./weatherProviders/" + ( process.env.WEATHER_PROVIDER || "OWM" ) ).default;
// Define regex filters to match against location
const filters = {