Comments (6)
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.
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.
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.
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.
I don't seem to understand the question. Can you clarify it for me?
from apple-home-key-reader.
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)
- Different actions for different states HOT 3
- Not an issue - but a question HOT 4
- lock status info after restart HOT 5
- Only Read Kreditcard HOT 15
- Error homekey iPhone HOT 6
- Can't share key HOT 4
- Error While run first time HOT 8
- Nothing happens when putting my phone next to the NFC reader HOT 13
- discussion: esp32 firmware? HOT 3
- Integration with HAP-python in Bridge Mode? HOT 49
- Receiving protocol error sometimes when using the HomeKey HOT 11
- NFC driver not freeing /dev/serial0 on authentication failure? HOT 11
- Sharing key to apple watch HOT 4
- Wiki (Windows installation) HOT 2
- Multiple Devices HOT 3
- Connection via UDP HOT 4
- Installing requirements.txt HOT 7
- Unhandled exception in runner homekey. HOT 5
- RFID Reader Requirements HOT 1
- Unhandled exception in runner homekey: Crash after each successful read. HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple-home-key-reader.