|
|
|
@@ -12,17 +12,13 @@ def send_notif(title, message): |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def send_notification_for_today(): |
|
|
|
weather_today = weather_today() |
|
|
|
weather_today = Translation[weather_today] |
|
|
|
send_notif("Meteo d'aujourd'hui", "Le temps sera %s, Il y aura une température moyenne de %s °C" % (weather_today, get_temp_today()) ) |
|
|
|
|
|
|
|
weather = str(Translation[weather_today()]) |
|
|
|
send_notif("Meteo d'aujourd'hui", "Le temps sera %s, Il y aura une température moyenne de %s °C" % (weather, get_temp_today()) ) |
|
|
|
|
|
|
|
def send_notification_for_tomorrow(): |
|
|
|
weather_tomorrow = weather_tomorrow() |
|
|
|
weather_tomorrow = Translation[weather_tomorrow] |
|
|
|
send_notif("Meteo de demain", "Le temps sera %s, Il y aura une température moyenne de %s °C" % (weather_tomorrow, get_temp_tomorrow()) ) |
|
|
|
weather = str(Translation[ weather_tomorrow()]) |
|
|
|
send_notif("Meteo de demain", "Le temps sera %s, Il y aura une température moyenne de %s °C" % (weather, get_temp_tomorrow()) ) |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
|