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

https://github.com/lukasdrsman/uno-yt-livechat

Youtube livechat for Arduino Uno with LCD I2C display
https://github.com/lukasdrsman/uno-yt-livechat

arduino arduino-uno lcd lcd16x2 live-streaming livechat platformio python python3 youtube youtube-livestream

Last synced: about 2 months ago
JSON representation

Youtube livechat for Arduino Uno with LCD I2C display

Awesome Lists containing this project

README

          

# uno-yt-livechat
## Installation
#### Requirements:
* arduino UNO
* python3 with pip
* pytchat
* pyserial
* unidecode
* platformio

#### Install dependencies:
```sh
pip install pytchat pyserial unidecode --user
sudo pip install platformio
```
#### Clone:
```sh
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
```c
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/ttyACM*n*
* windows: COM*n*
* chr_delay - length of time before new character appears on screen
* chat_delay - length of time between messages
```python
yt_chat_id = "7NOSDKb0HlU"
port = "/dev/ttyACM0"
chr_delay = 0.15
chat_delay = 2
```

#### Upload and install:
```sh
mv config-example.py config.py
./upload
sudo ./install
```
## Usage
#### Connect display to uno:
![preview](https://github.com/LukasDrsman/uno-yt-livechat/blob/master/uno/lcd_diagram.png)


#### Run:
```sh
yt-livechat
```