• Stars
    star
    213
  • Rank 184,336 (Top 4 %)
  • Language
    Python
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python script to display replica real-time UK railway station departure screens for SSD13xx devices

UK train departure screen

Python script to display replica real-time UK railway station departure screens for SSD13xx devices

Sample output

Example output of the script

Requirements

To run this code, you will need Python 3.6+.

Raspbian

If you're using Raspbian Lite, you'll also need to install:

  • libopenjp2-7

with:

$ sudo apt-get install libopenjp2-7

Usage

  1. Clone this repo

  2. Install dependencies

$ pip install -r requirements.txt
  1. Sign up for the Transport API, and generate an app ID and API key

  2. Copy config.sample.json to config.json and complete the values, including your Transport API keys from step 3. Note: station names should be provided as their three-letter station code, all available here.

  3. Start the app with:

$ python ./src/main.py --display pygame --width 256 --height 64

Change the --display flag to alter the output mechanism (a list of options can be found in this README: https://github.com/rm-hull/luma.examples). Use capture to save to images, and pygame to run a visual emulator.

Remember to pass --interface spi if you are using SPI to communicate with your screen. Otherwise, the default of i2c should suffice.

$ python ./src/main.py --display ssd1322 --width 256 --height 64 --interface spi

Video demo

I've tweeted a video demo of the software running on a real device: https://twitter.com/chrishutchinson/status/1136743837244768257

Thanks

The fonts used were painstakingly put together by DanielHartUK and can be found on GitHub at https://github.com/DanielHartUK/Dot-Matrix-Typeface - A huge thanks for making that resource available!

More Repositories

1

cardkit

A simple, powerful and fully configurable image editor for web browsers and servers. Optional UI included.
JavaScript
726
star
2

twentysixteen-rr

A ReactJS web app that mirrors the look, feel, and functionality of the Twenty Sixteen WordPress theme.
JavaScript
169
star
3

ios-shortcuts-demos

JavaScript
45
star
4

quickQuote-times

A tool for journalists to easily find and add video quotes to news articles. Built by @pietrop on a Times Digital Development Summer Internship.
JavaScript
35
star
5

reactpress

A React WordPress theme using the WP REST API
JavaScript
19
star
6

wp-multi-outputs

A plugin that provides a framework for multiple output formats on WordPress
PHP
15
star
7

train-delay-logger

A simple Rust command-line app for logging delayed trains (> 15 minutes) between two stations
Rust
10
star
8

sir-trevor-generator

A generator for Sir Trevor JS blocks
JavaScript
10
star
9

christmas-tree-painter

🎄 Festive Christmas tree decoration with Node.js, TypeScript and WS281x lights
TypeScript
10
star
10

slack-testing-library

A mock server and library for testing interactive Slack apps
TypeScript
7
star
11

emojipinions-wordpress

Emoji reactions / opinions for WordPress
PHP
6
star
12

talk-react-testing-library

Test like you mean it with React Testing Library
TypeScript
5
star
13

air-quality-alexa-skill

Alexa Skill for the UK Defra air quality index
JavaScript
4
star
14

soil-moisture-sensor-python

Python script for reading value of an analog soil moisture sensor via an MCP3008 and Raspberry Pi
Python
3
star
15

microsoft-todo-rss

Turn your Microsoft To Do lists into RSS feeds
TypeScript
3
star
16

acf-field-sir-trevor-js

An Advanced Custom Fields field for Sir Trevor JS
PHP
2
star
17

realthyme

First time Node.js / Mongo / Express project: to develop a real-time voting web app in a weekend (April 18th - 20th 2014).
JavaScript
2
star
18

sir-christopher-js

Custom Sir Trevor blocks
JavaScript
2
star
19

electronics-resources

Tutorials, events, software, hardware and reading material for getting started in electronics + IoT
2
star
20

react-async-status

A simple React hook for managing the status of an async action and an associated message
TypeScript
1
star
21

til

Today I learned
1
star
22

scriptornoscript

Script or No Script - A simple guessing game for JavaScript scripts, libraries and frameworks
JavaScript
1
star
23

alexa-serverless-template

A Node.js template for building Alexa skills with Serverless
JavaScript
1
star
24

site

A Next.js site for all my projects and published content
TypeScript
1
star
25

themeconf

A talk about using the WordPress REST API with Advanced Custom Fields and WordPress
JavaScript
1
star