Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scottchiefbaker/arduino-kodi-elapsed

Arduino interface to show elapsed time
https://github.com/scottchiefbaker/arduino-kodi-elapsed

Last synced: 26 days ago
JSON representation

Arduino interface to show elapsed time

Awesome Lists containing this project

README

        

# Kodi Elapsed/Remaining Time display

Use an Arduino and an LED Matrix to show the elapsed or remaining time for
Kodi. Now your Kodi installation can look just like and old DVD player.

## Requirements

* Kodi installation with the HTTP API enabled
* 32x8 LED Matrix or TM1637 seven segment "clock" display
* Arduino to drive the LED Matrix
* Tested on: Arduino Nano, ESP8266, and ESP32
* Perl or Python installed to read data from Kodi and send data to Arduino
* Arduino connected to the RPi via USB (for serial connectivity)

## Installation

* Install sketch on Arduino Nano
* Wire LED Matrix to Arduino Nano
* DIN => Pin #13
* CLK => Pin #11
* CS => Pin #9
* Run Perl script to read Kodi API and send time to display
* `systemd` service script provided to automate startup

## Screenshots

## Testing

Once your Arduino and display are connected you can test output with the
following commands:

* run `kodi-led-service.pl --test`
* `echo "<1236:2860:Play>" > /dev/ttyUSB0`
* (Only works after display is running)

## Commands

You can send serial commands to the Arduino that affect the display. While the
display is running and displaying time you can send commands:

* Show time remaining
* `echo "" > /dev/ttyUSB0`
* Show time elapsed:
* `echo "" > /dev/ttyUSB0`
* Set display intensity 0-9:
* `echo "" > /dev/ttyUSB0`