diff options
author | lassulus <lassulus@lassul.us> | 2022-12-12 14:08:49 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-12 14:09:08 +0100 |
commit | 610cd8774903f8a9110f6ebe678de78ec82e9fe1 (patch) | |
tree | 76d02a11309cd92c2c94cf9a7f6ad633ce5f35a8 /lass/2configs/radio/weather_for_ips.py | |
parent | 4c057b992979ba2c53b7286cfbe7e78ba94a76ed (diff) |
l radio: reimplement in liquidsoap
Diffstat (limited to 'lass/2configs/radio/weather_for_ips.py')
-rw-r--r-- | lass/2configs/radio/weather_for_ips.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lass/2configs/radio/weather_for_ips.py b/lass/2configs/radio/weather_for_ips.py index 587cc1f28..1f8489bd1 100644 --- a/lass/2configs/radio/weather_for_ips.py +++ b/lass/2configs/radio/weather_for_ips.py @@ -24,9 +24,10 @@ for ip in fileinput.input(): weather = json.loads(resp.text) output.append( f'Weather report for {location.city.name}, {location.country.name}. ' - f'Currently it is {weather["current"]["weather"][0]["description"]} outside ' + f'It is {weather["current"]["weather"][0]["description"]} outside ' f'with a temperature of {weather["current"]["temp"]:.1f} degrees, ' - f'and a wind speed of {weather["current"]["wind_speed"]:.1f} meters per second. ' + f'a wind speed of {weather["current"]["wind_speed"]:.1f} meters per second ' + f'and a humidity of {weather["current"]["humidity"]} percent. ' f'The probability of precipitation is {weather["hourly"][0]["pop"] * 100:.0f} percent. ' ) |