Git Product home page Git Product logo

gourcetools / nostrairtracker Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 2.0 2.9 MB

Aka elonjet | The application allows users to monitor the position, speed, and altitude of specified aircraft, then determine his status and publish accordingly to the Nostr Network.

Home Page: https://nostr.band/npub1qqqqpza762tx3vjrxt7f94eyxej6z4h5yx4hlvy0mnq7r085hsfqtfyr5n

License: MIT License

Shell 28.20% JavaScript 55.41% Python 16.39%
aircraft elonjet nostr ads-b adsb adsbexchange adsbexchange-stats airport icao land

nostrairtracker's Introduction

NostrAirTracker


The application allows users to monitor a specified aircraft.
Determine his status & publish accordingly to Nostr.
No API keys needed. Simple setup.

✔️ How to use NostrAirTracker?

 git clone https://github.com/gourcetools/NostrAirTracker
 cd ./NostrAirTracker
 ./INSTALL.sh
 ./SETUP.sh
 ./START-CRAWLER.sh

And if you want to publish stuff to nostr, run

 ./START-PUBLISHER.sh

image

NostrAirTracker
├── config
│ ├── ICAO-ID.txt ICAO id that we will track
│   ├── NOSTR-HEX-PRIVKEY.txt nostr key that we will use to publish
│   └── PUP-BROWSER-LOCATION.txt path to the browser Puppeteer will use to crawl
├── data
│   └── airports.dat airports locations used to determine where the plane is
├── INSTALL.sh script to install node and python stuff
├── SETUP.sh script to setup ICAO-ID, PRIVKEY and BROSWER LOCATION
├── src
│   ├── combine.py script to combine screenshots
│   ├── crawled-position-to-airport.py script to convert position to airport name
│   ├── crawl-position.js script to crawl position
│   ├── crawl-speed-altitude-loop.js MAIN SCRIPT to to crawl data and determine plane status
│   ├── nostr-publish-loop.sh PUBLISHING SCRIPT that publish when status change
│   └── screenshot.js script to take 2 screenshoots: one far away, one zoomed in
├── START-CRAWLER.sh script to start the main crawler loop quickly.
└── START-PUBLISHER.sh script to start the main publisher loop quickly.

Done:

  • 📡 Crawl: - Speed - Altitude - LastSeen - LAT & LONG (Position)
  • 🧠 Determine: - Plane status based on last data and freshly crawled data. - Airport name based on LAT & LONG
  • 📢 Send status update to nostr network. | `KIND: 1
  • 📷 Take screenshoots.
  • Post screenshoots with status update.

Todo:

  • Simple shell Menu.
  • Use tor for crawling to avoid being blocked in the future.
  • Remove completely nostr-publisher.sh and put it inside the main loop with settings in the main menu for publishing.
  • Shell menu.
  • Support for more relays, import relays list from a file in config folder instead of hardcoded variables.

Problems:

  • Written by me.

⚙️ Requirements:


🙋‍♂️ Need help?

Nostr:

hex:

0000005cc4586681ad8e7f4b75436fb7904b0e34ff072bb3406ddb90226d7eab 

npub:

npub1qqqqqhxytpngrtvw0a9h2sm0k7gykr35lurjhv6qdhdeqgnd064swghgx4 

nip05:

nostrairtracker's People

Contributors

gourcetools avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nostrairtracker's Issues

Status not being updated when no signal in flight.

The problem is that if the plane is Flying and goes offline but is still above 2000ft, the status will not be updated properly.
The solution is to re-think the whole thing with all possible data we can check for, and think of a new way to update status...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.