OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

DeviceMetadata

class optris_sdk.discovery.DeviceMetadata

The whole host-side record for one camera, as a mapping.

The name is one key in this; set_device_name is a shortcut for metadata[DEVICE_NAME_KEY] = name. Anything else is yours to define, and a new key needs no new API.

Reads and writes go straight through to the store rather than being cached, so two processes recording different keys about the same camera do not overwrite each other's::

metadata = optris_sdk.DeviceMetadata('21074191')
metadata['location'] = 'line 4, north end'
print(dict(metadata.items()))

DeviceMetadata — methods

keys()

Every key recorded for this camera, in the SDK's order.

items()

get(key, default = '')

One value, or default when the key is not recorded.

__getitem__(key)

__setitem__(key, value)

__contains__(key)

__iter__()

__len__()

clear()

Forget everything about this camera, the name included.

__repr__()