This commit is contained in:
albert 2024-06-14 10:38:55 +09:00
parent 77202fb1b9
commit 0978a2e8f5
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -33,11 +33,11 @@
systemd.user.services = { systemd.user.services = {
"get-theme-times" = { "get-theme-times" = {
enable = true; enable = true;
path = [ pkgs.curl ]; path = [ pkgs.curl pkgs.fx ];
script = '' script = ''
echo "Activating get-theme-times systemd service" echo "Activating get-theme-times systemd service"
curl -s wttr.in/Kyoto?format=%S > /tmp/wttr.sunrise curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunrise > /tmp/wttr.sunrise
curl -s wttr.in/Kyoto?format=%s > /tmp/wttr.sunset curl -s "https://api.sunrise-sunset.org/json?lat=35.680&lng=135.03" | fx .results.sunset > /tmp/wttr.sunset
echo "get-theme-times - complete" echo "get-theme-times - complete"
''; '';
after = [ "networking-online.target" ]; after = [ "networking-online.target" ];