Beispiel #1
0
def get_weather(service, weather, n, city_id, show_block_tomorrow, show_block_today, show_block_add_info, timer_bool, weather_lang, icons_name):
    if service == 0:
        return gismeteo.get_weather(weather, n, city_id, show_block_tomorrow, show_block_today, show_block_add_info, timer_bool, weather_lang, icons_name)
    if service == 1:
        return weather_com.get_weather(weather, n, city_id, show_block_tomorrow, show_block_today, show_block_add_info, timer_bool, weather_lang, icons_name)
    if service == 2:
        return accuweather.get_weather(weather, n, city_id, show_block_tomorrow, show_block_today, show_block_add_info, timer_bool, weather_lang, icons_name)
Beispiel #2
0
def get_weather(service):
    if service == 'Gismeteo':
        return gismeteo.get_weather()
    if service == 'AccuWeather':
        return accuweather.get_weather()
    if service == 'OpenWeatherMap':
        return openweathermap.get_weather()
    if service == 'Yr':
        return yr.get_weather()
Beispiel #3
0
def get_weather(service):
    if service == 'Gismeteo':
        return gismeteo.get_weather()
    if service == 'AccuWeather':
        return accuweather.get_weather()
    if service == 'OpenWeatherMap':
        return openweathermap.get_weather()
    if service == 'Yr':
        return yr.get_weather()