smartposter¶
Create an NFC Forum Smart Poster Record.
Synopsis¶
ndeftool smartposter [OPTIONS] RESOURCE
ndeftool smp [OPTIONS] RESOURCE
Description¶
The smartposter command creates an NFC Forum Smart Poster Record for the resource identifier. A smart poster record combines the uniform resource identifier with additional data such as titles and icons for representation and processing instructions for the reader application.
A smart poster record should have title text for the desired languages, added
with repetitive -t
options. An English title text may also be added with
-T
. The recommended action set with -a
tells the reader application to
either run the default action for the URI, save it for later or open for
editing.
A smart poster may also provide a collection of icons for graphical
representation. An icon file is added with the -i
option that may be given
more than once. The icon type is determined from the file content and must be an
image or video mime type.
Options¶
-
-T
TEXT
¶ Smartposter title for language code ‘en’.
-
-t
LANG TEXT
¶ Smartposter title for a given language code.
-
-a
[exec|save|edit]
¶ Recommended action for handling the resource.
-
-i
FILENAME
¶ Icon file for a graphical representation.
-
--help
¶
Show this message and exit.
Examples¶
An NFC Forum Smart Poster Record with just a link, nothing more useful than a URI Record.
$ ndeftool smartposter http://nfcpy.org print
NDEF Smartposter Record ID '' Resource 'http://nfcpy.org'
Same as above but with an English title.
$ ndeftool smartposter -T 'nfcpy project' http://nfcpy.org print
NDEF Smartposter Record ID '' Resource 'http://nfcpy.org' Title 'nfcpy project'
Titles for other languages must be given with a language code.
$ ndeftool smartposter -t de 'Google Deutschland' https://www.google.de print
NDEF Smartposter Record ID '' Resource 'https://www.google.de' Title 'Google Deutschland'
An emergency call number should be called immediately.
$ ndeftool smartposter -T 'EMERGENCY CALL 911' -a exec 'tel:911' print -l
NFC Forum Smart Poster Record [record #1]
resource tel:911
action exec
title_en EMERGENCY CALL 911
Add an icon file to a smart poster.
$ ndeftool smp -i images/ndeftool.png https://github.com/nfcpy/ndeftool print -l
NFC Forum Smart Poster Record [record #1]
resource https://github.com/nfcpy/ndeftool
image/png 19941 byte