mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
sendtext_only kwarg added.
readme, changelog updated. minor version bump
This commit is contained in:
parent
f6d92d1c34
commit
544e0f2a32
10
CHANGELOG.md
10
CHANGELOG.md
@ -11,6 +11,16 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass
|
|||||||
|
|
||||||
- [x]
|
- [x]
|
||||||
|
|
||||||
|
## [2.1.0] - 2023-07-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- `sendtext_only` kwarg let's you disable incoming rt packets. Essentially the interface will work only in one direction (out).
|
||||||
|
|
||||||
|
This is useful if you are only interested in sending script commands out to voicemeeter but don't need to receive parameter states.
|
||||||
|
|
||||||
|
By default sendtext_only is False.
|
||||||
|
|
||||||
## [2.0.0] - 2023-06-25
|
## [2.0.0] - 2023-06-25
|
||||||
|
|
||||||
This update introduces some breaking changes:
|
This update introduces some breaking changes:
|
||||||
|
12
README.md
12
README.md
@ -458,8 +458,10 @@ You may pass the following optional keyword arguments:
|
|||||||
- `ip`: str, ip or hostname of remote machine
|
- `ip`: str, ip or hostname of remote machine
|
||||||
- `streamname`: str, name of the stream to connect to.
|
- `streamname`: str, name of the stream to connect to.
|
||||||
- `port`: int=6980, vban udp port of remote machine.
|
- `port`: int=6980, vban udp port of remote machine.
|
||||||
- `pdirty`: parameter updates
|
- `pdirty`: boolean=False, parameter updates
|
||||||
- `ldirty`: level updates
|
- `ldirty`: boolean=False, level updates
|
||||||
|
- `timeout`: int=5, amount of time (seconds) you will wait for subscription response
|
||||||
|
- `sendtext_only`: boolean=False, set `True` if you are only interested in sending script commands (no rt packets will be received)
|
||||||
|
|
||||||
#### `vban.pdirty`
|
#### `vban.pdirty`
|
||||||
|
|
||||||
@ -477,9 +479,13 @@ Sends a script block as a string request, for example:
|
|||||||
vban.sendtext("Strip[0].Mute=1;Bus[0].Mono=1")
|
vban.sendtext("Strip[0].Mute=1;Bus[0].Mono=1")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
note. if you are ONLY interested in sending script commands you may set sendtext_only kwarg to True
|
||||||
|
|
||||||
#### `vban.public_packet`
|
#### `vban.public_packet`
|
||||||
|
|
||||||
Returns a `VbanRtPacket`. Designed to be used internally by the interface but available for parsing through this read only property object. States not guaranteed to be current (requires use of dirty parameters to confirm).
|
Returns a `VbanRtPacket`. Designed to be used internally by the interface but available for parsing through this read only property object.
|
||||||
|
|
||||||
|
States not guaranteed to be current (requires use of dirty parameters to confirm).
|
||||||
|
|
||||||
### `Errors`
|
### `Errors`
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "vban-cmd"
|
name = "vban-cmd"
|
||||||
version = "2.0.0"
|
version = "2.1.0"
|
||||||
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -71,6 +71,7 @@ class FactoryBase(VbanCmd):
|
|||||||
"channel": 0,
|
"channel": 0,
|
||||||
"ratelimit": 0.01,
|
"ratelimit": 0.01,
|
||||||
"timeout": 5,
|
"timeout": 5,
|
||||||
|
"sendtext_only": False,
|
||||||
"sync": False,
|
"sync": False,
|
||||||
"pdirty": False,
|
"pdirty": False,
|
||||||
"ldirty": False,
|
"ldirty": False,
|
||||||
|
@ -85,18 +85,19 @@ class VbanCmd(metaclass=ABCMeta):
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def login(self):
|
def login(self):
|
||||||
"""Starts the subscriber and updater threads"""
|
"""Starts the subscriber and updater threads (unless sendtext_only mode)"""
|
||||||
self.running = True
|
if not self.sendtext_only:
|
||||||
self.event.info()
|
self.running = True
|
||||||
|
self.event.info()
|
||||||
|
|
||||||
self.subscriber = Subscriber(self)
|
self.subscriber = Subscriber(self)
|
||||||
self.subscriber.start()
|
self.subscriber.start()
|
||||||
|
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
self.updater = Updater(self, queue)
|
self.updater = Updater(self, queue)
|
||||||
self.updater.start()
|
self.updater.start()
|
||||||
self.producer = Producer(self, queue)
|
self.producer = Producer(self, queue)
|
||||||
self.producer.start()
|
self.producer.start()
|
||||||
|
|
||||||
self.logger.info(f"{type(self).__name__}: Successfully logged into {self}")
|
self.logger.info(f"{type(self).__name__}: Successfully logged into {self}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user