Skip to main content

Unofficial Divoom pixoo REST library, beer not included.

Project description

PIXOO1664

Unofficial Divoom pixoo REST library, beer not included.

To install

pip install pixoo1664

To use:

from pixoo1664 import Pixoo

pixoo = Pixoo("192.168.16.64")

Text

To send text:

pixoo.send_text("Hello there !")

To clear text:

pixoo.clear_text()

Image

To create and send an image:

from PIL import Image, ImageDraw

img = Image.new("RGB", size=(64,64))

draw = ImageDraw.Draw(img)
draw.text(text="Who's the", xy=(3, 10), fill=(255, 43, 43, 255))
draw.text(text="BOSS NOW ??", xy=(3, 20), fill=(43, 255, 43, 255))
draw.line(xy=((0, 20), (64, 20)))

pixoo.send_image(img)

Send gif frames in one call (60ms btw frames)

# list of Image
pixoo.send_images(images, speed=60)

Brightness

Get brightness 0~100

pixoo.get_brightness() # -> 80

Set brightness 0~100

pixoo.set_brightness(90)

Set screen on/off

pixoo.set_screen(True)
pixoo.set_screen(False)

Time

Set system time

pixoo.set_system_time(1672416000)

Get system time

pixoo.get_system_time() # -> 1672416000

Set 24 hour mode (reset when the device power off)

pixoo.set_24_hour_mode(True)

Set 12 hour mode (reset when the device power off)

pixoo.set_24_hour_mode(False)

Temperature mode

Set temperature in Celsius

pixoo.set_temperature_in_celsius(True)

Set temperature in Fahrenheit

pixoo.set_temperature_in_celsius(False)

Screen rotation

Set rotation angle in degree 0, 90, 180 and 270

pixoo.set_rotation_angle(90)

Configuration

Get all settings (https://doc.divoom-gz.com/web/#/12?page_id=243)

pixoo.get_all_conf()
#   {
#     "Brightness":100,
#     "RotationFlag":1,
#     "ClockTime":60,
#     "GalleryTime":60,
#     "SingleGalleyTime":5,
#     "PowerOnChannelId":1,
#     "GalleryShowTimeFlag":1,
#     "CurClockId":1,
#     "Time24Flag":1,
#     "TemperatureMode":1,
#     "GyrateAngle":1,
#     "MirrorFlag":1,
#     "LightSwitch":1
#   }

Page

Set a timer

pixoo.set_timer(minute=1, second=3, start=True)

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

pixoo1664-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

pixoo1664-1.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pixoo1664-1.0.1.tar.gz.

File metadata

  • Download URL: pixoo1664-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pixoo1664-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c3161cc23530e4f55185d6e42060f4ba80cafe419f8138cdcbe222a09a86df8
MD5 f19f20e8333b5a9a387379f9d1dae3b2
BLAKE2b-256 64db8a0ed35929ce7b7895342dc48918d604e469ad4fd4f01cceb7739ec73cab

See more details on using hashes here.

File details

Details for the file pixoo1664-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pixoo1664-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pixoo1664-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab960b6c34fe22adf769e60fa2f0a961eb1533f288dbc26fa2067fe5d87f4559
MD5 e91b77eba6410c8f997b0dcc13bf3e82
BLAKE2b-256 55a0d88c9d4aed0195189d7795586ec5fcb17a8c8d1d7faca9b3bdfc82fc28fa

See more details on using hashes here.

Supported by

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