Hikvision OSD / overlay text

domoticz / out retrieves temperature information and sends it to the camera as osd text

[{"id":"e6698485.8469d","type":"tab","label":"Hikvision OK","disabled":false,"info":""},{"id":"3af0aa23.575896","type":"http request","z":"e6698485.8469d","name":"Hikvision","method":"PUT","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.201/ISAPI/System/Video/inputs/channels/1/overlays/text","tls":"","persist":false,"proxy":"","authType":"basic","x":1180,"y":240,"wires":[["3d8440a6.955a88"]]},{"id":"3d8440a6.955a88","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1330,"y":240,"wires":[]},{"id":"c01c8258.5b52a8","type":"inject","z":"e6698485.8469d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"KMTronic status query","payload":"","payloadType":"date","x":130,"y":260,"wires":[["f8ccd1b7.13524","acc57477.0b6c6"]]},{"id":"f8ccd1b7.13524","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":320,"y":360,"wires":[]},{"id":"acc57477.0b6c6","type":"http request","z":"e6698485.8469d","name":"Olohuone KMtronic","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.2/status.xml","tls":"","persist":false,"proxy":"","authType":"","x":370,"y":260,"wires":[["bfdf568c.de1cf8","ee63ed09.53eee8"]]},{"id":"bfdf568c.de1cf8","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":360,"wires":[]},{"id":"ee63ed09.53eee8","type":"xml","z":"e6698485.8469d","name":"","property":"payload","attr":"","chr":"","x":550,"y":260,"wires":[["6effdb17.2095c4","f66638bf.3e38d"]]},{"id":"6effdb17.2095c4","type":"function","z":"e6698485.8469d","name":"","func":"var temp1 = { payload: msg.payload.response.sensor[0].temp[0]};\nvar temp2 = { payload: msg.payload.response.sensor[1].temp[0]};\nvar temp3 = { payload: msg.payload.response.sensor[2].temp[0]};\nvar temp4 = { payload: msg.payload.response.sensor[3].temp[0]};\n\nreturn [temp1,temp2,temp3,temp4];","outputs":4,"noerr":0,"initialize":"","finalize":"","x":700,"y":260,"wires":[["a11b9bbd.6d3e88"],["3a453e88.aaee4a","b6fe080a.0a4e1"],["88b81bdd.28d668"],["c92878e8.c02fc8"]]},{"id":"a11b9bbd.6d3e88","type":"debug","z":"e6698485.8469d","name":"Kellari","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1010,"y":120,"wires":[]},{"id":"3a453e88.aaee4a","type":"debug","z":"e6698485.8469d","name":"Olohuone","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1020,"y":200,"wires":[]},{"id":"88b81bdd.28d668","type":"debug","z":"e6698485.8469d","name":"WC","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1010,"y":280,"wires":[]},{"id":"c92878e8.c02fc8","type":"debug","z":"e6698485.8469d","name":"Keittiƶ","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1010,"y":360,"wires":[]},{"id":"f66638bf.3e38d","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":360,"wires":[]},{"id":"b6fe080a.0a4e1","type":"function","z":"e6698485.8469d","name":"","func":"var talooh = msg.payload;\nmsg.payload = '<TextOverlayList><TextOverlay><id>1</id>\t<enabled>true</enabled><displayText>Olohuone ' + talooh + ' Ā°C</displayText></TextOverlay></TextOverlayList>';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1020,"y":240,"wires":[["3af0aa23.575896"]]}]

Simple test

[{"id":"e6698485.8469d","type":"tab","label":"Hikvision Test","disabled":false,"info":""},{"id":"3af0aa23.575896","type":"http request","z":"e6698485.8469d","name":"Hikvision","method":"PUT","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.201/ISAPI/System/Video/inputs/channels/1/overlays/text","tls":"","persist":false,"proxy":"","authType":"basic","x":800,"y":160,"wires":[["3d8440a6.955a88"]]},{"id":"3d8440a6.955a88","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":160,"wires":[]},{"id":"c01c8258.5b52a8","type":"inject","z":"e6698485.8469d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"30","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":410,"y":160,"wires":[["f8ccd1b7.13524","b6fe080a.0a4e1"]]},{"id":"f8ccd1b7.13524","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":120,"wires":[]},{"id":"b6fe080a.0a4e1","type":"function","z":"e6698485.8469d","name":"","func":"var talooh = 5;\nmsg.payload = '<TextOverlayList><TextOverlay><id>1</id>\t<enabled>true</enabled><displayText>Temp ' + talooh + 'Ā°C</displayText></TextOverlay></TextOverlayList>';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":620,"y":160,"wires":[["3af0aa23.575896","5d26ab8f.4df034"]]},{"id":"5d26ab8f.4df034","type":"debug","z":"e6698485.8469d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":120,"wires":[]}]
2 Likes

Thanks - I'm sure I will find a use for this.

A few other cameras I get like foscam, camhi, hd megapixel and ipc someone model

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.