Giter VIP home page Giter VIP logo

nimbus's Introduction

nimbus

Display bus arrival times on a Raspberry Pi with an e-ink screen.

The display shows up to three upcoming buses for a stop. Touching the display cycles through different stops.

Photo of nimbus running

Hardware

This is inteded for use with:

The e-Paper HAT is available with a case from The Pi Hut.

Set-Up

Image the SD Card for the Raspberry Pi Zero 2 W with Rasperry Pi OS Lite (64-bit) using the Raspberry Pi Imager. Use the settings in the imager to set hostname, enable SSH and specifiy the wi-fi password.

One the Pi has booted, login via SSH and configure the Raspberry PI to work with the e-Paper HAT:

  • Run sudo raspi-config
  • Select Interface Options โ†’ SPI and select Yes to enable.
  • Select Interface Options โ†’ I2C and select Yes to enable.
  • Use Finish to exit the configuration tool.
  • Reboot.

Install gitand then clone this repository:

sudo apt-get install -y git
git clone https://github.com/davweb/nimbus.git

Run the set up script to install the required dependencies:

cd nimbus
./setup.sh

Running

Firstly get the IDs of the bus stops you want to display from here. The IDs will be a list of letters like oxfamjma.

Run the module passing in bus stop IDs as arguments:

source .venv/bin/activate
python -m nimbus oxfamjma oxfgwajm

The script runs continuously as it needs to monitor the touch screen.

The easiest way to run at boot is to schedule a script that sources the virtual environment and runs the script. For example, a script would look like:

#!/usr/bin/bash

cd /home/pi/nimbus
source .venv/bin/activate
python -m nimbus oxfamjma oxfgwajm >nimbus.out 2>&1

Schedule it with cron with the following crontab entry:

@reboot /home/pi/run-nimbus.sh

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.