3.1. Tags

exception backendapp.tags.TagDecodeFailedError(tagid, serial, decoded)[source]

Tag Decode Failed Error

The tag serial number did not decode to the tag id

__init__(tagid, serial, decoded)[source]
class backendapp.tags.TagService[source]

Create, find, simulate and delete tags.

create(**kwargs) backendapp.tags.models.Tag[source]

Return a new Tag instance, which is saved into the database.

Parameters

**kwargs

instance parameters

Returns

The newly created tag.

get_by_serial(serial: str) backendapp.tags.models.Tag[source]

Find a Tag in the database. Raise a 404 HTTPException if none exists.

Parameters

serial – 8 character alphanumeric string.

Returns

The tag.

simulate(id, frontendurl, nsamples=100, smplintervalmins=10, format=1, usehmac=True, batvoltagemv=3000, bor=False, svsh=False, wdt=False, misc=False, lpm5wu=False, clockfail=False, tagerror=False)[source]

Get URL that would be generated by a tag.