1.0.5 • Published 11 months ago

node-red-contrib-interval-schedule v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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 || nulligenored || 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
添加一个名字已存在的计时器时,会更新为上一次收到的

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago