24 from rapp_utilities
import RappUtilities
25 from rapp_exceptions
import RappError
45 if weather_reporter ==
'':
46 weather_reporter =
'forecastio'
48 if weather_reporter ==
'yweather':
49 RappUtilities.rapp_print(
'Creating yweather weather reporter',
'DEBUG')
51 elif weather_reporter ==
'forecastio':
52 RappUtilities.rapp_print(
'Creating forecast.io weather reporter',
'DEBUG')
55 RappUtilities.rapp_print(
'Wrong weather reporter provided',
'ERROR')
56 raise RappError(
'Wrong weather reporter provided')
Yweather weather reporter.
Creates and returns the class of the weather reporter requested.
ForecastIO weather reporter.
def select_weather_reporter
Select proper weather reporter according to request.