This Bash script allows users to fetch METAR (Meteorological Aerodrome Report) data for a given airport using its ICAO code.
It then sends the result via SMS using a GSM-USB dongle.
Something like the Huawei E-3531, ZTE MF-627 or Huawei E392 for LTE.
-
Clone or Download the Repository: Click the green "Code" button and select "Download ZIP" to download the repository as a ZIP file. Extract the contents to a folder on your computer.
Alternatively, you can copy and paste the following commands into your terminal to download the script directly:
curl -O https://raw.githubusercontent.com/anthonyborriello/metar-sms/main/metar_sms.sh
-
Install gammu: Make sure you have gammu installed and configured for sending SMS. If you haven't installed gammu yet, you can do so by running the following command in your terminal:
sudo apt install gammu
-
Run the Script:
Linux/Raspberry Pi: Open Terminal and navigate to the folder where you extracted the repository. Then, execute the following commands to make the script executable and run it:
bash metar_sms.sh
-
Follow the Prompts: The script will prompt you to input the ICAO code of the airport and the destination phone number for SMS. Follow the prompts to enter the required information.
Thanks to aviationweather.gov for providing the METAR data used in this script.
This script is licensed under the MIT License.
Antonio Borriello antonioborriello.wordpress.com