-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NFCPy support #2190
Add NFCPy support #2190
Conversation
53898cb
to
c122387
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your addition! 🙏🎉
Nice work! 👍
I made a few comments to ensure that this new rfid reader is integrated properly.
src/jukebox/components/rfid/hardware/generic_nfcpy/description.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
Except for the points that @s-martin found, I like the changes you did there! Which device did you test on? |
I tested on a Rock64 with dietpi. As for the NFC reader it's an ACR122U |
Thanks for the updates! |
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
I am unable to check this since I don't have a matching device available. Have you tested your set up properly? Was the installation process smooth. Since you followed the guidance, I'd suggest to merge this. Maybe you could resolve the above comments and send this for code review again. I have added this to the next release #2211. |
This is tested, but I wanted to resolve the comments first and do a complete clean install again to confirm. I'm sick since a week, and will probably not come around that before the end of the week. |
319869e
to
e188e86
Compare
e188e86
to
d00715d
Compare
I have improved the installation script and customization by scanning for compatible devices and letting the user choose which one they want to use. It is very similar to the generic_usb RFID module. The customization code will also generate an explicit device path, that will also allow to use multiple NFCpy compatible devices at the same time. Edit: I just came accross
|
Pull Request Test Coverage Report for Build 7768616291Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
@powertomato it looks like you are finished and as you said you tested it we approved it. If you have no more changes planned, we would merge it. |
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/generic_nfcpy.py
Outdated
Show resolved
Hide resolved
src/jukebox/components/rfid/hardware/generic_nfcpy/setup.inc.sh
Outdated
Show resolved
Hide resolved
Just stumbled over this code line:
@pabera, @AlvinSchiller do we need to add nfcpy there? |
No, its not necessary. The nfcpy will be picked up as additional reader and is appended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Thanks again!
This Pull Request adds support for using NFCPy supported NFC readers