tim-hellhake / flic-button-adapter Goto Github PK
View Code? Open in Web Editor NEWFlic button adapter for WebThings Gateway
License: MIT License
Flic button adapter for WebThings Gateway
License: MIT License
There is a new release of the fliclib-linux-hci
lib with Flic2 support.
See https://github.com/50ButtonsEach/fliclib-linux-hci/commits/master.
Hi !
I'm trying to connect 4 Flic 2 buttons to my gateway. I'm using RPI 4B.
Pairing doesn't find buttons, I've tried to hold buttons, nothing happened.
Bluetooth works, tested with Mi Floral Care.
Thanks for help
Here a chunk of logs :
2020-04-26 11:59:46.673 INFO : Loading add-on: flic-button-adapter
2020-04-26 11:59:47.596 INFO : flic-button-adapter: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3
2020-04-26 11:59:48.006 INFO : flic-button-adapter: Loading add-on flic-button-adapter from /home/pi/.mozilla-iot/addons/flic-button-adapter
2020-04-26 11:59:48.083 INFO : flic-button-adapter: flicd[stderr]: Available HCI devices found:
2020-04-26 11:59:48.084 INFO : flic-button-adapter:
2020-04-26 11:59:48.085 INFO : flic-button-adapter: flicd[stderr]: hci0
2020-04-26 11:59:48.085 INFO : flic-button-adapter:
2020-04-26 11:59:48.086 INFO : flic-button-adapter: Trying hci0
2020-04-26 11:59:48.087 INFO : flic-button-adapter: Flic server is now up and running!
2020-04-26 11:59:48.087 INFO : flic-button-adapter: HCI socket busy, bringing down and then retrying
2020-04-26 11:59:48.088 INFO : flic-button-adapter:
2020-04-26 11:59:48.100 INFO : flic-button-adapter: flicd[stderr]: Accepted new client
2020-04-26 11:59:48.101 INFO : flic-button-adapter:
2020-04-26 11:59:49.095 INFO : flic-button-adapter: flicd[stderr]: Successfully bound HCI socket
2020-04-26 11:59:49.096 INFO : flic-button-adapter:
2020-04-26 11:59:49.602 INFO : flic-button-adapter: flicd[stderr]: Initialization of Bluetooth controller done!
2020-04-26 11:59:49.603 INFO : flic-button-adapter:
2020-04-26 12:03:15.065 INFO : Opened a new things socket
2020-04-26 12:03:15.085 INFO : About to call startPairing on ThingURLAdapter
2020-04-26 12:03:15.087 INFO : About to call startPairing on FlicButtonAdapter
2020-04-26 12:04:15.089 INFO : Pairing timeout
2020-04-26 12:04:15.091 INFO : thing-url-adapter: Adapter: ThingURLAdapter id thing-url-adapter pairing cancelled
I'm having difficulty setting up my Flic button using this adapter.
I have a Raspberry Pi Zero W running my gateway and can pair my Flic buttons using the SimpleClient within the Flic SDK, so I don't have any hardware issues.
Can you add to the README to describe how to actually add buttons?
Do I need to do this within the SDK itself, or does your code include this process?
A step-by-step guide for beginners like me would be really helpful
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.