A barely-adjusted version of https://github.com/veebch/doomed that runs on a Raspberry Pi Zero and shows a YouTube subscriber count on a 128 x 128 OLED screen (SSD1351). A bit niche, but really easy to remix it to show some numbers you care about.
git clone https://github.com/veebch/cassette
cd cassette
cp config_example.yaml config.yaml
Now you need to set up a YouTube API key that will allow you to use their API and pull your subsciption count. That key needs to be placed in the config.yaml
file along with your channel ID.
(If you want to access private youtube data, use oauth 2)
The screen is connected to the Pi Zero as follows:
OLED | GPIO | pin no. |
---|---|---|
VCC | 3.3V | 1 |
GND | GND | 6 |
MOSI/ DIN | 10 | 19 |
CLK | 23 | 23 |
CS | 8 | 24 |
DC | 24 | 18 |
RST | 25 | 22 |
To run the code that quaries the api and displays your number to the screen, issue the command:
python3 main.py
That's it!
GPL 3.0