Skip to main content

Send SMS aircraft alerts based on ADS-B data

Project description

adsms

Send SMS aircraft alerts based on ADS-B data

Screenshot of text sent by adsms

Usage

Copy the configuration file, make any necessary changes, and run:

./adsms.py <configuration_file>

Configuration file

  • textbelt_key: your Textbelt API key
  • data: a URL to a readsb/tar1090 aircraft.json endpoint
  • tracker: a URL to a tar1090 tracker (e.g. https://globe.theairtraffic.com/)
  • database: an SQLite file in which to store subscriptions
  • pid_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 ignored
  • min_disappearance: the minimum time in seconds for which an aircraft must go "off the radar" before disappearing for new pings to trigger notifications again
  • delay: 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

adsms-0.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

adsms-0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file adsms-0.0.tar.gz.

File metadata

  • Download URL: adsms-0.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for adsms-0.0.tar.gz
Algorithm Hash digest
SHA256 6d30a126a2d0fd016c5e7500bf7d6f6206f956f17f2494350e26ebd2f1f2ac38
MD5 33bb881687884e6ab087cef2835f78bd
BLAKE2b-256 faf7940dc64cd90fd141b9e23c86e0c3d79aabe8b011034631325b8093d718a9

See more details on using hashes here.

File details

Details for the file adsms-0.0-py3-none-any.whl.

File metadata

  • Download URL: adsms-0.0-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

Hashes for adsms-0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4225361bebe7386fb9354e834bcb1aa66a7601fb5b3367ff2d64160d7f09cea
MD5 bb1ccbec0170e5c2b0748636b12ed269
BLAKE2b-256 de5e318d1ce15d08d5120f17545a245de520d46a72db2c0d39a5ef4f7d12a764

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page