DIY digital doorbell / peephole camera

If it helps, I have mine running in Openhab (snapshots every second working great and animated gif only at this stage) with the following setup.

EDIT: I have mjpeg stream working in openhab but it will need a newer binding version to work. You MUST have the stream stopped in the cameras webpage for Openhab to have access as this camera only allows 1 stream to be open at a time. This binding allows you to open more streams on multiple devices and works.

camera.things

Thing ipcamera:HTTPONLY:TTGoCamera "TTGo Camera" @ "Cameras"
[
	IPADDRESS="192.168.1.181", POLL_CAMERA_MS=1000, SERVER_PORT=54321,
	IP_WHITELIST="DISABLE", IMAGE_UPDATE_EVENTS=1, UPDATE_IMAGE=true, GIF_PREROLL=1, GIF_POSTROLL=6,
	SNAPSHOT_URL_OVERRIDE="http://192.168.1.181/capture",
	STREAM_URL_OVERRIDE="http://192.168.1.181:81/stream",
	FFMPEG_OUTPUT="/tmp/TTGoCamera/", FFMPEG_INPUT="http://192.168.1.181:81/stream",
	FFMPEG_HLS_OUT_ARGUMENTS="Not much chance your CPU can make this work in realtime"
]

camera.items

Image  TTGoCameraImage { channel="ipcamera:HTTPONLY:TTGoCamera:image" }
Switch TTGoCameraCreateGif "Create animated GIF" { channel="ipcamera:HTTPONLY:TTGoCamera:updateGif" }
String TTGoCameraMjpegStreamUrl "Mjpeg Stream" { channel="ipcamera:HTTPONLY:TTGoCamera:streamUrl" }
3 Likes