Skip to content

Discuss the modularization of WoT scripts #192

Open
@vcharpenay

Description

@vcharpenay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RuntimeRuntime-related topicsScript ManagementHow to manage/control scriptsfor next iterationPlanned or postponed topics for the futurepriority: lowIssues that might be deferred for lateruse caseDescribes a scenario that may be useful for technical decisions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions