HassPyFrigate **DEPRICATED**

DEPRICATED

frigate Event Video Recorder (fEVR) is the replacement for HassPyFrigate

# HassPyFrigate
## Python 3 CGI script for better looking notifications
### HassPyFrigate on GitHub
## Available as anAddon
### Repository: https://github.com/BeardedTek/BeardedTek-hassio-addons

# Home Assistant Automations

## Android Companion App Notification
#### Example Android Actionable Notification
Click on “Event Viewer” to view HassPyFrigate Event Viewer
The following Automation will send an actionable notification to the android companion app (Should work with iOS as well)
```
alias: HassPyFrigate Alert
description: HassPyFrigate Object Detection Alerts Using Frigate
trigger:
- platform: mqtt
topic: frigate/events
condition:
- condition: template
value_template: ‘{{ trigger.payload_json[“type”] == “end” }}’
- condition: template
value_template: |-
{{ trigger.payload_json[“after”][“label”] == “person” or
trigger.payload_json[“after”][“label”] == “car” or
trigger.payload_json[“after”][“label”] == “bird” or
trigger.payload_json[“after”][“label”] == “dog” or
trigger.payload_json[“after”][“label”] == “cat” or
trigger.payload_json[“after”][“label”] == “bear” or
trigger.payload_json[“after”][“label”] == “horse”
}}
action:
- service: notify.mobile_app_sm_g986u1
data:
message: ‘{{ trigger.payload_json[“after”][“label”] | title }} Detected’
data:
notification_icon: mdi:cctv
ttl: 0
priority: high
sticky: true
actions:
- action: URI
title: Snapshot
uri: >-
http://YOUR_SERVER/cgi-bin/hasspyfrigate.py?id={{trigger.payload_json[‘after’][‘id’]}}&camera={{trigger.payload_json[‘after’][‘camera’]}}&bbox=true&url=https://hass.jeandr.net/api/frigate/notifications/&time={{trigger.payload_json[‘after’][‘start_time’]}}&css=…/css/hasspyfrigate.css#
image: >-
/api/frigate/notifications/{{trigger.payload_json[‘after’][‘id’]}}/snapshot.jpg?bbox=1
tag: ‘{{trigger.payload_json[“after”][“id”]}}’
alert_once: true
mode: single

```

Thank you for your work and for sharing it.
I am trying to run it but I am having a problem.
any idea?

Informazioni
Documentazione
Configurazione
Registro
HassPyFrigate
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: HassPyFrigate
 Nicer Notifications for Frigate Events
-----------------------------------------------------------
 Add-on version: 0.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.1  (amd64 / qemux86-64)
 Home Assistant Core: 2021.12.8
 Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[19:50:57] INFO: Starting Apache...
[19:50:57] INFO: Starting Apache...
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Starting Apache httpd web server: apache2Starting Apache httpd web server: apache2Action 'start' failed.
The Apache error log may have more information.
.
[19:50:58] INFO: Starting Apache...
Starting Apache httpd web server: apache2.
.
[19:50:58] INFO: Starting Apache...
Starting Apache httpd web server: apache2.
[19:50:59] INFO: Starting Apache...
Starting Apache httpd web server: apache2.
[19:50:59] INFO: Starting Apache...
Starting Apache httpd web server: apache2.

I apologize I did not see this earlier. I am currently reworking the HA Addon. I also did a complete rewrite of this software under a new name:

fEVR pronounced (fee-ver) frigate Event Video Recorder

It expands up this project immensely.

1 Like

You don’t need to apologize :slight_smile:
I’ll rush to try your improved addon !
Thank you for your work