This commit is contained in:
albert 2024-06-14 10:45:22 +09:00
parent 0978a2e8f5
commit 28f3612839
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -36,8 +36,8 @@
path = [ pkgs.curl pkgs.fx ]; path = [ pkgs.curl pkgs.fx ];
script = '' script = ''
echo "Activating get-theme-times systemd service" echo "Activating get-theme-times systemd service"
curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunrise > /tmp/wttr.sunrise curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03&tzid=Asia/Tokyo" | fx .results.sunrise > /tmp/wttr.sunrise
curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunset > /tmp/wttr.sunset curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03&tzid=Asia/Tokyo" | fx .results.sunset > /tmp/wttr.sunset
echo "get-theme-times - complete" echo "get-theme-times - complete"
''; '';
after = [ "networking-online.target" ]; after = [ "networking-online.target" ];