setFeed()
setFeed(id | name,value)
Set custom feed value
Set the value of a custom feed.
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| id | name | number | string | yes | — | Feed ID |
| value | number | bool | yes | — | Feed Value |
Example
let watts = inputs("voltage").inst * inputs("amperage").inst; // calculate watts from our voltage and amperage
setFeed(0,watts); // set the custom feed value
setFeed(1,true); // Set a boolean type feed. Could also use 1 or 0 inplace of true or false