jeroenterheerdt / ring-hassio

A Home Assistant add-on for live streaming from Ring devices.
MIT License
131 stars 93 forks source link

How to take screenshots #19

Closed cmatte closed 3 years ago

cmatte commented 3 years ago

Hi There,

Thanks for the 1.3 update! Fixes the previous issue 👍

Can you help with more details on how to take screenshots?

Attempting to use the following creates a .m3u8 file into the .jpg file:

service: camera.snapshot
entity_id: [entityID]
filename: tmp/foo.jpg

foo.jpg:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:28
#EXTINF:2.000000,
stream28.ts
#EXTINF:2.000000,
stream29.ts
#EXTINF:2.000000,
stream30.ts
#EXTINF:2.000000,
stream31.ts
#EXTINF:2.000000,
stream32.ts
#EXTINF:2.000000,
stream33.ts

I am trying to mainly use the add-on to take screenshots and notify my devices of any rings, so this is key :)

Thank you!

jeroenterheerdt commented 3 years ago

As noted here (https://github.com/jeroenterheerdt/ring-hassio#taking-a-snapshot) you cannot take a screenshot at the moment. if you make it work somehow, let me know :)

Alexwijn commented 3 years ago

Sure, you can.

camera:
  - platform: ffmpeg
    input: http://hassio.local:port/public/stream.m3u8

Just make sure you have the ffmpeg integration installed.