assume vban.toml for observer example

add README to observer example
This commit is contained in:
onyx-and-iris
2022-10-18 15:20:20 +01:00
parent 362873c5be
commit 197f81aa73
2 changed files with 32 additions and 8 deletions

View File

@@ -22,7 +22,9 @@ class Observer:
def main():
with vban_cmd.api(kind_id, **opts) as vban:
kind_id = "potato"
with vban_cmd.api(kind_id) as vban:
Observer(vban)
while cmd := input("Press <Enter> to exit\n"):
@@ -33,11 +35,4 @@ def main():
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO)
kind_id = "potato"
opts = {
"ip": "<ip address>",
"streamname": "Command1",
"port": 6980,
}
main()