Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Snapshot Streaming #49

Open
Gtt1229 opened this issue Oct 14, 2024 · 0 comments
Open

Feature Request - Snapshot Streaming #49

Gtt1229 opened this issue Oct 14, 2024 · 0 comments

Comments

@Gtt1229
Copy link

Gtt1229 commented Oct 14, 2024

Hello,

I previously used https://github.com/rogro82/PiPup where I could use a camera snapshot stream via a URI. I was wondering if that would be possible to implement?

For reference, the HomeAssistant implementation looks as such:

Rest entry:

pipup_url_on_tv:
 # Use with Webrtc camera as described here:
 # https://github.com/AlexxIT/WebRTC/wiki/Cast-or-share-camera-stream#html-page
  url: "http://192.168.X.X:7979/notify"
  content_type: 'application/json'
  verify_ssl: false
  method: 'post'
  timeout: 20
  payload: >
    {
      "duration": {{ duration | default(20) }},
      "position": {{ position | default(0) }},
      "title": "{{ title | default('') }}",
      "titleColor": "{{ titleColor | default('#50BFF2') }}",
      "titleSize": {{ titleSize | default(12) }},
      "message": "{{ message }}",
      "messageColor": "{{ messageColor | default('#fbf5f5') }}",
      "messageSize": {{ messageSize | default(14) }},
      "backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
      "media": { 
        "web": {
          "uri": "{{ url }}", 
          "width": {{ width | default(640) }},
          "height": {{ height | default(480) }}
        }
      }
    }

Script:

data:
  title: Door
  duration: 20
  message: Someone is at the front door
  height: 480
  url: >-
    https://ha.local.url/api/camera_proxy_stream/camera.reolink_video_doorbell_snapshots?token={{
    state_attr('camera.reolink_video_doorbell_snapshots', 'access_token') }}
action: rest_command.pipup_url_on_tv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant