hackershackofficial / smartphone-doorlock Goto Github PK
View Code? Open in Web Editor NEWDoorlock that can be locked or unlocked through your smartphone
Doorlock that can be locked or unlocked through your smartphone
Was working for the first attempt, now getting this
pi@raspberrypi:~ $ cd Smartphone-Doorlock/
pi@raspberrypi:/Smartphone-Doorlock $ sudo node doorlock.js/Smartphone-Doorlock $ /home/pi/Smartphone-Doorlock
2017-04-27 02:19:04 initInitialise: Can't lock /var/run/pigpio.pid
/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:11
pigpio.gpioInitialise();
^
Error: pigpio error -1 in gpioInitialise
at Error (native)
at initializePigpio (/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:11:12)
at new Gpio (/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:25:3)
at Object. (/home/pi/Smartphone-Doorlock/doorlock.js:48:11)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
pi@raspberrypi:
Thanks for share your work.
I have a question.
How Blynk app know if is unlocked or locked? Use the led status on or off?
Request.
Can be added limit switch as unlocked or locked?
pi@raspberrypi:~/Documents/Smartphone-Doorlock $ sudo node doorlock.js
/home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/build/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/build/Debug/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/build/Release/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/out/Debug/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/Debug/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/out/Release/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/Release/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/build/default/pigpio.node
→ /home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/compiled/11.15.0/linux/arm/pigpio.node
at bindings (/home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/node_modules/bindings/bindings.js:88:9)
at Object. (/home/pi/Documents/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:5:31)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/home/pi/Documents/Smartphone-Doorlock/doorlock.js:47:12)
at Module._compile (internal/modules/cjs/loader.js:816:30)
@raspberrypi:~/Smartphone-Doorlock $ sudo node doorlock.js
/home/rpatel/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:137
pigpio.gpioSetISRFunc(this.gpio, +edge, +timeout, handler);
^
Error: pigpio error -123 in gpioSetISRFunc
at Gpio.enableInterrupt (/home/rpatel/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:137:10)
at new Gpio (/home/rpatel/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:40:10)
at Object. (/home/rpatel/Smartphone-Doorlock/doorlock.js:49:12)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
Hi all,
As per title, when I use node doorlock.js
, I cannot run the file/program.
I have tried everything such as reinstalling node and pi-gpio etc.
Please, any help would be deeply appreciated
thank you so much!
Hello ,
I am getting the below error :
pi@raspberrypi:~/Smartphone-Doorlock $ sudo node doorlock.js
/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:137
pigpio.gpioSetISRFunc(this.gpio, +edge, +timeout, handler);
Error: pigpio error -123 in gpioSetISRFunc
at Error (native)
at Gpio.enableInterrupt (/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:137:10)
at new Gpio (/home/pi/Smartphone-Doorlock/node_modules/pigpio/pigpio.js:40:10)
at Object. (/home/pi/Smartphone-Doorlock/doorlock.js:49:12)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
I am using the RASPBERRY PI 3 with RASPBIAN Installed . Placed the Signal Wire in 14 Slot as mentioned in Code. But I am getting this error.
Please assist me.
Suggestions on preventing the program to stop running and disconnecting. I run into this problem where the program disconnects from blynk, this is stressful as I don't want it to fail in the real world.
I see users who try to install node through your recommended guide failing.
Doing this breaks the project and shows the errors everyone sees.
node/npm need to just be installed through apt-get and the issues never show and program works fine.
I ran into the same issue until I just ignored the recommended nodejs install guide.
Also for anyone who has a continuous 360 motor, to stop it I had to throw 1505-1515 as a pulse instead of 0.
Hi guys, i try to run doorlock.js file and all i get is this,
pi@raspberrypi:~/code/Smartphone-Doorlock $ sudo node doorlock.js
/home/pi/code/Smartphone-Doorlock/doorlock.js:40
var blynkToken = '042336f74eb64113b4e1e00d40eaded7':
^
SyntaxError: Unexpected token :
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
Help would be greatly appreciated!!!
Or any MQTT device?
Thanks!
I tried step by step, and getting error following:
`pi@raspi:~/Smartphone-Doorlock $ sudo node doorlock.js
fs.js:91
throw new errors.TypeError('ERR_INVALID_ARG_TYPE',
^
TypeError [ERR_INVALID_ARG_TYPE]: The "options" argument must be one of type string or Object. Received type number
at getOptions (fs.js:91:11)
at fs.readFileSync (fs.js:570:13)
at Array.map ()
at exports.SslClient.connect (/home/pi/Smartphone-Doorlock/node_modules/blynk-library/blynk-node.js:169:42)
at doConnect (/home/pi/Smartphone-Doorlock/node_modules/blynk-library/blynk.js:546:15)
at Blynk.connect (/home/pi/Smartphone-Doorlock/node_modules/blynk-library/blynk.js:559:5)
at new Blynk (/home/pi/Smartphone-Doorlock/node_modules/blynk-library/blynk.js:385:10)
at Object. (/home/pi/Smartphone-Doorlock/doorlock.js:58:13)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
`
Whats up HackerHouse
I've been making this project and I ran into trouble installing the code onto my pi. Im rather inexperienced so Im not sure whats wrong but when i executed the (sudo npm install) i get an error saying (npm WARN package.json [email protected] No repository field) and nothing happens. Then I tried to run(vim doorlock.js) and the console said there was no such command. I'm not sure what's up and was hoping you guys could shed some light on the situation.
Thanks so much, Tomes
JS library doesn't seem to work with Blynk 2.0. I get the INVALID_TOKEN error when trying to connect. Is this a known issue?
Hi I am getting this error message after i enter this: sudo node doorlock.js
pi@raspberrypi:~ $ sudo node doorlock.js
module.js:549
throw err;
^
Error: Cannot find module '/home/pi/doorlock.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
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.