Skip to main content

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:

  1. Install the python package:
pip install pixelart-tracker

  1. Get your Youtube API KEY: Request an API KEY going here https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials

  2. Set env variables:

export SUBS_YOUTUBE_CHANNEL_ID=YOUR_YOUTUBE_CHANNEL_ID
export SUBS_YOUTUBE_API_KEY=YOUR_YOUTUBE_API_KEY

Usage:

  1. Scan for compatible devices:
pix-track --scan

  1. 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.

Metadata

Release files for pixelart-tracker 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixelart-tracker 0.1.4
File Size Uploaded
pixelart_tracker-0.1.4.tar.gz 24.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pixelart-tracker 0.1.4
File Interpreter ABI Platform
pixelart_tracker-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 24.2 MB

Release files / pixelart_tracker-0.1.4.tar.gz

Download URL pixelart_tracker-0.1.4.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
837b04223d8a207b47dd1e843e7d3f66e0854611bd2c9c0f101dcecdeaab4094
BLAKE2b-256 checksum
How to use checksums
679ff7562aaff122f1e0312181f669382b14a4186cbcf6aabcb5e2f275608e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Release files / pixelart_tracker-0.1.4-py3-none-any.whl

Download URL pixelart_tracker-0.1.4-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
317399108d56b9f21185a3af3b88e259c87e5d4530806535890d8147f7c0301f
BLAKE2b-256 checksum
How to use checksums
8df1e75533abc2113d76ce0f8e3a32c5208dbde5c3d14e0394d5840b7e7ae5f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page