Since I had already added recently an auto refresh mechanism, I would like to have it working correctly now. Especially since that will make the flow less complex.
I have pushed a fix to the fix-refresh-status branch on Github. Would be nice if you could install and test this fix:
npm install bartbutenaers/node-red-contrib-onvif-nodes#fix-refresh-status
I have executed some tests myself, with an automatic refresh interval of 5 seconds:
Which means that every 5 seconds a request is being sent to the camera, to see whether it is alive or not. And if it was previously disconnected and now connected, then it should automatically get all the config from the device.
I have been testing two scenario's:
- The camera is disconnected when Node-RED is started. Afterwards the camera becomes connected.
2 The camera is temporarily down when Node-RED is running, but shortly afterwards the camera becomes connected again.
In both cases it seemed to be working fine: the node status is updated almost immediately. But due to the Onvif issues from last weekend, I would appreciate if you could also test this. Or anybody else ...