Skip to content

Youtube livechat for Arduino Uno with LCD I2C display

License

Notifications You must be signed in to change notification settings

LukasDrsman/uno-yt-livechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uno-yt-livechat

Installation

Requirements:

  • arduino UNO
  • python3 with pip
    • pytchat
    • pyserial
    • unidecode
    • platformio

Install dependencies:

pip install pytchat pyserial unidecode --user
sudo pip install platformio

Clone:

git clone https://github.com/LukasDrsman/uno-yt-livechat.git
cd uno-yt-livechat

Configure:

uno/lib/config/config.h
  • address - i2c address
  • width - display width in characters per line
  • lines - number of lines of display
extern char address = 0x27;
extern int width = 16;
extern int lines = 2;
config-example.py
  • yt_chat_id - livestream id ( /watch?v=this string )
  • port - port to arduino uno
    • linux: /dev/ttyACMn
    • windows: COMn
  • chr_delay - length of time before new character appears on screen
  • chat_delay - length of time between messages
yt_chat_id = "7NOSDKb0HlU"
port = "/dev/ttyACM0"
chr_delay = 0.15
chat_delay = 2

Upload and install:

mv config-example.py config.py
./upload
sudo ./install

Usage

Connect display to uno:

preview

Run:

yt-livechat