Send SMS aircraft alerts based on ADS-B data
Project description
adsms
Send SMS aircraft alerts based on ADS-B data
Usage
Copy the configuration file, make any necessary changes, and run:
./adsms.py <configuration_file>
Configuration file
textbelt_key
: your Textbelt API keydata
: a URL to a readsb/tar1090aircraft.json
endpointtracker
: a URL to a tar1090 tracker (e.g. https://globe.theairtraffic.com/)database
: an SQLite file in which to store subscriptionspid_file
: path to which to write the PID (set to empty string to not write a PID file)max_age
: maximum age of aircraft pings in seconds; pings older than this will be ignoredmin_disappearance
: the minimum time in seconds for which an aircraft must go "off the radar" before disappearing for new pings to trigger notifications againdelay
: time to wait after processing all rules before running the loop again
Database Schema
adsms
uses a SQLite database to store subscriptions and information about tracked aircraft. Currently, the only table is subscriptions
.
subscriptions
The subscriptions
table has the following columns:
Column Name | Data Type | Description |
---|---|---|
rowid |
INTEGER | Unique identifier for the subscription. |
phone |
TEXT | Phone number to receive notifications for this subscription. |
icao |
TEXT | ICAO address of the aircraft to track. |
description |
TEXT | Description of the aircraft being tracked. |
last_seen |
INTEGER | Timestamp of the last time this aircraft was seen by the system. |
This table stores information about each subscription, including the phone number to send notifications to, the ICAO address of the aircraft to track, a description of the aircraft, and the last time it was seen by the system.
Use of ChatGPT
Portions of both this README and the adsms
code have been partially written with ChatGPT.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adsms-0.2.tar.gz
.
File metadata
- Download URL: adsms-0.2.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22cd5ce63a1630c0df8463802299f0a1118021f3ee094d321fe0fc62d916ce7 |
|
MD5 | bf4d8575b52a72ea7242a623987f2f5a |
|
BLAKE2b-256 | 18d1f7d56a7e9de4be99f2b93a13b718d1e8f324ba6abc985fb24e1c9521e2c1 |
File details
Details for the file adsms-0.2-py3-none-any.whl
.
File metadata
- Download URL: adsms-0.2-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230c4637822f826d5d3fcd75d9545824d040d9301e09ac9bb33560e15947622e |
|
MD5 | 62ae99938adc80258f1dc8e3920ce63b |
|
BLAKE2b-256 | 99d6c7eff48fa3fbcb3b260377db469ca818f83e8217915260208b7b00f0b787 |