This C# code supports being integrated to an Azure Function as a compiled library. Trigger it from Slack and use one of the following two Slack slash commands:
/metar
or /flightstatus
Use like this:
/metar MEL
to get the weather for the airport IATA Code "MEL" (Melbourne Tullamarine/Australia).
/metar YMML
to get the weather for the airport ICAO Code "YMML" (Melbourne Tullamarine/Australia).
/flightstatus QF400
to get the next flight (between NOW and 24hrs) for QF (Qantas) flight 400.
One needs a flightaware user id and API key added to the Azure Functions environment in order for the code to be able to authenticate against FlightAware.