Metadata-Version: 2.1
Name: streamdeckapi
Version: 0.0.6
Summary: Stream Deck API Library
Home-page: https://github.com/Patrick762/streamdeckapi
Author: Patrick762
Author-email: <pip-stream-deck-api@hosting-rt.de>
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: websockets (==11.0.2)
Requires-Dist: aiohttp (>=3.8)
Requires-Dist: human-readable-ids (==0.1.3)
Requires-Dist: jsonpickle (==3.0.1)
Requires-Dist: streamdeck (==0.9.3)
Requires-Dist: pillow (<10.0.0,>=9.4.0)
Requires-Dist: cairosvg (==2.7.0)
Requires-Dist: ssdpy (==0.4.1)


[![PyPI version](https://badge.fury.io/py/streamdeckapi.svg)](https://badge.fury.io/py/streamdeckapi)

# streamdeckapi
Stream Deck API Library for Home Assistant Stream Deck Integration

Only compatible with separate [Stream Deck Plugin](https://github.com/Patrick762/streamdeckapi-plugin) or the bundled server.

## Dependencies
- [websockets](https://pypi.org/project/websockets/) 11.0.2

## 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](https://python-elgato-streamdeck.readthedocs.io/en/stable/pages/backend_libusb_hidapi.html) or [Installation instructions](https://github.com/jamesridgway/devdeck/wiki/Installation)
- cairo [Installation instructions for Windows](https://stackoverflow.com/a/73913080)

The event `doubleTap` is not working with this server software.

### 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`

Allow all users non-root access to Stream Deck Devices:
```bash
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`
