GithubHelp home page GithubHelp logo

tryorfry / raspberry-pi-bus-timing-in-lcd Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.31 MB

Raspberry PI Singapore Bus Schedule Display in 16x2 LCD

Python 100.00%
raspberry-pi-4 lcd-raspberry-pi python3 singapore-bus-data

raspberry-pi-bus-timing-in-lcd's Introduction

Raspberry PI Singapore Bus Schedule Display in 16x2 LCD

Displays Bus Schedule for a bus stop in 16x2 LCD using Raspberry PI. This program uses Land Transport Singapore API to display the bus services available and next 3 bus arrival timings for a given bus stop in 16x2 LCD

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Raspberry Pi - I used Raspberry Pi 4 - but any pi should work fine
  • 16x2 LCD

Installing

Wire Raspberry Pi and 16x2 LCD - in 4 bit mode

  • Wire Raspberry Pi and 16x2 LCD - in 4 bit mode as shown above
lcd = CharLCD(cols=16, rows=2, pin_rs=37, pin_e=35, pins_data=[33, 31, 29, 23], numbering_mode=GPIO.BOARD)    
  • Clone this repo
  • Install the depended python3 modules in requirements.py file
  • Sign in Singapore LTA API to get the API token token
  • Set the token as the environment variable
export DATAMALL_API_KEY='<YOUR_API_KEY>'
  • Run the program:
python3 main.py 28091

Demo Image:

Showing Bus Timing

Built With

Authors

  • Sachin Dangol

raspberry-pi-bus-timing-in-lcd's People

Contributors

tryorfry avatar

Stargazers

 avatar  avatar

Watchers

 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.