-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1546881
commit 49b6cab
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# Only used for development! | ||
# | ||
|
||
# Start a server | ||
#docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged --detached ghcr.io/patrick762/streamdeckapi:main | ||
|
||
# Run python tests | ||
python test.py |