changed db path, updated readme

This commit is contained in:
Patrick762
2024-12-21 22:22:48 +01:00
parent 3c78afeea6
commit fd6ee45d62
3 changed files with 3 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1,6 +1,5 @@
**/__pycache__/ **/__pycache__/
build build
*.egg-info *.egg-info
*.db data
*.db-journal
*.png *.png

View File

@@ -10,7 +10,7 @@ The docker image allows you to use the streamdeckapi server inside a docker cont
### Usage ### Usage
```shell ```shell
docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged ghcr.io/patrick762/streamdeckapi:main docker run -v /dev/hidraw7:/dev/hidraw7 -v ./data/streamdeckapi:/streamdeckapi/data -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/). **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/).

View File

@@ -4,7 +4,7 @@ PLUGIN_PORT = 6153
PLUGIN_INFO = "/sd/info" PLUGIN_INFO = "/sd/info"
PLUGIN_ICON = "/sd/icon" PLUGIN_ICON = "/sd/icon"
DB_FILE = "streamdeckapi.db" DB_FILE = "data/streamdeckapi.db"
SD_SSDP = "urn:home-assistant-device:stream-deck" SD_SSDP = "urn:home-assistant-device:stream-deck"
SD_ZEROCONF = "_stream-deck-api._tcp.local." SD_ZEROCONF = "_stream-deck-api._tcp.local."
DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S.%f" DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S.%f"