Commit Graph

150 Commits (e129afd75673ccdeee2fd65743f788f00131b348)

Author SHA1 Message Date
Moe e129afd756 fix `onMonitorSave` event
+prettify config cron error
2019-02-22 19:24:21 -08:00
Moe 127da9700d Merge branch 'patch-1' into 'dev'
Prevent corrupted recording when recording is interrupted.

See merge request Shinobi-Systems/Shinobi!47
2019-02-22 19:46:47 +00:00
Moe 3914ea30e4 Merge branch 'addEventDetailsToString' into 'dev'
Updated addEventDetailsToString to replace event detail tokens

See merge request Shinobi-Systems/Shinobi!53
2019-02-22 19:38:08 +00:00
Moe d8fd16c033 humanize and cleanup cloudUploader.js
+ add privateKey field for SSH file upload
2019-02-19 22:31:07 -08:00
Moe 6a3daccb2f Add Automatic SFTP Uploader
- SFTP Uploader is basic uploader. This method is not capable of managing space like other cloud back up methods.
+ Minor cleanup
2019-02-19 19:29:12 -08:00
Moe 1078960db2 CORS added to all web routes through `app.use` 2019-02-19 19:14:11 -08:00
Moe c706da1ca3 Added timed auth refresh for Backblaze B2 connections 2019-02-19 13:10:49 -08:00
Moe 83f08ccb4f chunk video list in `deleteListOfVideos` function
- this will avoid the `ER_LOCK_WAIT_TIMEOUT` error by breaking up the video list into sets of 100 then querying each set as a single query rather the entire video list as a single query.
2019-02-17 11:49:37 -08:00
Moe ac00f22ee8 corn key warning 2019-02-16 20:35:54 -08:00
Moe 89bbbf4330 Bug Fix for Detector flag building 2019-02-16 14:56:46 -08:00
Moe 322d50d912 Update ffmpeg.js 2019-02-16 12:40:20 -08:00
Jonathan Tran 962924de8a updated addEventDetailsToString to replace event detail tokens 2019-02-15 21:25:59 -08:00
Moe 3503ac1426 Add RTMP Server with Node-Media-Server
- Instead of including the npmjs module; the rtmp portion has been ripped from the main package.
- to enable the RTMP server with default settings just add `"rtmpServer":true` to your conf.json
- `rtmpServer` object in conf.json correlates to `rtmp` object in NodeMediaServer configuration.
- WARNING : currently no authentication for incoming RTMP streams.
2019-02-13 22:29:19 -08:00
Moe bdbf3458b6 Add Wasabi Hot Cloud Storage in cloudUploaders.js 2019-02-04 10:37:22 -08:00
Moe bf7a5d2d83 Add "onMonitorDied" extender 2019-01-31 10:51:35 -08:00
Moe 75269f7d9f Method to merge videos from Videos List
- button will appear as "Merge and Download" next to "Zip and Download"
2019-01-28 17:41:14 -08:00
Moe bbb6ef108a minor cleanup 2019-01-28 12:25:53 -08:00
Moe f9450a58dd Humanize configuring Notification Video Length
- Notification Video Length : The length of the video that gets sent to your Notification service, like Email or Discord.
- New option appears under Recording Timeout.
2019-01-28 12:25:43 -08:00
Moe 6f47b720b1 Merge branch 'dev' into 'dev'
command killing ffmpeg simplified

See merge request Shinobi-Systems/Shinobi!42
2019-01-27 23:01:02 +00:00
Moe e87f031df0 fix onDetectorNoTriggerTimeoutExtensions bug 2019-01-27 08:53:12 -08:00
Moe a60d9ecd73 update customAutoLoad
- allow addition static files, blocks, css, js, and language files without modifying the core
2019-01-26 20:43:31 -08:00
Moe 3bf2222c0a add missing module "onvif" in webServerPaths 2019-01-26 12:21:55 -08:00
Bret Palsson 3a09a11ac5 Prevent corrupted recording when recording is interrupted.
It's very annoying to get partial video because the process died or was shutdown uncleanly. This fixes the issue. Here is an explanation of the options set:

Normally, a MOV/MP4 file has all the metadata about all packets stored in one location (written at the end of the file. 

faststart: Will move the metadata to the beginning of the file after the recording is complete.

frag_keyframe: Starts a new fragment at each video keyframe. This allows a file to work, even if the metadata isn't written at the end or beginning of the file, since it encodes with each keyframe. (Tested with kill -9 on and start/stop recording where the end metata data wasn't written)

