Stream Deck API Library
Project description
streamdeckapi
Stream Deck API Library for Home Assistant Stream Deck Integration
Only compatible with separate Stream Deck Plugin or the bundled server.
Server
This library also contains a server to use the streamdeck with Linux or without the official Stream Deck Software.
For this to work, the following software is required:
- LibUSB HIDAPI Installation instructions or Installation instructions
- cairo Installation instructions for Windows
Cairo Installation for Windows:
pip install pipwin
pipwin install cairocffi
Limitations
- Slow icon updates on Raspberry Pi Zero
- No
doubleTap
event
Installation on Linux / Raspberry Pi
Install requirements:
sudo apt install -y libudev-dev libusb-1.0-0-dev libhidapi-libusb0 libjpeg-dev zlib1g-dev libopenjp2-7 libtiff5 libgtk-3-dev python3-pip
Allow all users non-root access to Stream Deck Devices:
sudo tee /etc/udev/rules.d/10-streamdeck.rules << EOF
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fd9", GROUP="users", TAG+="uaccess"
EOF
Reload access rules:
sudo udevadm control --reload-rules
Install the package:
pip install streamdeckapi
Reboot your system
Start the server:
streamdeckapi-server
Example service
To run the server on startup, you can use the following config in the file /etc/systemd/system/streamdeckapi.service
:
[Unit]
Description=Stream Deck API Service
Wants=network-online.target
After=network.target
[Service]
WorkingDirectory=/home/pi
ExecStart=/home/pi/.local/bin/streamdeckapi-server
User=pi
StandardOutput=console
[Install]
WantedBy=multi-user.target
To start the service, run sudo systemctl start streamdeckapi.service
.
To enable the service, run sudo systemctl enable streamdeckapi.service
.
Project details
Release history Release notifications | RSS feed
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 streamdeckapi-0.0.9.tar.gz
.
File metadata
- Download URL: streamdeckapi-0.0.9.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276d4bb479218f94dce066d633acc4a0d184feb9c0d437442c67564ea2b302d3 |
|
MD5 | bc2b466191c8a30257e1247905716a18 |
|
BLAKE2b-256 | b269cb3bdf273df7c26f3bc672bcca4f12bf2b901fbc655a6211f8cbb15dda22 |
File details
Details for the file streamdeckapi-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: streamdeckapi-0.0.9-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1d4a704d75da2fb98a156aa99c77ca075f88c461008815209343e8ea94d95c |
|
MD5 | 98a7d4e5bb9b3d30bc31911c30d22abd |
|
BLAKE2b-256 | 9b9170d462b2b071edb3b5351dd0af0605b4f8559b762d74a79f79e6c0f303cb |