Skip to content
Прогноз прибытия автобусов в Воронеже. Веб-версия: https://vrnbus.herokuapp.com Телеграм-бот: https://t.me/vrnbusbot
Python JavaScript HTML CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
alembic/versions Add Alembic migrations Oct 8, 2019
docs Create index.html Feb 21, 2018
fe Switch between old and new routes Nov 12, 2019
libs Move shared library to libs Feb 3, 2019
.gitignore Save edges for routes (only in online yet) Aug 9, 2019
CNAME Create CNAME Jun 13, 2019
Pipfile Dirty prototype for route editing Oct 7, 2019
Pipfile.lock Dirty prototype for route editing Oct 7, 2019
Procfile Add 'frontend' and 'webserver' (tornado). Change type to web Jan 24, 2018
README.md Update documentation Mar 22, 2018
abuse_checker.py Change order for abuse checks Mar 25, 2019
alembic_dev.ini Dirty prototype for route editing Oct 7, 2019
bus_routes_codd.json Add bus icons (without moving yet) Jan 30, 2018
bus_stops.json Update data for tests Oct 30, 2018
cds.py Load new routes from DB more often Oct 31, 2019
data_processors.py Load new routes from DB more often Oct 31, 2019
data_providers.py Don't show removed bus routes Oct 30, 2019
data_types.py Editing for new routes Oct 30, 2019
db.py Dirty prototype for route editing Oct 7, 2019
fotobus_scrapper.py Fotobus link fix Nov 3, 2019
helpers.py Filtering for multiple bus numbers Sep 5, 2019
index.html Just test for GitHub Pages Jun 13, 2019
main.py Don't send text data in mobile response Aug 29, 2019
models.py Dirty prototype for route editing Oct 7, 2019
runtime.txt Add stub for analytics (on map.js only) Oct 6, 2019
save_test_data.py Test for equal routes on near bus stops Mar 25, 2018
settings.py.tmpl Dirty prototype for route editing Oct 7, 2019
test_cds.py Editing for new routes Oct 30, 2019
test_data.7z Add mocked data Feb 11, 2018
test_helpers.py Fix some flake8 warnings Jun 19, 2018
test_tracking.py Fix some flake8 warnings Jun 19, 2018
tgbot.py Add /stats text to /stats response in Tg Sep 6, 2019
tox.ini Add flake8 settings Feb 7, 2018
tracking.py Use WebEvent.WEB_SITE Oct 7, 2019
website.py Edit routes allowed only for 'registered' users, show error on editin… Nov 1, 2019

README.md

vrnbus

Прогноз прибытия автобусов в Воронеже. Веб-версия: https://vrnbus.herokuapp.com Телеграм-бот: https://t.me/vrnbusbot

Техническое

Front-end: чистый JavaScript и поддержка fetch/promises для старых браузеров

Back-end: Python 3.6 (cachetools, fdb, python-telegram-bot, pytz, tornado)

Видео о проекте

https://www.youtube.com/watch?v=1OtHwGqSL04

Установка

  • Установить Python 3.6 или новее
  • pip install -r requirements.txt
  • Распаковать test_data.7z в каталог test_data
  • Создать Телеграм-бота для тестов с помощью бота @BotFather и получить его токен
  • Указать токен в settings.py или в переменной окружения VRNBUSBOT_TOKEN
  • Запустить main.py и открыть http://localhost:8080.
You can’t perform that action at this time.