Code Monkey home page Code Monkey logo

bch-control-tool's People

Contributors

blavka avatar commodo avatar hubmartin avatar radekdvorak avatar smejkaljakub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bch-control-tool's Issues

node list: TypeError

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"]

Consider adding option for base_topic_prefix (alias)

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?

release 1.2 not working

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.