Giter VIP home page Giter VIP logo

paulfp / three-factor-security-door Goto Github PK

View Code? Open in Web Editor NEW
57.0 8.0 35.0 6 KB

What do you get when you mix a Raspberry Pi, a MySQL database, an RFID reader, an LCD touchscreen, a relay switch, an electronic door strike and a Twilio SMS account?

Home Page: https://www.switchedonnetwork.com/2017/11/10/build-the-ultimate-door-security-system-with-three-factor-authentication/

Python 100.00%
raspberry raspberry-pi raspberry-pi-3 raspberry-pi-gpio raspberry-pi-iot python python-3 relay relays relay-switch

three-factor-security-door's People

Contributors

paulfp 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

three-factor-security-door's Issues

problem in twilio account

sir I have done all the things and got 2 security outputs

RFID tag
entering our pin which we gave .
now for third one i am not able to do. Because i am from india and not able to get a twilio account number and i have requested it . but no response from there side i am waiting from almost 23 days. Pls could You help me with this problem. this project i am doing for my college. semester project.

pls can you send any replies from your side ..

Stuck with lock.py

First, thank you for your tutorial from yt. Really nice done.

After I load the script using python lock.py it says:

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "lock.py", line 195, in listen_rfid
rfid_presented += keys[ event.code ]
IndexError: string index out of range

Exception TypeError: TypeError('super() takes at least 1 argument (0 given)',) in <bound method InputDevice.del of InputDevice('/dev/input/event0')> ignored

-------------------------------------For line 801 in threading.py----------------------------------

def __bootstrap_inner(self):

    try:
        self._set_ident()
        self.__started.set()
        with _active_limbo_lock:
            _active[self.__ident] = self
            del _limbo[self]
        if __debug__:
            self._note("%s.__bootstrap(): thread started", self)

        if _trace_hook:
            self._note("%s.__bootstrap(): registering trace hook", self)
            _sys.settrace(_trace_hook)
        if _profile_hook:
            self._note("%s.__bootstrap(): registering profile hook", self)
            _sys.setprofile(_profile_hook)

try:
self.run() LINE 801

        except SystemExit:
            if __debug__:
                self._note("%s.__bootstrap(): raised SystemExit", self)
        except:
            if __debug__:
                self._note("%s.__bootstrap(): unhandled exception", self)
            # If sys.stderr is no more (most likely from interpreter
            # shutdown) use self.__stderr.  Otherwise still use sys (as in
            # _sys) in case sys.stderr was redefined since the creation of
            # self.
            if _sys and _sys.stderr is not None:
                print>>_sys.stderr, ("Exception in thread %s:\n%s" %
                                     (self.name, _format_exc()))
            elif self.__stderr is not None:
                # Do the best job possible w/o a huge amt. of code to
                # approximate a traceback (code ideas from
                # Lib/traceback.py)
                exc_type, exc_value, exc_tb = self.__exc_info()
                try:
                    print>>self.__stderr, (
                        "Exception in thread " + self.name +
                        " (most likely raised during interpreter shutdown):")
                    print>>self.__stderr, (
                        "Traceback (most recent call last):")
                    while exc_tb:
                        print>>self.__stderr, (
                            '  File "%s", line %s, in %s' %
                            (exc_tb.tb_frame.f_code.co_filename,
                                exc_tb.tb_lineno,
                                exc_tb.tb_frame.f_code.co_name))
                        exc_tb = exc_tb.tb_next
                    print>>self.__stderr, ("%s: %s" % (exc_type, exc_value))
                # Make sure that exc_tb gets deleted since it is a memory
                # hog; deleting everything else is just for thoroughness
                finally:
                    del exc_type, exc_value, exc_tb
        else:
            if __debug__:
                self._note("%s.__bootstrap(): normal return", self)
        finally:
            # Prevent a race in
            # test_threading.test_no_refcycle_through_target when
            # the exception keeps the target alive past when we
            # assert that it's dead.
            self.__exc_clear()
    finally:
        with _active_limbo_lock:
            self.__stop()
            try:
                # We don't call self.__delete() because it also
                # grabs _active_limbo_lock.
                del _active[_get_ident()]
            except:
                pass

---------------------------------------For line 754 in threading.py ------------------------------

def run(self):

    """Method representing the thread's activity.

    You may override this method in a subclass. The standard run() method
    invokes the callable object passed to the object's constructor as the
    target argument, if any, with sequential and keyword arguments taken
    from the args and kwargs arguments, respectively.

    """
    try:
        if self.__target:

self.__target(*self.__args, **self.__kwargs) LINE 754

    finally:
        # Avoid a refcycle if the thread is running a function with
        # an argument that has a member that points to the thread.
        del self.__target, self.__args, self.__kwargs

Stuck at Digits Entered

Hi Paul, thanks for the tutorial. I am getting stuck at the pin entered part and the GUI is simply just reading the button presses.

The database connection and rfid reader work great but I can't see to figure out why it's not accepting the pin.

Any help would be much appreciated. Thank you so much.

Problem with the relay

Everything went fine, but the relay is turning on at the start of the program without even being authenticated and it stays that way, it doesn't turn off, what do I do?

Problem to install

Paul,

Amazing project.
I am complete new on this and i follow your tutorial .
but... when i want to clone the file into the raspberry it keeps asking v=foor username en pasword
i meen the one from GITHUB.COM.
i set my email / username everything and password but its not good..

I dont understand what to do
please help

problem with phpmyadmin

sir i have done all the things and got 2 security outputs

  1. RFID tag
  2. entering our pin which we gave .

now for third one i am not able to do. Because i am from india and not able to get a twilio account number and i have requested it . but no response from there side i am waiting from almost 23 days. Pls could You help me with this problem. this project i am doing for my college. semester project.

pls can you send any replies from your side ..

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.