as19git67 / nukible Goto Github PK
View Code? Open in Web Editor NEWSimulates a Nuki.io Fob (runs on Raspberry PI on node.js - needs bluetooth dongle)
License: MIT License
Simulates a Nuki.io Fob (runs on Raspberry PI on node.js - needs bluetooth dongle)
License: MIT License
If I get time today I will do this.
On my MacBook its not working because it doesn't do much after I select pair:
Adding peripheral Nuki_1554930D to try-to-pair queue
Timeout. Aborting pairing.
Pairing failed: pairing timeout
On my Raspberry Pi Zero:
ERROR while connecting Nuki_1554930D
Pairing failed: Error: Command Disallowed (0xc)
at NobleBindings.onLeConnComplete (/home/pirate/nukible/node_modules/noble/lib/hci-socket/bindings.js:220:13)
at emitOne (events.js:116:13)
at Hci.emit (events.js:211:7)
at Hci.processCmdStatusEvent (/home/pirate/nukible/node_modules/noble/lib/hci-socket/hci.js:674:12)
at Hci.onSocketData (/home/pirate/nukible/node_modules/noble/lib/hci-socket/hci.js:469:12)
at emitOne (events.js:116:13)
at BluetoothHciSocket.emit (events.js:211:7)
Hello,
i am trying to use this nukible.js script in my development for pairing process with my NUKI Smart Lock 3.0 device, but I can not manage to get it work. The stuff just hangs up at the "Step 4: SL sent first part of public key.." as does not proceed in the switch case of "nukible.prototype.STATE_PAIRING_CL_REQ_PUBKEY_FIN" for further process of pairing. Is this script working as well as with the NUKI Smart Lock 3.0 or there might be some problems? If does not, could it be somehow udpated to sort out the things 3.0 smart lock expects and manage to get it work with the 3.0 lock as well?
I would very much appreciate for the help by the developer team of this repo. Thanks in advance!
Happens quite a lot, you have to wait for timeout event before sending next event.
Hi,
can you please release nukible at npm? Thanks
Best regards,
Bernhard
I'm trying to run node ./sample/main.js
but all I get is
initial configuration saved
No locks paired
Apart from initiating pairing mode on the Nuki itself by pressing the button for 5 seconds, what else does it take to actually pair nukible with Nuki?
I appreciate any hint!
Thank you!
In case of calling getNukiState, the method does run forever and tries to receive the state.
Fixed this by using the following but I'm not sure, if this is the best solution. Your opinion?
diff --git a/nukible.js b/nukible.js
index 65c197c..d87d7c5 100644
--- a/nukible.js
+++ b/nukible.js
@@ -725,6 +725,7 @@ _.extend(nukible.prototype, {
if (lockPeripheralId === peripheralId) {
self._getNukiStates.call(self, options, peripheral, callback);
}
+ noble.removeAllListeners('discover');
});
},
And can't get it to work again..
Nuki_064961C1 is connectable.
Pairing failed: ERROR: peripheral disconnected during pairing.
wtf...
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.