Moe
e1d83e7c14
Make cron.js a worker process of camera.js
...
Old connection of cron.js to camera.js through socket.io has been disabled. Old cron.js file has been disabled. File will remain to keep old systems from having looping errors, the file will just post a notice.
2022-06-29 12:29:20 -07:00
Moe
2680e0a9ea
fs.rmdir deprecated; changing to fs.rm
2022-06-29 00:13:22 -07:00
Moe
371085a3ba
fix some syntax errors
2022-06-28 18:43:53 -07:00
Moe
5fea41d053
Fix promise on folder removal for last timelapse frame of date folder
2022-06-27 16:29:02 -07:00
Moe
a56a14fbb8
Add Deleting Timelapse Frames by Days to cron
2022-06-27 13:18:56 -07:00
Moe
26572e480b
fix cron addStorage calculation
2021-11-29 13:56:26 -08:00
Moe
0c3c183ae8
cron syntax fix for file size setting after old video delete+
2021-11-28 09:25:36 -08:00
Moe
481cb4c75e
cron syntax fix for file size setting after old video delete
2021-11-27 19:14:32 -08:00
Moe Alam
876b4c4d45
Fix cron.js monitorId declaration error
2021-02-19 08:41:27 -08:00
Moe Alam
ad63222730
cron.js : reset interval to 1 day
2021-02-09 10:11:03 -08:00
Moe Alam
b23728d74e
cron.js : add some error handling for new file deletion
2021-02-09 08:32:11 -08:00
Moe Alam
328848b850
cron.js : clean up processing recursion
2021-02-06 09:34:33 -08:00
Moe Alam
4167d61097
cron.js : clean up days selected
2021-02-06 09:21:09 -08:00
Moe Alam
7a00470f7c
fix log message for deleteOldVideo
2021-02-06 08:11:59 -08:00
Moe Alam
a66492b871
cron.js updates storage used when deleteOldVideos
2021-02-05 19:13:12 -08:00
Moe Alam
bf1d78235b
make all deleteOldVideos actions occur in cron.js, promisify cron funcs
2021-02-05 17:36:10 -08:00
Moe Alam
9d2629825b
make cron delete fileBin files and adjust live counter accordingly
2020-10-18 22:15:06 -07:00
Moe Alam
4465649c4c
cleanup cron.js and fix broken knexQuery
2020-10-18 21:41:27 -07:00
Moe Alam
2c9ef73b0b
REVERT cron.js - CRITICAL BUG IN PREVIOUS REVISION
2020-10-15 14:59:16 -07:00
Moe Alam
c28cd32bbb
cleanups
2020-10-11 23:11:39 -07:00
Moe Alam
d8c45680d1
cron : add "where" sanitizer
2020-09-18 15:37:02 -07:00
Moe Alam
f32ed88276
cron : check if rows exist in condition for number of deleted rows
2020-09-13 23:57:32 -07:00
Moe
9b87f5255b
Update Knex Query in cron.js
2020-08-20 09:31:21 -07:00
Moe
0a23ac9f1a
sqlQuery Conversion : Fix cron.js
2020-08-05 19:14:22 -07:00
Moe
0026c8bd13
sqlQuery Conversion : cron (All Queries Converted!)
...
- preQueries are left as-is because they are for older installations. Older installations are expected to be on a MySQL/MariaDB type database. They may be removed in the future.
2020-07-11 15:54:35 -07:00
Moe
8d50e0888e
silence missing "Event Counts" table error because it is created shortly after
...
- it will be captured on subsequent checks by cron.js
2020-05-26 22:34:35 -07:00
Moe
1d83275dd3
add Events Counts deletion to cron.js
2020-05-24 18:00:25 -07:00
Moe
dd53cdb662
replace setTimeout with setInterval in cron.js+
2019-10-03 08:10:07 -07:00
Moe
71f0d61d85
replace setTimeout with setInterval in cron.js
...
+ light cleanup
2019-10-03 08:04:49 -07:00
Moe
05b14b3956
Fix cron.js not connecting to camera.js
2019-02-16 20:11:11 -08:00
Moe
4c0cf2b3a3
fix cron.js SQLite-deleteOld bug
...
+ make cron video deletes happen in bulk rather than 1 query per video
+ clear eventBaseRecording timeout to avoid fallback action after success
+make non-python yolo show object detection section, remove python-yolo
2018-11-05 12:55:58 -08:00
Moe
f2797cdb0b
s.orphanedVideoCheck added
...
- "config.cron.deleteOrphans" has been removed. It has been replace by a one-time-run at startup with "config.insertOrphans". As the variable name suggests, instead of deleting, it will insert videos found without a database row.
- By default "config.orphanedVideoCheckMax" will only check up to 20 video. You can raise this value to any number you choose but be careful as it will check that number of videos on every start.
- this function also runs if a camera exits unexpectedly.
2018-10-09 23:56:13 -07:00
Moe
d5cabef179
light function cleanup
2018-09-29 13:09:47 -07:00
Moe
040b9368eb
Fix cron `Files` table bug
2018-09-28 09:13:03 -07:00
Moe
294055eaba
Fix cron.js : Max Keep Days
...
- now main "Max Keep Days" excludes monitors with custom "Max Keep Days"
2018-09-15 13:31:03 -07:00
Moe
bfef5eecb0
cron update/fix, limit video.delete queries to 1 row
2018-06-20 22:45:07 -07:00
Moe
ef59b17b43
more debug info for cron.js
2018-06-12 22:02:03 -07:00
Moe
236ba176cd
cron fix and remove extra Retry Connection field
2018-06-12 14:27:01 -07:00
Moe
c940294f00
Shinobi Pro Lands on Gitlab
2018-06-09 16:34:06 -07:00