GithubHelp home page GithubHelp logo

noncombatant / lastbart Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 36 KB

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

Home Page: https://lastbart.at

Makefile 3.45% Python 61.01% Mustache 35.54%
bart public-transit public-transportation

lastbart's Introduction

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/

lastbart's People

Contributors

jsha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.