Files
nixos-dotfiles/config/waybar/weather.sh
T
2026-06-19 10:29:09 +02:00

8 lines
157 B
Bash
Executable File

#!/usr/bin/env bash
result=$(curl -sf --max-time 10 "wttr.in/?format=%c+%t")
if [ $? -eq 0 ] && [ -n "$result" ]; then
echo "$result"
else
echo "N/A"
fi