Modules

ThingsDB can be extended with modules.

Function scope description
del_module @thingsdb Delete a module.
has_module @thingsdb Check if a module exists.
module_info all scopes Show information about a module.
modules_info all scopes Show information about all module.
new_module @thingsdb Create a new module.
rename_module @thingsdb Rename an existing module.
restart_module @node Restart a module on a single node.
set_module_conf @thingsdb Change the module configuration.
set_module_scope @thingsdb Change the module scope.

Building modules

Modules can be created in any language. For some languages there exists a library which makes building a module an easy task. Refer below to a list of libraries and examples:

Language Library Example
Go go-timod Demo (echo-reply example)
Python py-timod Demo (echo-reply example)