Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weather.sh: added timeouts & checking for 'wttr.in' #287

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

ikubetoomuzik
Copy link
Contributor

This is a follow on to my previous request that changed how status was checked for the weather sites. This edit is still using BASH's builtin TCP connections for testing. Added the timeout command so that the status bar doesn't have "NOT READY". Also added a check for 'wttr.in' port 443 as that site is used to get the actual weather information.

I also changed the displayed message when either site is unavailable from "Location Unavailable" to "Weather Unavailable" as it could be either 'wttr.in' or 'ipinfo.io' that is down and causing the error.

Still using BASH's builtin TCP connections for testing. Added the
timeout command so that the status bar doesn't have "NOT READY". Also
addded a check for 'wttr.in' port 443 as that site is used to get the
actual weather information.
@ethancedwards8
Copy link
Member

Oh yeah good point. I had not considered that. Thank you.

@ethancedwards8 ethancedwards8 merged commit 410e844 into dracula:master Sep 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants