First general question. Is there some documentation on the openhab2 rule syntax with nice examples that I can refer to, so that i do not need to bother anybody But, of course this is a great community.
My problem is the following.
I have a PTZ from Foscam that i do not allow access to the internet (Model is R2). A 1 second snapshot is put onto my sitemap just using and Image URL.
For those how are interested the URL for this model is:
Now I want to be able to control the PTZ of the camera. Unfortunately the camera does not have url-commands that reflect the button in the GUI of the camera. The command is to either move the camera to the maximum level (for example to the very right) or to stop. My idea now is to create an item
Number F0_NI_CA_01_FE_CMD "PTZ Nico's room Fast Ethernet" <oremote>
that has the mappings on the sitemap
Switch item=F0_NI_CA_01_FE_CMD label="Control Camera" icon="oremote" mappings=[0="Left", 1="Right", 2="Up", 3="Down"]
With the example of pushing the button “Right” is want the camera to do the following:
- Execute http://192.168.40.101:88/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveRight&usr=username&pwd=password&
- wait for 1 second
- Execute http://192.168.40.101:88/cgi-bin/CGIProxy.fcgi?cmd=ptzStopRun&usr=username&pwd=password&
Can someone point me into the right direction on this problem.
Thanks already in advance.
- Platform information:
- Hardware: Raspberry PI 3 b+
- Java Runtime Environment: 1.8.0_201-b09
- openHAB version: 2.4.0-1