Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ tingo Public archive

Light Control with Firebase Realtime Database

Notifications You must be signed in to change notification settings

RajatJacob/tingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tingo

AdaFruit NeoPixel controller for Raspberry Pi with MQTT

Prerequisites

  • A Raspberry Pi (Any model with internet connectivity)
  • The rpi_ws281x library by Jeremy Garff
  • NeoPixel compatible LEDs
  • An MQTT Broker (I would suggest Mosquitto)

Setup

  • Download and install the rpi_ws281x library
  • Download Tingo
    • Clone this repo: git clone https://github.com/RajatJacob/tingo.git
    • or dowload the source code of the latest release (.ZIP) or (.TAR.GZ).
cd tingo/
python setup.py
  • Enter the details of your MQTT broker.

    • IP Address/Hostname
    • Port
    • Username
    • Password
  • Enter the details of the client

    • Client ID
    • Device type (ws281x)
    • GPIO pin to contol
  • (Optional)

    • Create a global symlink of the bash script.
cd tingo/
sudo ln tingo /usr/bin/tingo

Usage

tingo {start|stop|restart|update}

  • tingo start
    • Start Tingo. (or create a new instance of Tingo - Not recommended)
  • tingo stop
    • Stop all running instances of Tingo.
  • tingo restart
    • Restart Tingo all stop all extra running instances.
  • tingo update
    • Get updates from GitHub and restart Tingo.