Giter VIP home page Giter VIP logo

Comments (6)

kormax avatar kormax commented on August 30, 2024 2

I would add this logic inside of on_endpoint_authenticated method inside of accessory.py. It's present in the most recent commit.

Beware that this is the code that nfc reader loop blocks on, so if I were you, i'd schedule a task to send an http/other request in asynchronous manner via threads or asyncio.

from apple-home-key-reader.

MohammadAG avatar MohammadAG commented on August 30, 2024 1

I also had to turn off Bluetooth on my Pi Zero W. You can do that and enable UART by adding these lines to the end of your /boot/config.txt:

enable_uart=1
dtoverlay=pi3-disable-bt

and then restarting your Pi. If you get permission denied accessing the dev node (ttyAMA0 for me, AMA0 in configuration.json) then you might want to add your user to the dialout group.

from apple-home-key-reader.

kormax avatar kormax commented on August 30, 2024

Port should be without the /dev/ prefix.
Also, i2c is not supported by nfcpy.

For best compatibility, i advise using uart mode.

Also, libnfc could interfere with nfcpy if it's running at the same time.

In case you gonna use UART, remember to turn it on in raspi-config, and turn off serial console.

from apple-home-key-reader.

tomkinane avatar tomkinane commented on August 30, 2024

I switched over to UART, turned off Bluetooth and added user to the dialout group all worked great, Could you point me in the direction to the file where I need test up the functionality of the lock?

from apple-home-key-reader.

kormax avatar kormax commented on August 30, 2024

I don't seem to understand the question. Can you clarify it for me?

from apple-home-key-reader.

tomkinane avatar tomkinane commented on August 30, 2024

Where would I add functionality like when the door opens (by taping the card) it runs a python code that would trigger my door system. So my question is where would I code this on to the lock code.

from apple-home-key-reader.

Related Issues (20)

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.