I’m using the IPCamera Binding in a very basic way, essentially to populate an Image Item to show on my MainUI.
I’ve configured the Thing with 15000 as the Poll Time and Image Channel Settings to follow the poll time.
UID: ipcamera:generic:garage
label: Garage Camera
thingTypeUID: ipcamera:generic
configuration:
mjpegOptions: -q:v 5 -r 2 -vf scale=640:-2 -update 1
ipAddress: pixel2
mjpegUrl: http://galaxynote:8083/axis-cgi/mjpg/video.cgi?camera=1
updateImageWhen: "1"
gifPreroll: 0
ffmpegLocation: /usr/bin/ffmpeg
serverPort: 9999
ffmpegOutput: /etc/openhab/html/camera1/
ipWhitelist: DISABLE
mp4OutOptions: -c:v copy -c:a copy
pollTime: 15000
password: hes10d27
port: 8083
snapshotUrl: http://galaxynote:8083/axis-cgi/jpg/image.cgi?camera=1
snapshotOptions: -an -vsync vfr -q:v 2 -update 1
username: admin
ffmpegInput: http://galaxynote:8083/axis-cgi/mjpg/video.cgi?camera=2
hlsOutOptions: -strict -2 -f lavfi -i aevalsrc=0 -acodec aac -vcodec copy
-hls_flags delete_segments -hls_time 2 -hls_list_size 4
gifOutOptions: -r 2 -filter_complex
scale=-2:360:flags=lanczos,setpts=0.5*PTS,split[o1][o2];[o1]palettegen[p];[o2]fifo[o3];[o3][p]paletteuse
NOTE: I’m using TinyCam on an old Android device to get a stream from my Wyze cameras. TinyCam does all the CCTV stuff so all I’m doing with the IPCam binding it populating that Image Item. This seems to work better than using a webview or other elements to poll TinyCam directly.
However, no matter what I set the pollTime to I see the following warning in the logs:
021-03-19 09:34:35.785 [WARN ] [era.internal.handler.IpCameraHandler] - The Image channel is set to update more often than 8 seconds. This is not recommended. The Image channel is best used only for higher poll times. See the readme file on how to display the cameras picture for best results or use a higher poll time.
I’m not sure if I’m doing something wrong or if there is a bug that needs to be posted to github or what.