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.nix | |
parent | 4c057b992979ba2c53b7286cfbe7e78ba94a76ed (diff) |
l radio: reimplement in liquidsoap
Diffstat (limited to 'lass/2configs/radio/weather.nix')
-rw-r--r-- | lass/2configs/radio/weather.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lass/2configs/radio/weather.nix b/lass/2configs/radio/weather.nix index 3beac6693..704bf7218 100644 --- a/lass/2configs/radio/weather.nix +++ b/lass/2configs/radio/weather.nix @@ -6,7 +6,7 @@ let } ./weather_for_ips.py; weather_report = pkgs.writers.writeDashBin "weather_report" '' - set -efu + set -efux export PATH="${lib.makeBinPath [ pkgs.coreutils pkgs.curl @@ -14,7 +14,7 @@ let pkgs.jc pkgs.jq ]}" - curl -z /tmp/GeoLite2-City.mmdb -o /tmp/GeoLite2-City.mmdb http://c.r/GeoLite2-City.mmdb + curl -fSsz /tmp/GeoLite2-City.mmdb -o /tmp/GeoLite2-City.mmdb http://c.r/GeoLite2-City.mmdb MAXMIND_GEOIP_DB="/tmp/GeoLite2-City.mmdb"; export MAXMIND_GEOIP_DB OPENWEATHER_API_KEY=$(cat "$CREDENTIALS_DIRECTORY/openweather_api"); export OPENWEATHER_API_KEY ss -no 'sport = :8000' | @@ -42,7 +42,7 @@ in { --arg to "$(date -u +'%FT%TZ' -d '+1 hours')" \ --slurp --raw-input --compact-output --ascii-output \ '{text: ., from: $from, to: $to, priority: 100}' | - retry -t 5 -d 10 -- curl -v -d@- http://radio-news.r + retry -t 5 -d 10 -- curl -fSs -d@- http://radio-news.r ''; startAt = "*:58:00"; serviceConfig = { |