mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-08 04:30:31 +01:00
load stream subtyper
upd env var prefix
This commit is contained in:
parent
63f2ab9d01
commit
5ca61d04c7
@ -50,9 +50,9 @@ Store and load environment variables from:
|
|||||||
- `user home directory / .config / obsws-cli / obsws.env`
|
- `user home directory / .config / obsws-cli / obsws.env`
|
||||||
|
|
||||||
```env
|
```env
|
||||||
OBSWS_HOST=localhost
|
OBS_HOST=localhost
|
||||||
OBSWS_PORT=4455
|
OBS_PORT=4455
|
||||||
OBSWS_PASSWORD=<websocket password>
|
OBS_PASSWORD=<websocket password>
|
||||||
```
|
```
|
||||||
|
|
||||||
Flags can be used to override environment variables.
|
Flags can be used to override environment variables.
|
||||||
|
@ -17,6 +17,7 @@ from . import (
|
|||||||
scene,
|
scene,
|
||||||
scenecollection,
|
scenecollection,
|
||||||
sceneitem,
|
sceneitem,
|
||||||
|
stream,
|
||||||
studiomode,
|
studiomode,
|
||||||
virtualcam,
|
virtualcam,
|
||||||
)
|
)
|
||||||
@ -32,7 +33,7 @@ class Settings(BaseSettings):
|
|||||||
Path.home() / '.config' / 'obsws-cli' / 'obsws.env',
|
Path.home() / '.config' / 'obsws-cli' / 'obsws.env',
|
||||||
),
|
),
|
||||||
env_file_encoding='utf-8',
|
env_file_encoding='utf-8',
|
||||||
env_prefix='OBSWS_',
|
env_prefix='OBS_',
|
||||||
)
|
)
|
||||||
|
|
||||||
HOST: str = 'localhost'
|
HOST: str = 'localhost'
|
||||||
@ -51,6 +52,7 @@ for module in (
|
|||||||
scene,
|
scene,
|
||||||
scenecollection,
|
scenecollection,
|
||||||
sceneitem,
|
sceneitem,
|
||||||
|
stream,
|
||||||
studiomode,
|
studiomode,
|
||||||
virtualcam,
|
virtualcam,
|
||||||
):
|
):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user