File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ The docker image allows you to use the streamdeckapi server inside a docker cont
10
10
11
11
### Usage
12
12
``` shell
13
- docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi
13
+ docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi:main
14
14
```
15
15
16
16
** 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/ ).
Original file line number Diff line number Diff line change 9
9
with codecs .open (os .path .join (here , "README.md" ), encoding = "utf-8" ) as fh :
10
10
long_description = "\n " + fh .read ()
11
11
12
- VERSION = "0.0.11 "
12
+ VERSION = "0.0.12 "
13
13
DESCRIPTION = "Stream Deck API Library"
14
14
15
15
# Setting up
25
25
packages = find_packages (),
26
26
install_requires = [
27
27
"requests" ,
28
- "websockets==11.0.2 " ,
28
+ "websockets>=13.1 " ,
29
29
"aiohttp>=3.8" ,
30
30
"human-readable-ids==0.1.3" ,
31
31
"jsonpickle==3.0.1" ,
Original file line number Diff line number Diff line change
1
+ import asyncio
2
+ import json
3
+ from streamdeckapi import SDWebsocketMessage , StreamDeckApi
4
+
5
+ async def __main__ ():
6
+ deck = StreamDeckApi ("localhost" )
7
+ info = await deck .get_info (False )
8
+
9
+ if info is None :
10
+ print ("Error getting info" )
11
+ return
12
+
13
+ print (json .dumps (info ))
14
+
15
+ loop = asyncio .get_event_loop ()
16
+ loop .run_until_complete (__main__ ())
Original file line number Diff line number Diff line change
1
+ #
2
+ # Only used for development!
3
+ #
4
+
5
+ # Start a server
6
+ # docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged --detached ghcr.io/patrick762/streamdeckapi:main
7
+
8
+ # Run python tests
9
+ python test.py
You can’t perform that action at this time.
0 commit comments