kangasta / fdbk_ruuvi_reporter Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
reported_by
field to topic metadata to determine which reporter should listen for specific MAC if there are multiple reporters.--reporter-name
parameter to determine MACs to listen for based on reported_by
metadata and possibly store this value in config file.Trying to run: fdbk-ruuvi-reporter --create-topic test XX:XX:XX:XX:XX:XX --db-connection fdbk_dynamodb_plugin
and getting this error.
Traceback (most recent call last):
File "/usr/local/bin/fdbk-ruuvi-reporter", line 15, in
create_topic(args.db_connection, args.db_parameters, *args.create_topic)
File "/usr/local/lib/python3.7/dist-packages/fdbk_ruuvi_reporter/main.py", line 44, in create_topic
topic_id = connection.add_topic(**create_topic_dict(mac, name))
File "/usr/local/lib/python3.7/dist-packages/fdbk_dynamodb_plugin/_dynamodb_connection.py", line 34, in add_topic
topic_d = generate_topic_dict(name, add_id=True, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/fdbk/utils/_format.py", line 143, in generate_topic_dict
validate_topic_dict(topic_d)
File "/usr/local/lib/python3.7/dist-packages/fdbk/validate.py", line 24, in validate_topic_dict
_validate_dict(topic_d, 'topic-in')
File "/usr/local/lib/python3.7/dist-packages/fdbk/validate.py", line 18, in _validate_dict
validate(instance=input_dict, schema=schema)
File "/usr/local/lib/python3.7/dist-packages/jsonschema/validators.py", line 934, in validate
raise error
jsonschema.exceptions.ValidationError: 'ruuvitag' is not one of ['topic', 'template']
Failed validating 'enum' in schema['properties']['type']:
{'enum': ['topic', 'template']}
On instance['type']:
'ruuvitag'
Also tried to run: fdbk-ruuvi-reporter --create-topic ${test} ${XX:XX:XX:XX:XX:XX} --db-connection fdbk_dynamodb_plugin
but then the error was: fdbk-ruuvi-reporter: error: argument --create-topic: expected 2 arguments.
So, how is the creation of the topic suppose to happen `
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.