boebbele

@boebbele@feddit.de

This profile is from a federated server and may be incomplete. Browse more on the original instance.

boebbele,

I know how to send images with xmpp. The problem is that the file name changes with every new snapshot. The entity image.ipcamsued_Person contains this current snapshot.

The question now is: how can I send the contents of this entity via xmpp. Do I have to read it out first and save it as a jpg?

boebbele, (edited )

The Name of the Entinität in englisch is: image.ipcamsouth_Person. frigate Person detection.

boebbele,

I managed it:


<span style="color:#323232;">alias: Frigate - Notification
</span><span style="color:#323232;">description: ""
</span><span style="color:#323232;">trigger:
</span><span style="color:#323232;">  - platform: mqtt
</span><span style="color:#323232;">    topic: frigate/events
</span><span style="color:#323232;">condition:
</span><span style="color:#323232;">  - condition: template
</span><span style="color:#323232;">    value_template: "{{ trigger.payload_json["type"] == "end" }}"
</span><span style="color:#323232;">action:
</span><span style="color:#323232;">  - service: notify.jabber
</span><span style="color:#323232;">    data:
</span><span style="color:#323232;">      title: "Kamera {{trigger.payload_json['after']['camera']}} "
</span><span style="color:#323232;">      message: >-
</span><span style="color:#323232;">        Objekt {{trigger.payload_json['after']['label']}} erkannt von Kamera
</span><span style="color:#323232;">        {{trigger.payload_json['after']['camera']}}.
</span><span style="color:#323232;">      data:
</span><span style="color:#323232;">        path: >-
</span><span style="color:#323232;">          /mnt/sandisk1TB/frigate/clips/{{trigger.payload_json['after']['camera']}}-{{trigger.payload_json['after']['id']}}.jpg
</span>
boebbele,

I managed it:


<span style="color:#323232;">alias: Frigate - Notification
</span><span style="color:#323232;">description: ""
</span><span style="color:#323232;">trigger:
</span><span style="color:#323232;">  - platform: mqtt
</span><span style="color:#323232;">    topic: frigate/events
</span><span style="color:#323232;">condition:
</span><span style="color:#323232;">  - condition: template
</span><span style="color:#323232;">    value_template: "{{ trigger.payload_json["type"] == "end" }}"
</span><span style="color:#323232;">action:
</span><span style="color:#323232;">  - service: notify.jabber
</span><span style="color:#323232;">    data:
</span><span style="color:#323232;">      title: "Kamera {{trigger.payload_json['after']['camera']}} "
</span><span style="color:#323232;">      message: >-
</span><span style="color:#323232;">        Objekt {{trigger.payload_json['after']['label']}} erkannt von Kamera
</span><span style="color:#323232;">        {{trigger.payload_json['after']['camera']}}.
</span><span style="color:#323232;">      data:
</span><span style="color:#323232;">        path: >-
</span><span style="color:#323232;">          /mnt/sandisk1TB/frigate/clips/{{trigger.payload_json['after']['camera']}}-{{trigger.payload_json['after']['id']}}.jpg
</span>
boebbele,

yes, I did that.

I can send a jpg in this folder. But no png.

boebbele,

I have solved the problem. The png files had root as owner. chown solved the problem.

This never bothered xmpp. matrix seems to be very sensitive…

boebbele, (edited )

I use the core Integration (yaml). I’m on tchncs.de

boebbele,

<span style="color:#323232;">  host: 192.168.1.x
</span><span style="color:#323232;">  user: xxxx
</span><span style="color:#323232;">  password: xxxx
</span><span style="color:#323232;">
</span><span style="color:#323232;">cameras:
</span><span style="color:#323232;">  Gartenhaus: # <------ Name der Kamera
</span><span style="color:#323232;">    ffmpeg:
</span><span style="color:#323232;">      hwaccel_args: preset-vaapi
</span><span style="color:#323232;">      inputs:
</span><span style="color:#323232;">        - path: rtsp://xxyyy# RTSP Pfad der Kamera
</span><span style="color:#323232;">          roles:
</span><span style="color:#323232;">            - detect
</span><span style="color:#323232;">            - rtmp
</span><span style="color:#323232;">            - record
</span><span style="color:#323232;">            - snapshots
</span><span style="color:#323232;">    objects:
</span><span style="color:#323232;">      track:
</span><span style="color:#323232;">        - person
</span><span style="color:#323232;">        - dog
</span><span style="color:#323232;">        - cat
</span><span style="color:#323232;">    detect:
</span><span style="color:#323232;">      width: 640 # <---- Auflösung des gewählten RTSP Streams
</span><span style="color:#323232;">      height: 352 # <---- Auflösung des gewählten RTSP Streams
</span><span style="color:#323232;">    record:
</span><span style="color:#323232;">      enabled: True
</span><span style="color:#323232;">      retain:
</span><span style="color:#323232;">        days: 7
</span><span style="color:#323232;">        mode: active_objects
</span><span style="color:#323232;">    snapshots:
</span><span style="color:#323232;">      enabled: True
</span><span style="color:#323232;">      retain:
</span><span style="color:#323232;">        default: 10
</span><span style="color:#323232;">        mode: active_objects
</span><span style="color:#323232;">        objects:
</span><span style="color:#323232;">          person: 15
</span><span style="color:#323232;">##############################################################################
</span><span style="color:#323232;">  AP-Garage: # <------ Name der Kamera
</span><span style="color:#323232;">    ffmpeg:
</span><span style="color:#323232;">      hwaccel_args: preset-vaapi
</span><span style="color:#323232;">      inputs:
</span><span style="color:#323232;">        - path: rtsp:// # <----- RTSP Pfad der Kamera
</span><span style="color:#323232;">          roles:
</span><span style="color:#323232;">            - detect
</span><span style="color:#323232;">            - rtmp
</span><span style="color:#323232;">            - record
</span><span style="color:#323232;">            - snapshots
</span><span style="color:#323232;">    objects:
</span><span style="color:#323232;">      track:
</span><span style="color:#323232;">        - person
</span><span style="color:#323232;">        - dog
</span><span style="color:#323232;">        - cat
</span><span style="color:#323232;">    detect:
</span><span style="color:#323232;">      width: 640 # <---- Auflösung des gewählten RTSP Streams
</span><span style="color:#323232;">      height: 480 # <---- Auflösung des gewählten RTSP Streams
</span><span style="color:#323232;">    record:
</span><span style="color:#323232;">      enabled: True
</span><span style="color:#323232;">      retain:
</span><span style="color:#323232;">        days: 7
</span><span style="color:#323232;">        mode: active_objects
</span><span style="color:#323232;">    snapshots:
</span><span style="color:#323232;">      enabled: True
</span><span style="color:#323232;">      retain:
</span><span style="color:#323232;">        default: 10
</span><span style="color:#323232;">        mode: active_objects
</span><span style="color:#323232;">        objects:
</span><span style="color:#323232;">          person: 15
</span><span style="color:#323232;">detectors:
</span><span style="color:#323232;">    coral:
</span><span style="color:#323232;">      type: edgetpu
</span><span style="color:#323232;">      device: usb
</span><span style="color:#323232;">##### Birdseye #######
</span><span style="color:#323232;">######################
</span><span style="color:#323232;">birdseye:
</span><span style="color:#323232;">  enabled: True
</span><span style="color:#323232;">  restream: True
</span><span style="color:#323232;">  height: 1080
</span><span style="color:#323232;">  width: 1920
</span><span style="color:#323232;">  mode: objects```
</span><span style="color:#323232;">
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines