Skip to main content

Asynchronous Python library for Divoom Pixoo64 LED display

Project description

AioPixooAPI

A Python library for interacting with Divoom Pixoo devices and the Divoom online API.

Installation

Install the library using pip:

pip install aiopixooapi

Usage

Pixoo64 (Device API)

The Pixoo64 class is used to interact with a Pixoo64 device on your local network.

import asyncio
from aiopixooapi.pixoo64 import Pixoo64

async def main():
    async with Pixoo64("192.168.1.100") as pixoo:
        # Reboot the device
        response = await pixoo.sys_reboot()
        print(response)

        # Get all settings
        settings = await pixoo.get_all_settings()
        print(settings)

asyncio.run(main())

Divoom (Online API)

The Divoom class is used to interact with the Divoom online API.

import asyncio
from aiopixooapi.divoom import Divoom

async def main():
    async with Divoom() as divoom:
        # Get dial types
        dial_types = await divoom.get_dial_type()
        print(dial_types)

        # Get dial list for a specific type and page
        dial_list = await divoom.get_dial_list("Social", 1)
        print(dial_list)

asyncio.run(main())

Development

Setup

To set up the development environment, clone the repository, create a virtual environment and install the required packages

pip install -e .
pip install -e .[test]

Running Tests

To run the tests using pytest, execute:

pytest

Or to run tests in a specific file:

pytest tests/test_pixoo64.py

Documentation

http://docin.divoom-gz.com/web/#/5/23

Sources used

Divoom

That gives us:

Where the contact page:

Send us to

OLDER REFERENCES

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.

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

aiopixooapi-0.2.1.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiopixooapi-0.2.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file aiopixooapi-0.2.1.tar.gz.

File metadata

  • Download URL: aiopixooapi-0.2.1.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiopixooapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ef7db573eefc080784404583573b066fddcafe031bbfe52d36242dd56a7c28c9
MD5 6ead8c393012f38fbba0a01d89896302
BLAKE2b-256 73100a8993ca9e5f681c502bff3b0d8186397b417a590a433f9bbdba2825b53a

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopixooapi-0.2.1.tar.gz:

Publisher: python-publish.yml on KoenDierckx/aiopixooapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiopixooapi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: aiopixooapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiopixooapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3e3426df7da5b9f0fde95eb0bb3f9b8342ab809d768615ae10ad2e1cf4cfb6
MD5 c76d1e356fa89e0ddbdc754005b489a1
BLAKE2b-256 245a28b0bd18e5f534475ab8b39411288277675c9477e667fea81a9a6e89e3b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiopixooapi-0.2.1-py3-none-any.whl:

Publisher: python-publish.yml on KoenDierckx/aiopixooapi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page