Ten IPCam OSD / overlay text

Ten IPCam OSD / overlay text test
dahua, hikvision, foscam milesight, fisheye, hd megapixel, floureon, etc...

[{"id":"4a861abf.3250cc","type":"tab","label":"IPCam OSD text overlay test","disabled":false,"info":""},{"id":"387112bc.cc07ce","type":"inject","z":"4a861abf.3250cc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"15","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":170,"y":460,"wires":[[]]},{"id":"4c869bf7.ce39cc","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = '&Text1OSDEnable=1&Text1OSDX=2&Text1OSDY=2&OSD1Size=3&OSD1Str=Temp is ' + xtemp + '°C&Text2OSDEnable=0&Text3OSDEnable=0&Text4OSDEnable=0&Text5OSDEnable=0&MultipleOSDEnable=0&DTimeOSDEnable=1&DTimeOSDX=95&DTimeOSDY=2&DTimeOSDSize=3';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":80,"wires":[["330f01d6.16f79e","174e7199.c96cf6"]]},{"id":"330f01d6.16f79e","type":"http request","z":"4a861abf.3250cc","name":"HD Megapixel OK","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.1.119/form/OSDSet/","tls":"","persist":false,"proxy":"","authType":"basic","x":670,"y":80,"wires":[["e3ac9cc3.aa724"]]},{"id":"e3ac9cc3.aa724","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":80,"wires":[]},{"id":"59838515.c9309c","type":"http request","z":"4a861abf.3250cc","name":"Fisheye OK","method":"PUT","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.123/netsdk/video/encode/channel/101","tls":"","persist":false,"proxy":"","authType":"basic","x":650,"y":160,"wires":[["512d1da5.d7319c"]]},{"id":"acfbc45d.f85cc","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = '{\"channelName\": \"Temp is '+ xtemp +'\":';\nreturn [msg];\n\n//°C not work\n// More settings\n// {\"datetimeOverlay\":{\"enabled\":true,\"dateFormat\":\"YYYY/MM/DD\",\"timeFormat\":24,\"regionX\":70.1,\"regionY\":0,\"displayWeek\":true},\"channelNameOverlay\": {\"enabled\":true,\"regionX\": 0.4,\"regionY\": 0.1},\"deviceIDOverlay\":{\"enabled\":true,\"regionX\":87.6,\"regionY\":99.3}}: \n// {\"channelName\": \"Temp is '+ xtemp +'\":,\"h264Profile\":\"high\",\"resolution\":\"1280x960\",\"freeResolution\":false,\"resolutionWidth\":1920,\"resolutionHeight\":1080,\"bitRateControlType\":\"VBR\",\"constantBitRate\":1500,\"frameRate\":20}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":160,"wires":[["59838515.c9309c","2fab3fb7.3fed3"]]},{"id":"512d1da5.d7319c","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":160,"wires":[]},{"id":"69a80cf5.81855c","type":"mqtt in","z":"4a861abf.3250cc","name":"","topic":"Sola","qos":"2","datatype":"json","broker":"de0271bd.ca037","x":150,"y":280,"wires":[["a6e82e9d.ef111"]]},{"id":"a6e82e9d.ef111","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":170,"y":100,"wires":[]},{"id":"174e7199.c96cf6","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":40,"wires":[]},{"id":"2fab3fb7.3fed3","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":120,"wires":[]},{"id":"17e2536a.fb900d","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = 'http://192.168.10.115/cgi-bin/hi3510/param.cgi?cmd=setoverlayattr&-region=1&-show=1&-name=Temp is ' + xtemp + '°C&-usr=vihti&-pwd=koivutie7';\nreturn [[msg]];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":240,"wires":[["d5a28b56.8808e","8640b11f.04abc"]]},{"id":"d5a28b56.8808e","type":"http request","z":"4a861abf.3250cc","name":"CAMHI OK","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.115/cgi-bin/hi3510/param.cgi?cmd=setoverlayattr&-region=1&-show=1&-name=Kanala ' + xtemp + '°C&-usr=vihti&-pwd=koivutie7","tls":"","persist":false,"proxy":"","authType":"","x":650,"y":240,"wires":[["df5fcbf9.7cccb"]]},{"id":"df5fcbf9.7cccb","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":240,"wires":[]},{"id":"8640b11f.04abc","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":200,"wires":[]},{"id":"b4c8ab2e.df6498","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":280,"wires":[]},{"id":"41654c93.be8054","type":"change","z":"4a861abf.3250cc","name":"","rules":[{"t":"set","p":"query","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":320,"wires":[["6b7f721c.39849c"]]},{"id":"70ccd7bb.f86f1","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nvar foscam = 'Temp is ';\nmsg.payload = '' + foscam +''+ xtemp + '';\nreturn [[msg]];\n\n//°C merkki ei toimi tulee kiinan merkkejä","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":320,"wires":[["41654c93.be8054","b4c8ab2e.df6498"]]},{"id":"6b7f721c.39849c","type":"http request","z":"4a861abf.3250cc","name":"Foscam OK","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.113/cgi-bin/CGIProxy.fcgi?usr=vihti&pwd=koivutie7&cmd=setDevName&devName={{{query}}}&format=json","tls":"","persist":false,"proxy":"","authType":"","x":890,"y":320,"wires":[["a7b9fe7c.9ac5f8"]]},{"id":"a7b9fe7c.9ac5f8","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":320,"wires":[]},{"id":"c0a7f254.a50c7","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = '<TextOverlayList><TextOverlay><id>1</id>\t<enabled>true</enabled><displayText>Temp is ' + xtemp + '°C</displayText></TextOverlay></TextOverlayList>';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":400,"wires":[["4f3fb62a.3f201","1a4c460e.dbf662"]]},{"id":"1a4c460e.dbf662","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":360,"wires":[]},{"id":"4f3fb62a.3f201","type":"http request","z":"4a861abf.3250cc","name":"Hikvision OK","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":650,"y":400,"wires":[["95aeb4a3.49592"]]},{"id":"95aeb4a3.49592","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":400,"wires":[]},{"id":"a30205cc.0f369","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = 'Temp is ' + xtemp + '°C';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":480,"wires":[["b5e019e0.4d6e28","b266c827.2d67a"]]},{"id":"b266c827.2d67a","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":440,"wires":[]},{"id":"b5e019e0.4d6e28","type":"change","z":"4a861abf.3250cc","name":"","rules":[{"t":"set","p":"query","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":480,"wires":[["8ca7744.06a5808"]]},{"id":"8ca7744.06a5808","type":"http request","z":"4a861abf.3250cc","name":"Dahua OK","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.108/cgi-bin/configManager.cgi?action=setConfig&VideoWidget[0].CustomTitle[1].Text={{{query}}}&format=json","tls":"","persist":false,"proxy":"","authType":"digest","x":890,"y":480,"wires":[["b7b3d76b.65d47"]]},{"id":"b7b3d76b.65d47","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":480,"wires":[]},{"id":"4f448ada.2728ac","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = '<?xml version=\"1.0\" encoding=\"utf-8\"?><request><osd ver=\"2.0\"><system><osditem><active>0</active><xpos>9</xpos><ypos>16</ypos></osditem></system><datetime><osditem><active>0</active><xpos>9</xpos><ypos>16</ypos></osditem></datetime><picture><osditem><active>0</active><xpos>992</xpos><ypos>100</ypos></osditem></picture><custom><osditem><active>1</active><xpos>9</xpos><ypos>16</ypos></osditem><ctext>Temp is ' + xtemp + '</ctext></custom></osd></request>';\nreturn [msg];\n\n// °C not work","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":560,"wires":[["e209f925.0977c8","50b35cdc.8a2274"]]},{"id":"e209f925.0977c8","type":"http request","z":"4a861abf.3250cc","name":"IPC-JFY8PSH16A OK","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.1.120/action/set?subject=osd","tls":"","persist":false,"proxy":"","authType":"basic","x":680,"y":560,"wires":[["ed925caf.04fa7"]]},{"id":"50b35cdc.8a2274","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":520,"wires":[]},{"id":"ed925caf.04fa7","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":560,"wires":[]},{"id":"d8f5e10c.4d5e88","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = '&Text1OSDEnable=1&Text1OSDX=2&Text1OSDY=2&OSD1Size=3&OSD1Str=Temp is ' + xtemp +'°C&Text2OSDEnable=0&Text3OSDEnable=0&Text4OSDEnable=0&Text5OSDEnable=0&MultipleOSDEnable=0&DTimeOSDEnable=1&DTimeOSDX=95&DTimeOSDY=2&DTimeOSDSize=3';\nreturn [msg];","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":640,"wires":[["c8117f36.d2311"]]},{"id":"c8117f36.d2311","type":"http request","z":"4a861abf.3250cc","name":"IPD SecuPlug OK","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.124/form/OSDSet/","tls":"","persist":false,"proxy":"","authType":"basic","x":670,"y":640,"wires":[["77511a47.4a8664"]]},{"id":"77511a47.4a8664","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":890,"y":640,"wires":[]},{"id":"d741aeb5.50be2","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":600,"wires":[]},{"id":"733e20cd.debb8","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = msg.payload[\"bt.t\"];\nmsg.payload = 'Temp is ' + xtemp + '';\nreturn [msg];\n\n// °C not work","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":720,"wires":[["ae90d5d4.2bdd8","ad00129d.3a5b"]]},{"id":"dc4a5f69.759038","type":"http request","z":"4a861abf.3250cc","name":"V STARCAM OK","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.10.120/set_alias.cgi?alias={{{query}}}&next_url=alias.htm&loginuse=admin&loginpas=koivutie7","tls":"","persist":false,"proxy":"","authType":"","x":900,"y":720,"wires":[["953da4d6.772b"]]},{"id":"953da4d6.772b","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":720,"wires":[]},{"id":"ae90d5d4.2bdd8","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":680,"wires":[]},{"id":"ad00129d.3a5b","type":"change","z":"4a861abf.3250cc","name":"","rules":[{"t":"set","p":"query","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":720,"wires":[["dc4a5f69.759038"]]},{"id":"e5cc61a4.76fa1","type":"mqtt in","z":"4a861abf.3250cc","name":"","topic":"kanala/in","qos":"2","datatype":"json","broker":"de0271bd.ca037","x":140,"y":600,"wires":[["a9e90268.d5a4b"]]},{"id":"a9e90268.d5a4b","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":150,"y":540,"wires":[]},{"id":"ef6734ea.d9d8a8","type":"function","z":"4a861abf.3250cc","name":"","func":"var xtemp = 19;\nmsg.payload = 'Temp%20is%20' + xtemp + '';\nreturn [msg];\n\n// °C not work","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":800,"wires":[["9b18338b.1e0c18","7f4a2186.ced0f8"]]},{"id":"c5daa405.cec688","type":"http request","z":"4a861abf.3250cc","name":"Milesight OK","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.1.155/vb.htm?language=ie&textenable1=1&overlaytext1={{{query}}}&textposition1=0&datestampenable1=1&dateposition=1&dateformat=2&mslan=0","tls":"","persist":false,"proxy":"","authType":"basic","x":890,"y":800,"wires":[["5d55b248.3ef99c"]]},{"id":"5d55b248.3ef99c","type":"debug","z":"4a861abf.3250cc","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":800,"wires":[]},{"id":"9b18338b.1e0c18","type":"change","z":"4a861abf.3250cc","name":"","rules":[{"t":"set","p":"query","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":800,"wires":[["c5daa405.cec688"]]},{"id":"7f4a2186.ced0f8","type":"debug","z":"4a861abf.3250cc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":760,"wires":[]},{"id":"de0271bd.ca037","type":"mqtt-broker","z":"","name":"Localhost","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
1 Like