Hi
Ik zou graag tekst van Homey tonen op mijn camera’s.
Op deze pagina vond ik hoe het moet via Node Red.
https://www.iotwithus.com/hikvision-and-text-overlay/
Function node: we will form here the body of the request.
var text = msg.payload; msg.payload = '<TextOverlayList><TextOverlay><id>1</id> <enabled>true</enabled><displayText>Temp: ' + text + '°C</displayText></TextOverlay></TextOverlayList>' return msg;
HTTP request node settings:
- Method: PUT
- URL: http://camera-ip/ISAPI/System/Video/inputs/channels/1/overlays/text
- Use basic authentication: enter user and password for your camera
In the example above the function gets data from a temperature sensor and adds it to the camera. You can change the text between and to whatever you want.
Maar ik weet niet goed hoe ik het moet ‘vertalen’ naar Homey.
Wie kan helpen?