0.4.6 ā€¢ Published 4 years ago

nfc-desfire-card-service v0.4.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Welcome to nfc-desfire-card-service šŸ‘‹

Version License: ISC

NFC DESFire card scanner service

šŸ  Homepage

Install

sudo npm_config_user=root npm install -g nfc-desfire-card-service

Install as a systemd service:

Create the file /etc/nfc-desfire-card-service/desfire-credentials.json prior to running this.

sudo nfc-desfire-card-service --systemd=install

This will also create a new nfc-desfire-card Linux group, and add the current user to it.

Uninstall systemd service:

sudo nfc-desfire-card-service --systemd=uninstall

This will also remove the nfc-desfire-card Linux group, and remove the current user from it.

Usage

nfc-desfire-card-service [--cache] [--enabled] [--poll] [--device="devicename"] [--socket="socketname"] [--credentials="filename"]
NFC_DESFIRE_CARD_SERVICE_CONFIG="path" nfc-desfire-card-service

To connect to systemd service and preview scans

nfc-desfire-card-service --preview

Options (cli / nfc-desfire-card-service.json)

--cache / { "service": { "useCache": true } }

Enabled internal UID/data caching. This saves the tag having to be opened and read for previously seen tags, but means that changes to the card data will not be considered.

--enabled / { "service": { "startEnabled": true } }

Starts the service in scanning mode immediately rather than waiting for a client to instruct the service to start scanning.

--poll / { "nfc": { "pollForDevices": true } }

Causes the service to wait for devices to become available rather than exiting if a device is not present.

The service also waits for further devices when the present device is lost, however in actuality the underlying LibNFC/Freefare process generally segfaults and aborts the service.

--device="devicename" / { "nfc": { "device": "devicename" } }

Specifies the name of the device to use. Other available devices are ignored.

--credentials="filename"

The path and filename of the credentials file in JSON format. If this is not specified, the file desfire-credentials.json in the config directory is used.

Author

šŸ‘¤ Pete Morris

Show your support

Give a ā­ļø if this project helped you!


This README was generated with ā¤ļø by readme-md-generator

0.4.6

4 years ago

0.4.5

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.2

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago