-
Notifications
You must be signed in to change notification settings - Fork 29
Module: NFC Reader
Ant edited this page Jul 12, 2026
·
14 revisions
DRAFT
Allows you to use an PC/SC compatible NFC reader to watch videos associated to NFC Cards/Tags.
We've tested with the ACS ACR122U NFC reader specifically. If you are using a different reader that is also PC/SC compatible but it isn't recognized please let us know.
| Option | Values | Info |
|---|---|---|
| Enabled | On/Off | Sets if the module should display in the main module list when you start 240-MP. |
| Resume Playback | Ask/Always/Never | 'Ask' will present you with an option to restart playback or resume, 'Always' will resume without asking and 'Never' will restart playback from the beginning without asking |
| YouTube Video Resolution | 480p (Default), 720p, 1080p | Set the resolution of the video to request from YouTube for playback. I recommend to keep this on 480p for the Raspberry Pi on a CRT for best performance |
| Auto Show Subtitles | On/Off/Forced Only | Sets your preference for subtitle display when starting playback. On means if a subtitle is available then it will be set to display be default (based on your language preference). Forced only means it will attempt to find a subtitle track with a forced flag based on your language preference and if not default to off. Off will default to off =). All options still allow you toggle during playback. |
| Subtitle Language | [Language] | Sets your preferred language for subtitles and works in conjunction with the Auto Show Subtitles setting |
- Connect a PC/SC compatible NFC Reader (we use and recommend the
ACS ACR122Ureader) - Make sure the necessary drivers are installed
- On Raspberry Pi:
- Run the following script from the project root to install the necessary drivers
sudo ./scripts/setup-nfc-reader.sh`
- Run the following script from the project root to install the necessary drivers
- On macOS:
- The PC/SC drivers are included by default on MacOS so plugging in a compatible NFC reader should just work
- On Raspberry Pi:
- Create a
nfc_mapping.jsonfile in the 240-MP data directory- On Raspberry Pi:
~/.local/share/240-MP/nfc_mapping.json - On macOS:
~/Library/Application Support/240-MP/nfc_mapping.json
- On Raspberry Pi:
- And add any card UIDs and video paths you'd like to use into that file.
- Example:
{ "7A:12:D0:3D": { "path": "/full-path-to-your-video-files/RoboCop (1987).mp4", "title": "Robocop (1987)" } } - Mapping values can be absolute paths, relative paths, direct media URLs, or YouTube page URLs (YouTube playback requires
yt-dlpto be installed). - The "title" property is optional, if its added it will be displayed in the UI as the title of the card
- Relative paths are resolved from the app/data roots at runtime.
- Example:
- Then go to
Settings > NFC Readerand setEnabledtoOn - Open NFC Reader from the module list
- Present a mapped card to start playback