Round temperature, fixes #1

This commit is contained in:
2019-08-26 09:17:06 +02:00
parent 3e799dcef7
commit 24fca750a3

View File

@ -51,8 +51,8 @@ class WeatherToFreemobile():
return_message += '{} : {} (min {}ºC, max {}ºC, rain:{}mm)'.format(
weather.get_reference_time('date').strftime('%x'),
weather.get_detailed_status(),
temp['min'],
temp['max'],
round(float(temp['min'])),
round(float(temp['max'])),
weather.get_rain()
)
logging.info("Got the following weather: {}".format(return_message))