pixelart-tracker


Namepixelart-tracker JSON
Version 0.1.4 PyPI version JSON
download
home_pageNone
SummaryShow YouTube subscribers and Crypto-currency tracking on an iDotMatrix 32x32 pixels screen
upload_time2024-09-02 17:18:15
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT License Copyright (c) 2024 nesitor Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords bluetooth idotmatrix nesitor statistics subscribers youtube
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ### 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

```

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

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

```

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pixelart-tracker",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "\"Andres D. Molins\" <amolinsdiaz@yahoo.es>",
    "keywords": "bluetooth, idotmatrix, nesitor, statistics, subscribers, youtube",
    "author": null,
    "author_email": "\"Andres D. Molins\" <amolinsdiaz@yahoo.es>",
    "download_url": "https://files.pythonhosted.org/packages/67/9f/f7562aaff122f1e0312181f669382b14a4186cbcf6aabcb5e2f275608e75/pixelart_tracker-0.1.4.tar.gz",
    "platform": null,
    "description": "### iDotMatrix YouTube Subscriber Counter\n\nThis project uses Python to display the number of subscribers of a YouTube channel on a 32px by 32px iDotMatrix-style pixel art screen.\n\n**Dependencies:**\n\n-   Python 3.x\n-   asyncio\n-   aiohttp\n-   PIL (Pillow) 10.x\n-   idotmatrix 0.0.4\n-   PyDantic 1.10.x\n\n**Installation:**\n\n1.  Install the python package:\n\n```\npip install pixelart-tracker\n\n```\n\n2.  Get your Youtube API KEY:\nRequest an API KEY going here https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials\n\n3.  Set env variables:\n\n```\nexport SUBS_YOUTUBE_CHANNEL_ID=YOUR_YOUTUBE_CHANNEL_ID\nexport SUBS_YOUTUBE_API_KEY=YOUR_YOUTUBE_API_KEY\n\n```\n\n\n**Usage:**\n\n1.  Scan for compatible devices:\n\n```\npix-track --scan\n\n```\n\n2.  Run on device:\n\n```\npix-track --address <device_mac_address>/auto\n\n```\n\nWhere `<device_mac_address>` is the device physical address or `auto` is to autodiscover devices and use the first one found.\n\n**Example:**\n\n```\npix-track --address 37:D4:98:8F:2B:C8\n\n```\n\n**Code Explanation:**\n\n-   The script uses the `aiohttp` library to get the YouTube channel information.\n-   The channel information is parsed into a dictionary.\n-   The subscriber count is extracted from the dictionary.\n-   The subscriber count is converted to a pixel readable string.\n-   The string is converted to a character array.\n-   The character array is used to create a pixel art image.\n-   The pixel art image is displayed on the screen.\n\n**Technical Details:**\n\n-   The iDotMatrix display is simulated using the `PIL (Pillow)` library.\n-   The total screen size is 32px by 32px pixels.\n-   The pixels are colored always white for the characters.\n-   The pixel art image is scaled to fit the screen.\n\n**License:**\n\nThis project is licensed under the MIT license.\n\n**Contributions:**\n\nContributions to this project are welcome. Create an issue or pull request on GitHub to get started.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 nesitor  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Show YouTube subscribers and Crypto-currency tracking on an iDotMatrix 32x32 pixels screen",
    "version": "0.1.4",
    "project_urls": {
        "Homepage": "https://andresmolins.dev",
        "Source": "https://github.com/nesitor/pixelart-tracker"
    },
    "split_keywords": [
        "bluetooth",
        " idotmatrix",
        " nesitor",
        " statistics",
        " subscribers",
        " youtube"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8df1e75533abc2113d76ce0f8e3a32c5208dbde5c3d14e0394d5840b7e7ae5f0",
                "md5": "c446084ea0c6eeb7abaaa138bf753df6",
                "sha256": "317399108d56b9f21185a3af3b88e259c87e5d4530806535890d8147f7c0301f"
            },
            "downloads": -1,
            "filename": "pixelart_tracker-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c446084ea0c6eeb7abaaa138bf753df6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 15707,
            "upload_time": "2024-09-02T17:18:00",
            "upload_time_iso_8601": "2024-09-02T17:18:00.761484Z",
            "url": "https://files.pythonhosted.org/packages/8d/f1/e75533abc2113d76ce0f8e3a32c5208dbde5c3d14e0394d5840b7e7ae5f0/pixelart_tracker-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "679ff7562aaff122f1e0312181f669382b14a4186cbcf6aabcb5e2f275608e75",
                "md5": "b7c8a9f431ed393213e77441d5c98225",
                "sha256": "837b04223d8a207b47dd1e843e7d3f66e0854611bd2c9c0f101dcecdeaab4094"
            },
            "downloads": -1,
            "filename": "pixelart_tracker-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b7c8a9f431ed393213e77441d5c98225",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 24196081,
            "upload_time": "2024-09-02T17:18:15",
            "upload_time_iso_8601": "2024-09-02T17:18:15.845167Z",
            "url": "https://files.pythonhosted.org/packages/67/9f/f7562aaff122f1e0312181f669382b14a4186cbcf6aabcb5e2f275608e75/pixelart_tracker-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-02 17:18:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nesitor",
    "github_project": "pixelart-tracker",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pixelart-tracker"
}
        
Elapsed time: 1.08537s