mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
assume vban.toml for observer example
add README to observer example
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user