Skip to content
Snippets Groups Projects
Commit a2aedfac authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Readme updates.

parent cfd3b6f1
No related branches found
No related tags found
No related merge requests found
# BusMap.py # PyBusMap
BusMap is a real-time map of public transit vehicle locations. It's written in Python 3.4 with [Flask](http://flask.pocoo.org/). PyBusMap is a real-time map of public transit vehicle locations for any agency that uses
Nextbus vehicle trackers. You can see it live at [rutge.rs](http://rutge.rs).
It's written in Python 3 with [Flask](http://flask.pocoo.org/) and [SQLAlchemy](http://www.sqlalchemy.org/).
It uses [Celery](http://www.celeryproject.org/) and [requests-futures](https://github.com/ross/requests-futures)
to get real-time data from [NextBus](https://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf)
at regular intervals. That is collected in a PostgreSQL database, and displayed
on a [Leaflet](http://leafletjs.com/) map.
## Status ## Status
This project is not yet in a usable state. So far it is capable of: fetching (some) data from Nextbus on regular intervals. This project is at v1. It is a feature-complete rewrite of the original
That is not very useful by itself, as it just provides a local cache of Nextbus data. A front-end/UI is coming next, which will make use of the data. [PHP version](https://git.xhost.io/anton/bus-map). There are a few features
planned, like route planning (directions to a place) and maybe a native
mobile app (some day). **Feature [suggestions](https://ant.sr/contact) are welcome!**
## Setup ## Setup for Development
- Install system-wide dependencies - Install system-wide dependencies
`sudo apt-get install python python-pip python-virtualenv libxml2-dev libxsl-dev` `sudo apt-get install python python-pip python-virtualenv libxml2-dev libxsl-dev`
- Create and/or activate your virtualenv - Create and/or activate your virtualenv
...@@ -52,4 +61,7 @@ Here's a sample uWSGI config for this application: ...@@ -52,4 +61,7 @@ Here's a sample uWSGI config for this application:
# Worker behavior # Worker behavior
die-on-term = true die-on-term = true
vacuum = true vacuum = true
smart-attach-daemon = /tmp/pybusmap-celery.pid %(home)/bin/celery -A celerytasks.celery worker --beat --pidfile=/tmp/pybusmap-celery.pid --logfile=%(base)/log/celery/%n.log smart-attach-daemon = /tmp/pybusmap-celery.pid %(home)/bin/celery -A celerytasks.celery worker --beat --pidfile=/tmp/pybusmap-celery.pid --logfile=%(base)/log/celery/%n.log
\ No newline at end of file
## License
PyBusMap is MIT-licensed. Please use/fork/share it. Contributions are welcome.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment