Skip to content

Instantly share code, notes, and snippets.

@dirkjanfaber
Created December 11, 2022 13:31
Show Gist options
  • Save dirkjanfaber/188d5abb4dc134b6d31987783739bae3 to your computer and use it in GitHub Desktop.
Save dirkjanfaber/188d5abb4dc134b6d31987783739bae3 to your computer and use it in GitHub Desktop.
Update interval of Victron output node in Node-RED flow
[
{
"id": "d1dcac4acb3637a1",
"type": "inject",
"z": "bb43ebac.8ecdd8",
"name": "interval every 30 sec",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "30",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 280,
"y": 740,
"wires": [
[
"89472201c34427cd"
]
]
},
{
"id": "89472201c34427cd",
"type": "change",
"z": "bb43ebac.8ecdd8",
"name": "Read flow.myvalue",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "myvalue",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 740,
"wires": [
[
"1e69c47d230e906b"
]
]
},
{
"id": "8e295dd58c173a56",
"type": "change",
"z": "bb43ebac.8ecdd8",
"name": "Store value to flow.myvalue",
"rules": [
{
"t": "set",
"p": "myvalue",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 680,
"wires": [
[]
]
},
{
"id": "731cae8e9495ceb5",
"type": "inject",
"z": "bb43ebac.8ecdd8",
"name": "irregular updating value",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 290,
"y": 680,
"wires": [
[
"8e295dd58c173a56"
]
]
},
{
"id": "1e69c47d230e906b",
"type": "influxdb out",
"z": "bb43ebac.8ecdd8",
"influxdb": "9cb94f389c863d5f",
"name": "store myvalue to influxdb",
"measurement": "",
"precision": "",
"retentionPolicy": "",
"database": "database",
"precisionV18FluxV20": "ms",
"retentionPolicyV18Flux": "",
"org": "organisation",
"bucket": "bucket",
"x": 770,
"y": 740,
"wires": []
},
{
"id": "9cb94f389c863d5f",
"type": "influxdb",
"hostname": "127.0.0.1",
"port": "8086",
"protocol": "http",
"database": "myvalues",
"name": "influxdb",
"usetls": false,
"tls": "",
"influxdbVersion": "1.8-flux",
"url": "http://192.168.1.1:8086",
"rejectUnauthorized": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment