Coder Social home page Coder Social logo

smartphone-doorlock's People

Contributors

atainter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartphone-doorlock's Issues

Project

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

INVALID_TOKEN

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?

cant run doorlock.js

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

Question and request.

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?

Can't run it, need help!

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)
`

doorlock.js wont open

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!!!

Remove Nodejs Install Guide

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.

Issue with the Code

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.

How do I prevent it from disconnecting?

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.

Error: Cannot find module 'pigpiod'

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!

Can somebody help me? Please, Thank you. the doorlock.js can not running successful.

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)

SSL not authorized

Why this error appears me?, If i did all the steps, inclusively I could pass the connectivity test.

screenshot at 2017-06-10 21-32-33

So, First I have to mount the circuit, to ensure that SSL authorizes ? I don't think so.

Help

Was working for the first attempt, now getting this

pi@raspberrypi:~ $ cd Smartphone-Doorlock/
pi@raspberrypi:/Smartphone-Doorlock $ sudo node doorlock.js
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:
/Smartphone-Doorlock $ /home/pi/Smartphone-Doorlock

sudo node doorlock.js wont run

@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)

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.