1
0
Fork 0
mirror of https://codeberg.org/lethe/mayvaneday-mu synced 2024-11-21 19:51:04 +01:00
mayvaneday-mu/weather.sh

12 lines
317 B
Bash
Raw Normal View History

2024-01-04 20:43:01 +01:00
#!/bin/bash
echo "Your ZIP code : \`B444\`<username\`94107>\`b"
echo " \`!\`[submit\`:/page/weather.sh\`username|two]\`!."
if [ "$field_username" = "" ]; then
echo "No zip code input yet: defaulting to '94107'..."
echo " "
curl -s https://wttr.in/94107?TFn
else
curl -s https://wttr.in/$field_username?TFn
fi