Merge pull request #11 from Patrick762/bugfix-websockets
Websockets dependency update
This commit is contained in:
@@ -10,7 +10,7 @@ The docker image allows you to use the streamdeckapi server inside a docker cont
|
||||
|
||||
### Usage
|
||||
```shell
|
||||
docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi
|
||||
docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi:main
|
||||
```
|
||||
|
||||
**Note:** You have to change `hidraw7` to the path of your Stream Deck. You can find this path by using `lshid` (https://pypi.org/project/lshid/).
|
||||
|
||||
4
setup.py
4
setup.py
@@ -9,7 +9,7 @@ here = os.path.abspath(os.path.dirname(__file__))
|
||||
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
|
||||
long_description = "\n" + fh.read()
|
||||
|
||||
VERSION = "0.0.11"
|
||||
VERSION = "0.0.12"
|
||||
DESCRIPTION = "Stream Deck API Library"
|
||||
|
||||
# Setting up
|
||||
@@ -25,7 +25,7 @@ setup(
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
"requests",
|
||||
"websockets==11.0.2",
|
||||
"websockets>=13.1",
|
||||
"aiohttp>=3.8",
|
||||
"human-readable-ids==0.1.3",
|
||||
"jsonpickle==3.0.1",
|
||||
|
||||
16
test.py
Normal file
16
test.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import asyncio
|
||||
import json
|
||||
from streamdeckapi import SDWebsocketMessage, StreamDeckApi
|
||||
|
||||
async def __main__():
|
||||
deck = StreamDeckApi("localhost")
|
||||
info = await deck.get_info(False)
|
||||
|
||||
if info is None:
|
||||
print("Error getting info")
|
||||
return
|
||||
|
||||
print(json.dumps(info))
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.run_until_complete(__main__())
|
||||
Reference in New Issue
Block a user