I just had a "how did I not know about this" moment.
curl wttr.in
What a nifty way to retrieve current weather conditions and forecasts for where-ever you want from the commandline or within a program.
That gives you an ascii weather report for your current location on your terminal.
curl wttr.in/.png > temp.png
That gives you a png file of the same thing.
You can specify the location that you want the report for using several methods: by name, by airport code, by geographical location, and so forth.
curl wttr.in/?format=3 gives you a one-line output with the current condition as a emoji (sun, cloud, etc) and the current temperature. You can specify custom outputs however you want them too.
For any of you folks running an automatic advertising display, you can use this to auto-create a slide with the current weather and/or forecast on it.
https://github.com/chubin/wttr.in gives you all the details.
curl wttr.in
What a nifty way to retrieve current weather conditions and forecasts for where-ever you want from the commandline or within a program.
That gives you an ascii weather report for your current location on your terminal.
curl wttr.in/.png > temp.png
That gives you a png file of the same thing.
You can specify the location that you want the report for using several methods: by name, by airport code, by geographical location, and so forth.
curl wttr.in/?format=3 gives you a one-line output with the current condition as a emoji (sun, cloud, etc) and the current temperature. You can specify custom outputs however you want them too.
For any of you folks running an automatic advertising display, you can use this to auto-create a slide with the current weather and/or forecast on it.
https://github.com/chubin/wttr.in gives you all the details.