Comments (20)
Added, tested, fixed... should be working now ;)
from frigate.
i created new repo for this example
for simplicity it's in package format
https://github.com/miikkajo/frigate-history
edit: i got swiper card working too and i'm loving it :)
from frigate.
Thanks a lot @miikkajo for the examples. I have 3 cameras running at the moment.
Is the setup something that could be templated? To save on copy and paste with a few changes.
It would be easier to expand in the future that way.
I just can't quite get my head round templating yet :(
My config is:
https://github.com/wills106/homeassistant-config/blob/master/packages/frigate.yaml
from frigate.
sorry, i'm been pretty busy latelty...
i actually moved to using addon myself,
i try to document it as soon as i got time for it.
here is project for it
https://github.com/miikkajo/ha-addon_frigate-history
you can add my addon repository to hassio, https://github.com/miikkajo/hassio_addons
of course if you are not using hassio, it does not help much...
as for order of cards, i remember i have seen something like that,
not sure what is causing it...
from frigate.
how about doing this on hass side?
you could create automation for saving snapshot images to disk
i'm currently pushing images to telegram on detection so i have history there
but i'm liking this swiper card idea, it should not be too hard to do :)
from frigate.
I haven't upgraded to the new MQTT image push yet, and don't know how this would be done, to keep only a certain amount of images and expose to the UI but if you know how to do this, please share :-). I can imagine how to do it with multiple cameras, but I bet there are many ways to skin this cat.
from frigate.
Nicely done! Time for me to upgrade!
from frigate.
just moved images out of /tmp/ to /config/www , /tmp/ is stupid place to keep them, as you lose them :)
i'm actually not using mqtt images for this, but surely one can do it
from frigate.
Does anyone know how this would work with MQTT? I'm thinking to try jumping to the new version as it looks like my sensors are triggering at very low thresholds for some reason, I'm hoping MQTT solves this, but would also like to know how to do this "look back" with MQTT images.. I don't have any idea how MQTT handles images..
from frigate.
i'll update example to use MQTT images
from frigate.
Wow you're on top of things!! Thanks!
from frigate.
i just realized that my approach with MQTT trigger with camera topic just wont work,
as image is persistent message, on hass restart automation will trigger on it
and fill history with old image
but i would really like to use mqtt image, as it's been selected for best person image :)
it just select first on motion, likely it wont be the best one.
i need to clear retained message on automation after it's been prosessed
@wills106: i did take different approach on configuration
/packages/
frigate_cam1_history.yaml
frigate_cam2_history.yaml
frigate_cam3_history.yaml
i have file for each camera, it's easy to just search & replace cam1 -> cam2
this whole automation with camera snapshots is just silly hack,
i just hoped it would be easier to configure as yaml package than custom_component.
but it's process of fail and success that may lead to something usefull :)
from frigate.
ok, i took another take on this.
moved fifo logic from automation to bash script, added check for duplicates and size of history
no need to script_component and automation is simpler now
config is now for 2 cameras and history_size is 10 frames.
what is bugging me is using local_image camera entities,
i tried to use directly lovelace picture entity, but as /local is cached
i did not manage to get updated images...
from frigate.
i was thinking of custom_component but this last version is working so fine that
i'm going to just use it for now :)
10 frames of history is great, seems to be enough for quick view of past detections.
from frigate.
Hi @miikkajo, I finally got up on the MQTT version and was thinking to try this. In the repo, you reference the file frigate_history_mqtt.yaml, but I can't find it in the repo. Is frigate_history.yaml working with the MQTT version?
from frigate.
Finally got it working.. Strange though, it seems to randomly reverse the order of the cards so that sometimes it starts with the tenth from the last instead of last.. Did you ever have that issue?
from frigate.
@miikkajo your fork is now out of date, I got write access to the parent and merged in a ton of changes, e.g., please use the parent one
from frigate.
@miikkajo is your addon still working for the 0.8.0 release?
from frigate.
well, it should, it only listens for mqtt snapshot message and dumps snapshot images to disk.
personally i'm using clips and events from 0.8.x release, and i'm pretty pleased with it
from frigate.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from frigate.
Related Issues (20)
- Support 24-Hour Time Format in Export Feature HOT 1
- SQLite WAL files periodic truncate HOT 6
- Rockchip releases are missing HOT 1
- Add user management / need rights to delete HOT 1
- Update Python to 3.11 and Coral-related libraries HOT 1
- Use 1 nginx worker process HOT 6
- Add inked out area in live view and recordings HOT 1
- Send to Frigate+ Modal handling HOT 1
- Create an event/recording based on zones common between cameras HOT 1
- Clips are not generated properly HOT 3
- Sort event by % (percentage) HOT 1
- [Feature Request] S6 should read number of available CPUs and update the `worker_processes` directive in nginx config before starting nginx
- [Idea] Zero-shot object detection models? HOT 3
- [FEATURE] integration with CodeProject.AI HOT 1
- Camera grouping for Birdseye HOT 1
- [BUG] Delete old recordings on retain config change HOT 1
- Add "truck" object type to Frigate+ models HOT 1
- Add sanity check for Frigate Config related to referenced zone names HOT 1
- Small QOL change for Birdseye HOT 5
- Config option to wait longer for ffmpeg to get frames HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frigate.