noncombatant / lastbart

Web site to display the departure time for the last BART train of the evening.

Home Page:https://lastbart.at

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lastbart

Lastbart is a simple web site to show the last departure times of the day for each Bay Area Rapid Transit (BART) stop.

Using Python, Lastbart generates static HTML files that you can serve from any web server.

You can see a live version on the web at lastbart.at.

Installation

These steps assume a Debian- or Ubuntu-like Linux system — anything with apt. On other systems, there will likely be a similar package manager that works in a similar way.

Install Python 3 and the Python libraries we need:

$ sudo apt install python3-pip
$ pip3 install --user pystache
$ pip3 install --user gtfsdb

Then download lastbart and build the HTML files:

$ git clone https://github.com/jsha/lastbart
$ cd lastbart
$ PATH="$HOME/.local/bin:$PATH" make

To view the output, you can load them as files in your browser:

$ firefox html/index.html

or serve them with Python’s simple HTTP server:

$ PATH="$HOME/.local/bin:$PATH" make serve
$ firefox http://127.0.0.1:8000/

About

Web site to display the departure time for the last BART train of the evening.

https://lastbart.at


Languages

Language:Python 61.0%Language:Mustache 35.5%Language:Makefile 3.4%