Try dialplan. If you can figure out the string manipulation, yay. It’s a great learning exercise, success or failure.
If dialplan gets too cumbersome, try a shell script. Another great learning exercise.
I wouldn’t suggest an AGI until you get more Asterisk experience.
If you get stuck, show your work and a log of where it breaks. If you include any dialplan snippets show what Asterisk thinks your dialplan is ('dialplan show <context-name>') instead of snippets copied from extensions.conf. No screen shots Remember to wrap all snippets in pre-formatted text tags so the forum doesn’t eat special characters and formatting.
I don’t think you should be using that API Key. I think you should be using your own personal API key.
I also don’t understand the business model of the wttr.in site, and there is no IPR statement of any kind on the site, so I’d be wary of using that one.
You need to use preformatted text tags (the ‘</>’ thing in the icon bar when you enter a reply). Your snippet changed single quotes to whatever those funky quotes are called.
What does ‘;temperature.pl’ have to do with this?
What does 'awk -F’temp_f data="’ ‘{ print $2 }’' do?
What does 'awk -F’"/’ do?
It looks like you’re cutting and pasting random bits from other scripts without understanding what they do. If you stumble across something like rm --farce / please don’t do it.
A commercial offering, the Viking DVA-TNT, looks to be in the US$350 to $500 range. Wow.
A RaspberryPi ZeroW is only $10 ($30ish with case and wall wart – although who doesn’t have a box of phone charger blocks and micro-usb cables) and would be way more ‘featureful.’