echo "SUNRISE: $(hdate -s -l $(curl -s ifconfig.co/json | jq -r '.latitude') -L $(curl -s ifconfig.co/json | jq -r '.longitude') --timezone $(date +%z | cut -c1-3 | tr -d '+') | grep -i 'SUNRISE')"

echo "SUNSET: $(hdate -s -l $(curl -s ifconfig.co/json | jq -r '.latitude') -L $(curl -s ifconfig.co/json | jq -r '.longitude') --timezone $(date +%z | cut -c1-3 | tr -d '+') | grep -i 'SUNSET')"

Reply to this note

Please Login to reply.

Discussion

No replies yet.