Compare commits
2 Commits
a0f7c1be69
...
3810d4a0fc
| Author | SHA1 | Date | |
|---|---|---|---|
|
3810d4a0fc
|
|||
|
2b81c5749c
|
@@ -340,8 +340,6 @@ in
|
||||
ExecStart = pkgs.writeShellScript "cache-weather-script" ''
|
||||
set -euxo pipefail
|
||||
# PATH=$PATH:${lib.makeBinPath [ pkgs.wego ]}
|
||||
echo "`date`"
|
||||
echo "that's the date"
|
||||
${pkgs.wego}/bin/wego --help
|
||||
${pkgs.wego}/bin/wego -f json > ${config.xdg.cacheHome}/weather/weather-cache.json
|
||||
${pkgs.jq}/bin/jq -r '. | {location: .Location, current_tempc: .Current.TempC, current_tempf: ((1.8 * .Current.TempC + 32) |round), desc: .Current.Desc} | "\(.location): \(.current_tempf) F \(.desc)"' ~/.cache/weather/weather-cache.json > ${config.xdg.cacheHome}/weather/short-weather.txt
|
||||
|
||||
Reference in New Issue
Block a user