2018-12-08 14:21:00 +01:00
|
|
|
Properties
|
|
|
|
===========
|
|
|
|
|
2018-12-09 22:20:33 +01:00
|
|
|
Properties can be use in all extensions.
|
|
|
|
During the startup the server scans all extension for variables of type Property.
|
|
|
|
Theses properties are exposed to the user for configuration during run time.
|
|
|
|
For example the user can set the GPIO number or the 1Wire Id.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Typical example how to use properties in an actor module.
|
|
|
|
|
|
|
|
Custom Actor
|
|
|
|
^^^^^^^^^^^^^
|
|
|
|
|
2019-01-05 23:27:29 +01:00
|
|
|
.. literalinclude:: ../../cbpi/extension/dummyactor/__init__.py
|
2018-12-09 22:20:33 +01:00
|
|
|
:caption: __init__.py
|
|
|
|
:name: __init__-py
|
|
|
|
:language: python
|
|
|
|
:linenos:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-08 14:21:00 +01:00
|
|
|
|
2019-01-05 23:27:29 +01:00
|
|
|
.. autoclass:: cbpi.api.Property
|
2018-12-08 14:21:00 +01:00
|
|
|
:members:
|
|
|
|
:private-members:
|
|
|
|
:undoc-members:
|
2018-12-09 22:20:33 +01:00
|
|
|
|
2018-12-08 14:21:00 +01:00
|
|
|
|