Hey guys,
I need some help with something I am working for our Teamspeak server. I am still very new to scripting and have been reading through the scripting documentation but I'm not sure exactly how to write a script that will extract a text for example from a website and send it when a command is used. This is for a flight simulation enthusiasts ts3 server and essentially we want the command to pull the latest weather report in the form of whats called a METAR/TAF.
Here a list of websites (all have the same information) and example wether information for Warsaw airport (the airport code is EPWA:
https://www.aviationweather.gov/add...hk_tafs=on&chk_metars=on&std_trans=translated
https://www.rocketroute.com/airports/europe-eu/poland-pl/metar-warsawchopinairport-epwa.html
https://www.checkwx.com/weather/EPWA/metar
https://en.allmetsat.com/metar-taf/poland.php?icao=EPWA
Now from any of these Websites, when I type the command ( !metar EPWA ) I want this to give me this text which gets updated on the websites every hour
METAR: EPWA 151230Z 18008KT 150V210 CAVOK 06/M12 Q1029 NOSIG.
If anyone would be able to assist me on this or direct me to tutorial/script that shows something similar to this I would appreciate a lot.
I need some help with something I am working for our Teamspeak server. I am still very new to scripting and have been reading through the scripting documentation but I'm not sure exactly how to write a script that will extract a text for example from a website and send it when a command is used. This is for a flight simulation enthusiasts ts3 server and essentially we want the command to pull the latest weather report in the form of whats called a METAR/TAF.
Here a list of websites (all have the same information) and example wether information for Warsaw airport (the airport code is EPWA:
https://www.aviationweather.gov/add...hk_tafs=on&chk_metars=on&std_trans=translated
https://www.rocketroute.com/airports/europe-eu/poland-pl/metar-warsawchopinairport-epwa.html
https://www.checkwx.com/weather/EPWA/metar
https://en.allmetsat.com/metar-taf/poland.php?icao=EPWA
Now from any of these Websites, when I type the command ( !metar EPWA ) I want this to give me this text which gets updated on the websites every hour
METAR: EPWA 151230Z 18008KT 150V210 CAVOK 06/M12 Q1029 NOSIG.
If anyone would be able to assist me on this or direct me to tutorial/script that shows something similar to this I would appreciate a lot.