Show YouTube subscribers and Crypto-currency tracking on an iDotMatrix 32x32 pixels screen
Project description
iDotMatrix YouTube Subscriber Counter
This project uses Python to display the number of subscribers of a YouTube channel on a 32px by 32px iDotMatrix-style pixel art screen.
Dependencies:
- Python 3.x
- asyncio
- aiohttp
- PIL (Pillow) 10.x
- idotmatrix 0.0.4
- PyDantic 1.10.x
Installation:
- Install the python package:
pip install pixelart-tracker
-
Get your Youtube API KEY: Request an API KEY going here https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials
-
Set env variables:
export SUBS_YOUTUBE_CHANNEL_ID=YOUR_YOUTUBE_CHANNEL_ID
export SUBS_YOUTUBE_API_KEY=YOUR_YOUTUBE_API_KEY
Usage:
- Scan for compatible devices:
pix-track --scan
- Run on device:
pix-track --address <device_mac_address>/auto
Where <device_mac_address>
is the device physical address or auto
is to autodiscover devices and use the first one found.
Example:
pix-track --address 37:D4:98:8F:2B:C8
Code Explanation:
- The script uses the
aiohttp
library to get the YouTube channel information. - The channel information is parsed into a dictionary.
- The subscriber count is extracted from the dictionary.
- The subscriber count is converted to a pixel readable string.
- The string is converted to a character array.
- The character array is used to create a pixel art image.
- The pixel art image is displayed on the screen.
Technical Details:
- The iDotMatrix display is simulated using the
PIL (Pillow)
library. - The total screen size is 32px by 32px pixels.
- The pixels are colored always white for the characters.
- The pixel art image is scaled to fit the screen.
License:
This project is licensed under the MIT license.
Contributions:
Contributions to this project are welcome. Create an issue or pull request on GitHub to get started.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pixelart_tracker-0.1.3.tar.gz
.
File metadata
- Download URL: pixelart_tracker-0.1.3.tar.gz
- Upload date:
- Size: 24.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d88d4fec34eb65b014cfa1ee7bff1e1bc15b6b2d28ddfad1ed3e9e1b1c97b942 |
|
MD5 | eb24bd8651cedef35df6c5a22e5a3f68 |
|
BLAKE2b-256 | cc1551c92ac0a73e8c6534c86b40be65fd89cda6be9a641fe12b9dd0d3e29356 |
File details
Details for the file pixelart_tracker-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pixelart_tracker-0.1.3-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9da9fe932998c91d6549c31928cbe1ffc84f55c69e23fbf860121bdefb1671e |
|
MD5 | 471bcddd8fccf2fdbcd52c6bacb5621e |
|
BLAKE2b-256 | 2a7426a3e1501107bd172d5041a5bdc9aec08916205b8e503a11146d6a37f066 |