i might have overstated what i need.. i dont really need perfect accuracy but i need it to be somewhere close. the current method i have drifts out by 2 or 3 seconds over 20 second countdown which is too much.. if the timing was within 100 ms that would be ok..
what i am doing is trying to display a countdown timer in an OBS scene.. the reason i thought it might be possible to do it with accuracy is because i also have another flow with an OSC node talking to some audio software and it keeps the timeline counter from that very accurate..
here is the heartbeat loop thing i mentioned..
[
{
"id": "e1ef5728e9206b4a",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "bfe690abb7f991fd",
"type": "trigger",
"z": "e1ef5728e9206b4a",
"name": "heartbeat",
"op1": "",
"op2": "",
"op1type": "nul",
"op2type": "payl",
"duration": "1",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "0",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 600,
"y": 280,
"wires": [
[
"dcc79dbed557c3d2"
]
],
"outputLabels": [
"send \"fail\" if not feeded"
]
},
{
"id": "dcc79dbed557c3d2",
"type": "change",
"z": "e1ef5728e9206b4a",
"name": "minus 1",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload - 1",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 740,
"y": 280,
"wires": [
[
"bfe690abb7f991fd",
"f8badec6ca1b948d"
]
]
},
{
"id": "ea3b9988e49f747c",
"type": "inject",
"z": "e1ef5728e9206b4a",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "3000",
"payloadType": "num",
"x": 430,
"y": 280,
"wires": [
[
"bfe690abb7f991fd"
]
]
},
{
"id": "f8badec6ca1b948d",
"type": "debug",
"z": "e1ef5728e9206b4a",
"name": "debug 119",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 280,
"wires": []
}
]