IP Camera periodic snapshots

I’m using motionEye integration to watch my UDP IP Cameras in HA. Is there any solution to take snapshots every minute and save it either on intrnal drive or HDD attached to the HASSIO (RPI4) or at other network storage location?
thanks

I did this a while ago, but here is what I dug up;

File Permission

# configuration.yaml
homeassistant:
  allowlist_external_dirs:
    - /config/timelapse

# I think you need this too
ffmpeg:

Camera

# cameras.yaml
- platform: ffmpeg
  name: Chili Cam
  input: rtsp://192.168.80.73:554/unicast

Automation

# automations.yaml
- id: '1608163799249'
  alias: Take Snapshot of Chilis Every 4 Hours
  description: ''
  trigger:
  - platform: time_pattern
    hours: /4
  condition: []
  action:
  - service: camera.snapshot
    data:
      filename: /config/timelapse/chilis_{{ now().year }}_{{ now().month }}_{{ now().day
        }}_{{ now().hour }}_{{ now().minute }}_{{ now().second }}.jpeg
    entity_id: camera.chili_cam
  mode: single

I use a NAS which I mount on a docker-compose file which is mapped to that location. Not sure what your set up is. I can provide it if you want.

2 Likes

Thanks for solution, I have digged into motionEye settings and have managed to set automatic snapshots in the camera settings from motion detection, also there are many settings timewise.