changed db path, updated readme
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
build
|
build
|
||||||
*.egg-info
|
*.egg-info
|
||||||
*.db
|
data
|
||||||
*.db-journal
|
|
||||||
*.png
|
*.png
|
||||||
|
|||||||
@@ -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/).
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user