hardwario / bch-control-tool Goto Github PK
View Code? Open in Web Editor NEWHARDWARIO Hub Control Tool
License: MIT License
HARDWARIO Hub Control Tool
License: MIT License
root@turris:~# bch node list
Traceback (most recent call last):
File "/usr/bin/bch", line 8, in <module>
load_entry_point('bch', 'console_scripts', 'bch')()
File "/usr/lib/python3.6/site-packages/bch/cli.py", line 106, in main
cli(obj={})
File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.6/site-packages/bch/node.py", line 33, in node_list
rows = [[node['id'], node.get('alias', '')] for node in nodes]
File "/usr/lib/python3.6/site-packages/bch/node.py", line 33, in <listcomp>
rows = [[node['id'], node.get('alias', '')] for node in nodes]
TypeError: string indices must be integers
Output from mosquitto_sub -v -t '#'
:
gateway/usb-dongle/nodes/get null
gateway/usb-dongle/nodes ["69703fb2cbe5", "e636fb0b8c99", "9c33bd95fa2e", "6590f027809a", "83913187f959"]
I discovered this tool today and it's really great. The only problem I have is that I'm using base_topic_prefix
in bcg config file: https://github.com/bigclownlabs/bch-gateway/blob/master/turris/etc/init.d/bc-gateway-usb-dongle#L35
Which means that messages for gateway are not delivered.
Would it be possible to add option similar to gateway
to configure this? So instead of gateway/{id}/pairing-mode/start
there would be {prefix}gateway/{id}/pairing-mode/stop
?
After update to release 1.2.0 bch stopped working.
bch node list
and bch gw list
both crash with:
error: __init__() got an unexpected keyword argument 'use_decimal'
downgrading back to 1.1.0 solve it for now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.