Server API
When the server is running (default port 4444, https:// or http:// depending on the TLS setting):
- Web interface (
/) – live view;/#settingsopens the control panel directly. - MJPEG stream (
/video/mjpeg) –multipart/x-mixed-replace; boundary=frame, works in browsers and e.g. the Home Assistant MJPEG camera. - H.264 stream (
/video/h264) – raw Annex-B H.264, e.g.mpv "https://[ip_address]:4444/video/h264". - Snapshot (
/video/snapshot) – a single JPEG;?camera=<id|front|back|toggle>selects the camera. - Device info (
/info.json) – cameras (includingzoom.min,zoom.maxandzoom.hwMin, the lowest zoom the camera really accepts), supported resolutions, battery, Wi-Fi strength and current settings. - Stream diagnostics (
/stats.json) – frame gaps, socket write times, skipped frames, resyncs, disconnects, Wi-Fi lock state and the last 40 camera, encoder and viewer events. - Recording:
POST /record/start,POST /record/stop,GET /record/status. Files are stored asYYYY/MM/DD/YYYY-MM-DD-HHMMSS-<manual|motion|continuous|timelapse>.mp4. - Recordings:
/files(browser),/files.json?dir=…(JSON),GET|HEAD|DELETE /files/<path>(play with range requests, download, delete). - Streaming on/off:
/control/start,/control/stop,/control/status– the port stays open so streaming can be switched back on remotely. - Time-lapse:
/timelapse.json(status),/timelapse/settings?enabled=1&interval=<0|5|10|15|30|60|120|360>&daily=HH:MM&skip_dark=1&size=<1920|2560|3840>&start=YYYY-MM-DD(interval=0= once a day),/timelapse/capture(photo now),/timelapse/new?start=YYYY-MM-DD(new grow),/timelapse/frame.jpg?i=<index>&w=<width>,/timelapse/render?fps=<12|24|30|60>&q=<720|1080|2160>&from=<day>&to=<day>&overlay=1&deflicker=1&lang=<de|en>(MP4 into the recordings). Photos are kept in the app's own folder (Android/data/<app id>/files/Pictures/timelapse) and are removed when the app is uninstalled; finished videos stay with the recordings. - Web app:
/manifest.webmanifest,/icon-192.png,/icon-512.png,/apple-touch-icon.png(public). - Light watcher:
/lightwatch.json(status and the last 30 events:light_off,light_on,ok),/lightwatch/settings?enabled=1|0&on=HH:MM&off=HH:MM,/lightwatch/check(check now). - Discovery: the camera announces itself as DNS-SD service
_growcinema._tcp(TXTtls=1|0).
Remote control via query parameters on any GET request, e.g. https://[ip_address]:4444/?torch=on&zoom=2.0:
camera, resolution, fps, stream_bitrate, stream_bitrate_mode, stream_keyframe_interval, stream_denoise, zoom, scale, exposure, brightness=<-50..50>, contrast=<-50..50>, saturation=<-100..100>, torch=<on|off|toggle>, focus_distance, snapshot_res, camera_always_on=<1|0>, recording_mode=<off|notify|motion|continuous>, recording_segment_minutes, recording_storage_limit_percent, motion_sensitivity, motion_record_stop_delay, rotate, mirror, crop=<left,top,right,bottom|reset>, api, night_mode, night_exposure, night_iso.
Keep camera running (camera_always_on=1|0, on by default): the camera and the H.264 encoder keep running with no viewer, so the picture appears at once; off, the camera only runs while someone watches.
Recording modes: No automatic recording (records only on demand), Notify on motion (camera always on, ONVIF motion events, no recording), Motion clips (records -motion.mp4 while there is motion), Continuous recording (-continuous.mp4 segments; the oldest clips are deleted at the configured storage usage).