27.12.2018, 11:19
Hi
Please help me adapt script from other system to LM. In result we will see any object data on videostream (Works with Hikvision cameras). In simple words - if we open videocamera videostream on it we will see our data. I use Hikvision camera and now when I connect to it remotely using Hikvision videosoftware I see outside temperature and my heating device temperature. . etc..
How it works on my other system - at C:/ disk (win10) located 1.xml file. In 1.xml file also located coordinates in pixel where our data will be shown at videostream (from upper left corner - X and Y position of starting place for our text).. I insert values I need to show at my camera videostream to this 1.xml file. After that with curl.exe it sends to camera. This repeated every minute (Just cycle how often we want to update values at videostream..).
So, questions:
1. how put on LM SD card 1.xml file and later put data in 1.xml using script???
2. how execute curl command and use it with string in script above?
My script on other system:
$CONNSTRING = "http://camera_loginandpass@cameraIP/Video/inputs/channels/1/overlays/text/";
$value=getGlobal('Mainsity.Today_temp'); -- in our case we take LM's needed object's value and put it in 1.xml
file_put_contents('C:\1.xml', $xml);
exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1');
//$answer=exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1');
//echo $answer;
Alex
Please help me adapt script from other system to LM. In result we will see any object data on videostream (Works with Hikvision cameras). In simple words - if we open videocamera videostream on it we will see our data. I use Hikvision camera and now when I connect to it remotely using Hikvision videosoftware I see outside temperature and my heating device temperature. . etc..
How it works on my other system - at C:/ disk (win10) located 1.xml file. In 1.xml file also located coordinates in pixel where our data will be shown at videostream (from upper left corner - X and Y position of starting place for our text).. I insert values I need to show at my camera videostream to this 1.xml file. After that with curl.exe it sends to camera. This repeated every minute (Just cycle how often we want to update values at videostream..).
So, questions:
1. how put on LM SD card 1.xml file and later put data in 1.xml using script???
2. how execute curl command and use it with string in script above?
My script on other system:
$CONNSTRING = "http://camera_loginandpass@cameraIP/Video/inputs/channels/1/overlays/text/";
$value=getGlobal('Mainsity.Today_temp'); -- in our case we take LM's needed object's value and put it in 1.xml
file_put_contents('C:\1.xml', $xml);
exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1');
//$answer=exec('C:\curl.exe -T C:\1.xml '.$CONNSTRING.'1');
//echo $answer;
Alex