empty_moov: will cause output to be 100% fragmented; without this the first fragment will be muxed as a short movie (using moov) followed by the rest of the media in fragments.
2019-01-26 05:51:50 +00:00
Moe daeda7f970 minor cleanup 2019-01-23 22:15:29 -08:00
Moe 2d5434ac21 allow customAutoLoad to get blocks, js, and css automatically from fs 2019-01-23 22:15:17 -08:00
Moe fe3121a7a8 Hourly check for possible stale sizePurge lock+ 2019-01-23 21:33:55 -08:00
Moe 107893d058 Hourly check for possible stale sizePurge lock 2019-01-22 21:43:10 -08:00
Moe 79e3632b88 Return of the coProcessor
- now is optional and can be enabled in the Input section.
+ add humanized log for "error while decoding", mention network performance issues
2019-01-22 20:09:20 -08:00
Moe 4857ce846e Minor Cleanup+ 2019-01-22 08:44:50 -08:00
Moe 715b0e54cc Add Custom Flags field for Traditional Recording 2019-01-22 08:44:32 -08:00
Moe 9cd6a1d3d5 Minor Cleanup 2019-01-22 08:42:26 -08:00
Moe 23f1d115de Add Update functions to terminal commander
+ minor cleanup and bug fixes
2019-01-14 12:05:35 -08:00
Moe a3646a6209 Update Installers and Terminal Commander
- add zip to ubuntu and centos installers.
- add script to create terminal commander on shinobi start or manually by terminal
- update terminal commander to use dynamic value for shinobi path
2019-01-13 13:42:11 -08:00
Moe 92ba4f2664 Allow auto loading custom modules as a folder 2019-01-12 10:58:30 -08:00
Moe 1ccad1dcde Update super.ejs and minor cleanup
- add notice for group key in /super if used more than once.
2019-01-12 10:57:21 -08:00
Moe 4884597ae8 Add Missing fs module from notification.js
+ add "schedules" to "schedule" API method
2019-01-01 11:23:43 -08:00
Moe afdc0cf568 Audio Detector, Detect Object in Region, and API Methods for Scheduling System
- Audio Detector measures decibels (dB). Section can be found under Motion Detection.
- Regions can now be used with Object detection alone, find the option the Object Detection section.
- Scheduling System will allow automatically activating Monitor States based on time. GUI will be posted in the next commit.
+ Update Installers
+ Update framework.sql
+ `npm test` will run the test
+ Minor Bug Fixes
2018-12-29 11:32:12 -08:00
Moe 91f530c461 Add some more test functions and fix "Duplicate" warning for preQueries 2018-12-16 17:24:59 -08:00
Moe f57250e25e Add "codeTester" module (Not Complete)
- Merge test functions into main app and invoke based on 1 of 2 Methods.
- Method 1 : Add `"testMode":true` to conf.json to start Shinobi in Test Mode.
- Method 2 : run `node camera.js test` in the Shinobi folder.
- CTRL+C to exit process and cleanup test files.
+ Code cleanup and bug fixes (found while testing the codeTester module)
+ Update "Entire System Export"
+ Additional Extenders
+ Make Input Map default "0" instead of "0:0"
+ Remove extra Whitespace from LICENSE and update the "Modification of this Software Product.".
2018-12-16 16:54:06 -08:00
Moe b0523293c1 Allow Disabling the Thumbnail for Videos List 2018-12-13 11:56:05 -08:00
Moe 393ca95e8f API Methods for Importing and Exporting the whole database
- "yeh, i do a little import/export, no biggie."
+ add fail response for superAuth
2018-12-12 20:05:07 -08:00
Moe ce4c07b703 Make Discord Bot log error in user logs when fails to get sendable location 2018-12-12 15:54:50 -08:00
Moe 3b4d2d339f Force copy of global lang variable
- to avoid overwriting by user change
2018-12-12 15:53:49 -08:00
Moe c6c4f5d502 Automatic Loading for custom js modules 2018-12-12 15:02:24 -08:00
Moe afdedbeea8 Add some Monitor event Extenders 2018-12-12 14:56:29 -08:00
Moe f2a014a7c3 Allow merging regions triggers for Built-In Motion
- add `"detectorMergePamRegionTriggers":true` to your conf.json for it to take affect.
- using this can break any Detector Filters that rely on the region name for trigger. If using `equal to` please change to `contains`.
2018-12-08 10:28:38 -08:00
Moe 96c6d1de19 Add robots.txt 2018-12-04 08:34:59 -08:00
Moe c91ce87ec7 Additional Extenders 2018-12-04 08:34:43 -08:00
Piotr Kantyka ffc20b393a command killing ffmpeg simplified 2018-11-29 09:44:47 +01:00
Moe 23ab10d906 simplify capture method for s.createEventBasedRecording (Traditional Recording) 2018-11-28 10:43:28 -08:00