Comments (6)
This can be done automatically with a system like home assistant, NodeRED, or even a simple bash script + cron job.
It is also worth mentioning that in the next version of frigate the UI supports scrubbing recordings quickly automatically which replaces the need of time-lapses for many users.
from frigate.
@NickM-27 Could you please point me to a working example where a bash script + cron job combination is being used? I cannot find any and was unable to reproduce this setup so far.
from frigate.
https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/ would be a good starting point. There's not much special about calling Frigate's api. Just need to get the start and end timestamp then make the api request in the script
from frigate.
@NickM-27 I think you misunderstood my issue completely. I have no troubles using cron or writing http requests. My problem is that the specific endpoint of frigate I am aiming at expects/requires date parameter in unix that I don't know how to produce if said export is supposed to run daily for the last 24 hours (hence the unix parameter would always be different).
POST /api/export/<camera>/start/<start-timestamp>/end/<end-timestamp>
from frigate.
You just need to get the epoch time https://stackoverflow.com/questions/1092631/get-current-time-in-seconds-since-the-epoch-on-linux-bash and add 24 hours (in seconds) to it
from frigate.
I see. I guess that means I don't get around coming up with some kind of script/backend that does that calculation for each call then? I cannot simply have it triggered by other tools that are only capable of sending out requests as configured.
from frigate.
Related Issues (20)
- [0.14.0 Beta 2] Mark reviewed also at the top of the screen (or jump to the bottom) HOT 2
- Delete button on "frigate +" view HOT 3
- Export broken in dev branch HOT 3
- [UX] - Button Sizes are Too Small on Mobile
- [UI] Ability to filter by zones HOT 2
- [Support]: Camera view unavailable with Frigate HASS integration after installing Frigate 0.14.0B1 HOT 1
- [UI] Bring back Audio to Camera Live View and Review View HOT 16
- [UI] Bring back "Star tagging" on events HOT 1
- API: access secrets directly HOT 4
- Video Loss Detection HOT 2
- Export - Automatically remove fiels created after X days HOT 3
- Be able to edit a non working config within Frigate without having to edit the config externally before then restarting Frigate HOT 4
- Larger snapshots on live cam view HOT 1
- Stream of camera from last event HOT 1
- Support Raspberry Pi AI Kit with Hailo HOT 8
- Separate PTZ Camera control pane in the birdseye view. HOT 2
- [UI] No scrollbar in new player (0.14) HOT 5
- Select all in reviewed HOT 4
- Direct URL to full screen of camera group / layout? 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.