mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
add opts
add opts to example in readme and __main__
This commit is contained in:
@@ -70,7 +70,7 @@ class ManyThings:
|
||||
|
||||
|
||||
def main():
|
||||
with vban_cmd.api(kind_id) as vban:
|
||||
with vban_cmd.api(kind_id, **opts) as vban:
|
||||
do = ManyThings(vban)
|
||||
do.things()
|
||||
do.other_things()
|
||||
@@ -86,7 +86,11 @@ def main():
|
||||
|
||||
if __name__ == "__main__":
|
||||
kind_id = "banana"
|
||||
ip = "<ip address>"
|
||||
opts = {
|
||||
"ip": "<ip address>",
|
||||
"streamname": "Command1",
|
||||
"port": 6980,
|
||||
}
|
||||
|
||||
main()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user