Discuss the modularization of WoT scripts #192
Labels
for next iteration
Planned or postponed topics for the future
priority: low
Issues that might be deferred for later
Runtime
Runtime-related topics
Script Management
How to manage/control scripts
use case
Describes a scenario that may be useful for technical decisions
Many WoT scripts on the client side are likely to be reusable across applications, in a similar fashion to Node-RED modules. For instance, control loop between sensors and actuators (temperature sensor vs. thermostat, brightness sensor vs. light switch, flow sensor vs. pump, etc.) could be implemented generically and instantiated for specific Things.
Standardizing a module mechanism for WoT would seem redundant with e.g. ES6 Modules. However, a way to annotate scripts with safety conditions may be an interesting feature. Safety conditions could be TD templates (e.g. expressed as JSON-LD frames), to constrain TDs to be consumed by the script. If consumed TDs do not match the template, an error could be thrown.
See also my position statement at the 2019 WoT workshop.
The text was updated successfully, but these errors were encountered: