Skip to content

A Python library that aggregates news from various sources and publishes them to a rolling ticker tape.

Notifications You must be signed in to change notification settings

alexlukelevy/ticker-tape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticker Tape

A Python library for Raspberry Pi that aggregates news from various sources and publishes them to a rolling LED ticker tape.

Setup

To get started you will need to first ensure you have Python 2.7 and then install the following python libraries:

Once those are installed and you have a working Python 2.7 installation you are good to go.

Running

To run Ticker Tape, execute the following from within the tickertape directory

$ sudo python tickertape.py

By default, this will schedule the FeedHandlers to refresh every 5 minutes and will leave the Reporter running indefinitely.

Design

The library consists on four key components; FeedHandlers, the Reporter, the Tape and the Director.

FeedHandlers

A FeedHandler consumes news events from a given source (e.g. BBC) and publishes FeedEvents to the Reporter.

Reporter

The Reporter is responsible for keeping track of all the latest FeedEvents from various sources and reporting the events to the Tape when requested.

Tape

The Tape represents the LED matrix and contains the logic to convert a string to an LED output.

Director

The Director oversees the whole operation and coordinates the threads of the FeedHandlers and the Reporter.

Setup

This library makes use of the Raspberry Pi LED matrix project from hzeller.

Please follow the wiring instructions found on that project to configure the LED matrix appropriately.

About

A Python library that aggregates news from various sources and publishes them to a rolling ticker tape.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages