Catalog PyPI
PACKAGE EXPLORERView in registry

acr122u-websocket

PyPI

A webserver that connects to a acr122u and exposes it over websocket

acracr122unfcwebwebsocket
Versions collected1
Direct dependencies5From release 1.1.4
Last observed20 Oct, 18:24 UTC

README

Version 1.1.4 documentation

ACR122U Websocket

PyPI - Version PyPI - License PyPI - Downloads PyPI - Python Version PyPI - Wheel

This project enables you to connect an usb ACR122U NFC card scanner to a computer and access it using Socket.IO.

Features

  • Read UUID from nfc cards and send them over Socket.IO.
  • Websocket messages to start and stop the polling for cards.
  • Websocket messages to give a confirmation or error beep and light signal.
  • Automatically reconnect to the reader when interrupted.

Installation

You can install this package from PyPI.

pip install acr122u-websocket

Usage

  1. Connect the ACR122U reader to the computer
  2. Run the app
    python -m acr122u_websocket.app
    

API

You can connect to the webserver using Socket.IO. These are the available events:

polling

Start or stop the polling.

Request

  • start to start the polling.
  • stop to stop the polling.

Reply

  • no card reader connected if no card reader is connected.
  • polling started if the polling has (already) started.
  • polling stopped if the polling has (already) stopped.
  • invalid message if the message is neither start nor stop.

status indicator

Set the status indicator.

Request

  • confim to play the confirming status.
  • error to play the error status.

Reply

  • no card reader connected if no card reader is connected
  • confirm status set if the confirm beep and light have been show
  • error status set if the error beep and light have been show
  • invalid message if the message is neither confirm nor error

card scanned

Broadcasts when a card has been scanned

Broadcast

  • {"uuid": [..]} - An object containing the uuid in the form of a list of integers.

Example

See an example webpage at test.html.

This page is also served on http://localhost:8080/test.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.418 Apr 20235

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
robertdijk/acr122u-websocket

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:24 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e086e851d603343b6fa30248ac3759b4c07ceb5cad91ffa17e11c935d9d0cc29