node-red-contrib-interval-schedule 1.0.5
A custom Node-RED node
node-red-contrib-interval-schedule
A node that configures scheduled tasks based on received MQTT messages
FEATURES
- Received MQTT Example
"command" | "name" | "intervalTime" | "payload" |
---|---|---|---|
"add" | "TimerForTemp" | "10" | "reportName":"Temp","plcInputList":[ {},{},{} ] |
"remove" | "TimerForTemp" | igenored || null | igenored || null |
- JSON
{
"command":"add",
"name":"o2",
"intervalTime": "4",
"payload": {
"reportName" : "温度",
"plcInputList" : [
{
"func": "ReadBool",
"body": {
"name": "HIM_Auto_Manual",
"address": "DB8.DBX0.0"
}
},
{
"func": "ReadFloat",
"body": {
"name": "Output_Angle[1]",
"address": "DB8.DBW266"
}
}
]
}
}
Any data can be stored in the payload, and the node will send the payload content to the next node at the configured time interval
在payload中可以存储任意数据,节点会将payload内容按配置的时间间隔发送至下一个节点
- Output
"payload" |
---|
any(Object) |
- JSON
{
"reportName":"温度",
"plcInputList": [
{
"func":"ReadBool",
"body": {
"name":"HIM_Auto_Manual",
"address":"DB8.DBX0.0"
}
},
{
"func":"ReadFloat",
"body": {
"name":"Output_Angle[1]",
"address":"DB8.DBW266"
}
}
]
}
When adding a timer with a name that already exists, it will be updated to the last received
添加一个名字已存在的计时器时,会更新为上一次收到的