Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 2.21 KB

smartposter.rst

File metadata and controls

81 lines (49 loc) · 2.21 KB

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 [execedit]

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

Same as above but with an English title.

ndeftool smartposter -T 'nfcpy project' http://nfcpy.org print

Titles for other languages must be given with a language code.

ndeftool smartposter -t de 'Google Deutschland' https://www.google.de print

An emergency call number should be called immediately.

ndeftool smartposter -T 'EMERGENCY CALL 911' -a exec 'tel:911' print -l

Add an icon file to a smart poster.

ndeftool smp -i images/ndeftool.png https://github.com/nfcpy/ndeftool print -l