steipete/camsnap — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple command line tool for home security cameras that can grab a still image, record a short video clip, and watch for motion from RTSP or ONVIF cameras.

I want to be able to add cameras by name with host, username, password, port, protocol, stream, and any special RTSP path, then run easy commands like snap kitchen, clip kitchen, or watch kitchen. It should save camera settings in a normal config file so I don’t have to repeat all the flags every time.

It needs to work with common camera quirks, especially Tapo cameras and UniFi Protect RTSP token URLs. Use ffmpeg for the media work, support dropping or converting audio for mp4 clips, and let me choose tcp or udp RTSP when needed.

For motion watching, compare frames and trigger a shell command when motion passes a threshold, with useful environment variables and optional JSON output. Also add discover and doctor commands so I can find ONVIF cameras and debug auth or network problems. Look up current docs online if you need to.

Want more depth? Deep Reverse