Giter VIP home page Giter VIP logo

upair's Introduction

Up in the Air

Final Project for the WUR-course on Geo-Scripting (GRS-33806)

Team Maja - Simon Veen & Gijs Peters

This project harvests realtime flight data, creates flightpaths, and sets up a webserver for displaying this information realtime on a Leaflet surface.

It contains two apps, bot/app.py and map/app.py. The first starts up a harvesting bot for harvesting and processing aircraft data.

The second starts a Flask webserver hosting a Leaflet map for displaying these data near-realtime.

Install instructions

to install on a clean Ubuntu 16.04 machine, open your terminal, and execut the lines below:

mkdir git
cd git
git clone http://github.com/GBPeters/upair
cd upair
chmod +x install_upair.sh
./install_upair.sh

A PostgreSQL/PostGIS will be set up for local use, and required tables and roles will be created. Now, to start up the harvesting bot, use:

python bot/app.py opensky -i 50

This will start an OpenSky network harvester with harvest interval of 50 seconds

NOTE: setting this interval to less than 10 seconds will result in an IP-block.

If you have collected some data, fire up the webserver with

python map/app.py

Open your browser and surf to http://localhost:5000

If something goes wrong during installation, or you need help, feel free to contact us.

upair's People

Contributors

gbpeters avatar simonveen avatar

Stargazers

Alberto Labarga avatar

Watchers

James Cloos avatar

upair's Issues

"GET /static/flightmap.html HTTP/1.1" 404

For some reason when I try to start the Flask server, I get this error:

ubuntu@packer-ubuntu-16:~/userdata/upair/map$ python app.py 
 * Running on http://localhost:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [12/Feb/2017 17:12:28] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [12/Feb/2017 17:12:28] "GET /static/flightmap.html HTTP/1.1" 404 -
127.0.0.1 - - [12/Feb/2017 17:12:28] "GET /favicon.ico HTTP/1.1" 404 -

I tried to run it from the root (upair directory) and from map, and it still gives 404 errors, despite the file existing.

I could also get the file to display by running python -m SimpleHTTPServer 5000, but of course calls to /now don't work because of that, so no planes are displayed.

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.