Commit Graph

392 Commits (103c543a0ed6a1a796696aceb3f6c0804a1dfd85)

Author SHA1 Message Date
Moe 9877ac480f Fix Host Connection for Plugins and pluginBase.js use CWS 2019-03-30 13:53:24 -07:00
Moe e01acf9381 modify poweredBy variable name 2019-03-24 23:46:31 -07:00
Moe 6a0f3d8599 move plugin functions from socketio.js into plugins.js 2019-03-24 23:45:03 -07:00
Moe cd72207acf improve timelapse.jpeg appearance and performance++ 2019-03-24 23:43:23 -07:00
Moe ea9f363fe1 improve timelapse.jpeg appearance and performance+ 2019-03-24 23:42:32 -07:00
Moe 85bfd75280 improve timelapse.jpeg appearance and performance 2019-03-24 11:19:55 -07:00
Moe bcdb54d02b Modify JPEG-Based Timelapse Method and add basic GUI
+Bug fixes for UI
2019-03-23 18:25:58 -07:00
Moe a3251246f0 revert s.stringToSqlTime 2019-03-23 09:00:50 -07:00
Moe 3093345e19 Fix Sub-Account Delete API method 2019-03-22 15:26:56 -07:00
Moe 9ff69b28b3 add more config parameters for branding on login 2019-03-21 21:22:27 -07:00
Moe 8735d9b27b fix Timelapse table creation 2019-03-21 16:50:46 -07:00
Moe cf4b1c6d04 fix config parameter for poweredByClass 2019-03-21 14:59:16 -07:00
Moe 5c2f70cd74 Fix definitions for Uploaders 2019-03-21 14:54:11 -07:00
Moe 00ab3046ff Add JPEG-based Timelapse creation
- Currently can only retrieve data about Timelapse through API, GUI coming soon
+ Definition fixes
2019-03-21 14:30:50 -07:00
Moe 040080fd0b Allow configuring Logo on login screen with conf.json 2019-03-21 14:24:32 -07:00
Moe 6fbfeb52e2 Add path for .well-known
- This addition is to accomodate the manual modification made in Beowulf's SSL setup guide.
- "Setting up SSL with Shinobi Video using Let’s Encrypt and Certbot" by Beowulf : https://www.scheh.com/index.php/2018/01/26/setting-up-ssl-with-shinobi-video-using-lets-encrypt-and-certbot/
2019-03-19 19:56:22 -07:00
Moe 758fc700b1 Rewrite Settings and Montior Edit forms in JSON instead of HTML
- rewrite of forms in JSON allow auto-generating the necessary fields on almost any template with a lot more ease
- remove ejs files for uploaders and make fields generate by JSON as well
+ activate separated css files
2019-03-15 00:32:18 -07:00
Moe 2826c858ac move authenticateUser in dropInEvents.js 2019-03-09 10:34:07 -08:00
Moe 8928d777bb Fix flag for connected plugins 2019-03-07 21:27:40 -08:00
Moe f87dd59039 Feature Request #49 : Custom Endpoint with S3-Based Uploading++ 2019-03-07 16:04:14 -08:00
Moe 9664e98fa6 Feature Request #49 : Custom Endpoint with S3-Based Uploading+ 2019-03-07 15:57:01 -08:00
Moe 8fe57162af Feature Request #49 : Custom Endpoint with S3-Based Uploading
- Wasabi Hot Cloud Storage has been converted to being a dynamic S3-based upload controller.
2019-03-07 15:53:49 -08:00
Moe 4eb68ee900 Remove hardcoded "uploader" fields and place in dynamically loaded files 2019-03-07 15:26:56 -08:00
Moe 18e0923a7e Allow connecting multiple Detector Plugins+ 2019-03-05 18:18:52 -08:00
Moe 9c4b153ab4 Allow connecting multiple Detector Plugins
+ remove `frameToRam` method.
+ add extenders for onWebsocketConnect/Disconnect
2019-03-05 16:22:04 -08:00
Moe a901bd2e32 fix SQLite Power Video bug
- newly created events will only be fixed. Previous events will unfortunately remain broken. MariaDB/MySQL databases are unafftected.
2019-03-04 20:31:24 -08:00
Moe cdf2e6f8c8 remove `videoTime` logging for events, use basic search method of power video 2019-03-03 09:52:23 -08:00
Moe 9aabfea193 Update Stale Purge Lock function set
- when "No space left on device" is detected a check to see if you are over your account storage max will be done, if so then it will force an unlock and create a purge request.
2019-02-28 14:07:14 -08:00
Moe 9ff20b8442 Update dropInEvents.js
- close fs.watch and delete monitor's folder onMonitorStop to drop requests when monitor is disabled.
- shorten file trigger timeout from 3 seconds to 1.2
- SMTP events check if monitor is started upon receipt, drop request if not
2019-02-28 11:27:20 -08:00
Moe c4129e4202 disable eventBasedRecording creation if detector is off 2019-02-27 22:22:33 -08:00
Moe 38e67d933a Multi Trigger by Group
- In Global Detector Settings you can now find the option to trigger other cameras when a particular monitor has been triggered.
+ Remember monitor order in dashboard list
+ Allow sending frames to Plugin based detection with Primary Send Frames off.
+ minor clean up
2019-02-27 20:32:29 -08:00
Moe c2100d7790 Allow starting SMTP server without dropInEvent server 2019-02-27 20:17:49 -08:00
Moe 54883d46f7 Fix Backblaze B2 Auth Refresh+ 2019-02-26 18:44:28 -08:00
Moe a33a2798a8 Fix Backblaze B2 Auth Refresh 2019-02-26 18:41:05 -08:00
Moe 94e7a03b4b change cloudUploaders to uploaders
- split `uploaders.js` into multiple files. Each based on their service provided.
2019-02-26 18:35:45 -08:00
Moe 1be41d7f3b Add SMTP server to dropInEvents module 2019-02-26 18:34:04 -08:00
Moe 9a71cd9c95 Use cws(uws) for Socket.IO engine 2019-02-24 18:47:39 -08:00
Moe 490ac88b00 Update dropInEvents.js 2019-02-23 22:01:53 -08:00
Moe 27ac21bdbd Add FTP server to dropInEvents module 2019-02-23 09:50:03 -08:00
Moe 31eb99f551 Add dropInEvents module++ 2019-02-22 23:06:04 -08:00
Moe 97b341481e Add dropInEvents module+
+ better filename parse for file insert
+ add missing RTMP server addition in camera.js
2019-02-22 23:04:52 -08:00
Moe 55aedbabb9 Add dropInEvents module
- This allows you to drop a file into `/dev/shm/streams/dropInEvents/[GROUP KEY]/[MONITOR ID]` to trigger an event.
- This is useful for cameras that can do FTP upload on Motion detected with their internal detector.
- `dropInEventsDir` can be configured in conf.json
2019-02-22 22:59:06 -08:00
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
Moe a380ba7d2c Check for static ffmpeg before system ffmpeg 2018-11-28 07:14:12 -08:00
Moe e31e8ef332 Fix Timeout Reset for Traditional Recording 2018-11-28 07:13:55 -08:00
Moe ee29c12c2e Fix videoSnap reference bug
+ add some extenders
2018-11-22 07:47:43 -08:00
Moe caa0079e15 Force Websocket connection for pluginBase 2018-11-16 10:50:40 -08:00
Moe 950dd9bf37 Make Built-In Motion Detector Matrix optional 2018-11-15 10:29:23 -08:00
Moe 219fdd1139 Fix 2-Factor Authentication 2018-11-14 19:24:50 -08:00
Moe 5f4f580c41 API call for getting Monitor State Presets 2018-11-14 19:24:34 -08:00
Moe a0ec9afc87 Allow Mass Config Changes by API (monitorStates) and more
- Unlike /configureMonitor/ this method, /monitorSates/, can take single veriables for a monitor edit.
+ clean /configureMonitor/'s addEdit portion and make it a separate function
+ add "raw" catch. if "raw" not found another database init will be requested
+ fix "undefined" monitor status for Disabled monitors on Shinobi start
+ fix color threshold save for region editor
+add fallback for snapBuffer failure
2018-11-10 19:59:02 -08:00
Moe eb65330fa8 pathing fixes for streams 2018-11-06 10:44:01 -08:00
Moe 3a2c95e0f3 fix failed login page redirect 2018-11-06 10:09:38 -08:00
Moe a6575bc4f7 change default super and admin prefixes 2018-11-06 08:25:00 -08:00
Moe 89a057a62a fix front end lib pathing when using custom webPaths 2018-11-05 20:27:19 -08:00
Moe e1b593298a fix var name type for config.cloudUploaders 2018-11-05 13:07:50 -08:00
Moe 29589750e9 Show basic bounding box for Built-In Motion Detector
- make pam-diff static to accomodate additions without creating a new npm repo. Thanks Kevin Godell for the amazing detection engine!
- Learn more about the original pam-diff by Kevin here : https://github.com/kevinGodell/pam-diff
2018-11-05 12:58:05 -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 1727f2c5e7 add catch for video file range read on get 2018-11-03 10:40:41 -07:00
Moe 70339bd0d4 block framewrite to ram if detector is off
- applies only when using "connectionType":"ram" in plugin conf.json
2018-11-03 00:16:16 -07:00
Moe f3d60ca674 Additions and Cleanup
+ Allow global designation for Backblaze B2, Amazon S3, and WebDAV
+ allow frame transfer to plugin by "File in RAM" (experimental and currently only works with yolo and dlib)
+ API method for account save/edit
+ Add C++ based Dlib plugin (face-recognition)
+ allow choosing tiny or regular weights for yolo
- remove old python-dlib plugin because it is just bad (yucky python)
2018-11-02 16:44:53 -07:00
Moe 74e8729cdc simplify snapshot icon and remove extra logs 2018-10-31 16:21:13 -07:00
Moe c87521ec0d Fix ffmpeg "undefined" bug
+ silence freebsd error
2018-10-28 15:28:22 -07:00
Moe d0398670a4 Update libs/webServerPaths.js 2018-10-27 10:36:20 -07:00
Moe e67c819954 Update libs/webServerAdminPaths.js 2018-10-27 10:36:15 -07:00
Moe 513e484c07 Traditional Recording with dynamic recording timeout
- "Timeout Reset on Next Event" is now an available in the Global Detector Settings section for Traditional recording method
2018-10-27 10:36:06 -07:00
Moe b5132dd279 Cleanup for Super and Admin panel user management functions+ 2018-10-24 17:00:45 -07:00
Moe 2edb408702 Cleanup for Super and Admin panel user management functions
+ added sample JSONs for docs and test scripts
2018-10-24 16:41:02 -07:00
Moe ee881f7415 Test script additions and cleanup
- run test with "node test.js" or "npm test" inside the Shinobi directory
- minor readability cleanup
+ show Object Detection section with yolo plugin
+ prettify Video Grid css
+ make thumbnail load recursive instead of at once
2018-10-23 17:37:51 -07:00
Moe 224a06cb3e Prepare Build Testing
+ cleanup some comments functions
+ move some functions to startup.js
+ add ability to search videos with "startFrom" and "startTo" instead of "start" and "end"
2018-10-23 11:36:02 -07:00
Moe f605c7adc7 Thumbnails for Video List
- client-side generated thumbnails.
+ light cleanup and bug fixes on childNode engine
2018-10-19 14:15:40 -07:00
Moe 0b397348f1 Update libs/cloudUploaders.js 2018-10-18 13:42:54 -07:00
Moe 5a3309a787 childNode database row save fix
+light cleanup
2018-10-18 13:41:20 -07:00
Moe 53fec70766 Bug fixes for childNodes+ 2018-10-17 21:45:15 -07:00
Moe 623e916d24 Bug fixes for childNodes 2018-10-17 21:42:32 -07:00
Moe 3159102d0c add some new extenders for later 2018-10-15 19:40:26 -07:00
Moe 57defcc20f light cleanup 2018-10-15 19:40:12 -07:00
Moe d6e7f628f0 Add API methods to manage API keys
- Add, Delete, List are the methods added
+ light cleanup
2018-10-15 19:39:50 -07:00
Michael Sandrof 2c9282e92e Better free mem computation for linux: use available/total instead of free/total. 2018-10-12 20:30:29 -07:00
Moe d43b0cf0d9 light cleanup and fixes 2018-10-11 17:36:27 -07:00
Moe 00c6a2c025 light updates
- adjust static-ffmpeg check
- make inital monitor load synchronous
2018-10-10 16:10:59 -07:00
Moe 611b67b1df fix syntax breakage when switching dashboard languages 2018-10-10 12:51:23 -07: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 3b05d011df modify icon snapshot
- now using icon.jpg instead of s.jpg to avoid overriding other functions that need a realtime jpeg snapshot
+ remove emitter from purge on disk space
2018-10-09 17:48:15 -07:00
Moe 34e5095e16 make "availableHWAccels" configurable 2018-10-09 16:26:49 -07:00
Moe ec3e3ddd35 Check Hardware Acceleration methods on start
- show only available methods in client side
2018-10-09 16:25:16 -07:00
Moe c178984084 Add CPU usage indicator (per monitor)
+ adjust purge videos on max space operation order
+ light cleanup with var names
2018-10-09 15:40:06 -07:00
Moe 7e0cc7bbff Light performance boost
- snapshot will be created on first user entry and stored in temp directory if JPEG API is disabled
+ Fix "File Delete Error" caused by permission issue+++
2018-10-08 21:44:36 -07:00
Moe 69f7543c79 Return of sizePurgeQueue
- you can also say return of the Q (hehe)
2018-10-08 18:39:10 -07:00
Moe b1c27f8359 Fix "File Delete Error" caused by permission issue++ 2018-10-08 16:54:53 -07:00
Moe dc9dd9ecb0 Fix "File Delete Error" caused by permission issue+ 2018-10-08 15:15:31 -07:00
Moe d9912bacdf Fix "File Delete Error" caused by permission issue
- Temporary fix until approriate one is found
2018-10-08 14:43:31 -07:00
Moe bb409b4cea light cleanup 2018-10-08 14:42:45 -07:00
Moe d6fb93c619 light cleanup and more humanizing 2018-10-08 00:23:39 -07:00
Moe f219ff8fbc add the ability to detect viewers without websocket more stream types
- viewer count detection added for : mjpeg, poseidon over http, flv over http, h265 over http, and raw h264
- with it you can detect when a stream is opened without the websocket connection
+ move web stream paths to their own file "webServerStreamPaths.js"
2018-10-07 23:01:27 -07:00
Moe 5a968edd5e cleanup launchMonitorProcesses function 2018-10-07 17:16:57 -07:00
Moe a427805eee fix launchMonitorProcesses bug 2018-10-07 16:45:18 -07:00
Moe da83df55dd libs/monitor.js : split camera fatal error handler 2018-10-07 16:43:39 -07:00
Moe 4c863ab05c prep for SFTP upload method 2018-10-07 14:59:21 -07:00
Moe c5c3743f59 fix "Error: read ECONNRESET" when Poseidon stream is restarted 2018-10-07 11:59:01 -07:00
Moe 5fcdd860e0 humanize some variable names
+ some minor adjustments
2018-10-07 11:45:38 -07:00
Moe 656849ae8a add some comments in webServerPath libs 2018-10-06 09:46:48 -07:00
Moe 4ed020e830 Update Superuser and Admin REST API uses 2018-10-06 09:25:25 -07:00
Moe 455a81dad5 Superuser method to get all users in database
+ comments added to Superuser API methods
2018-10-05 23:45:43 -07:00
Moe fd8c526b7f Update Superuser
- Update API to allow request on "all"
- Update superAuth
- add temporary superSessionKey to use REST API in Superuser dashboard
- fix favicon in Superuser panel
- make some UI adjustments in Superuser panel
2018-10-05 23:20:16 -07:00
Moe 688ee9d10e allow superAuth with API key (tokens) 2018-10-05 21:33:51 -07:00
Moe b80ebb6bcd move configureMonitor to admin 2018-10-05 21:16:21 -07:00
Moe f4e24005e8 RESTful APIs for Admin functions
- Create Sub-Account
- Update Sub-Account
- Delete Sub-Account
2018-10-05 19:52:02 -07:00
Moe 3d7ae2081a fix Delete Motionless bug+
- fo' real this time
2018-10-05 15:49:44 -07:00
Moe cd38c01649 minor cleanup 2018-10-05 14:19:48 -07:00
Moe febca865fa RESTful API methods Superuser 2018-10-05 14:19:29 -07:00
Moe 05f92d0316 fix Delete Motionless bug 2018-10-05 14:17:10 -07:00
Moe 6d60b4a972 light cleanup 2018-10-03 15:06:37 -07:00
Moe 75592aa5d1 rewrite superAuth function 2018-10-03 15:06:08 -07:00
Moe 11533f8f7a add some missing module requirements 2018-10-03 09:37:34 -07:00
Moe 7caf1199cc fix Hotswap recording launcher 2018-10-03 09:27:08 -07:00
Moe 9362c68f3c Add Color Threshold for Built-In Motion Detector+ 2018-10-03 09:26:37 -07:00
Moe a9886e6b47 refactor "detector-stuff" by Skidank
- split up "checkMaximumSensitivity", "checkTriggerThreshold", and "filterTheNoise" for easier reading
- merge some "$.zO.e.on change" functions
+ remove old ffmpegLocation.js
2018-10-02 21:44:39 -07:00
Moe 2cab29311f Merge branch 'detector-stuff' into 'dev'
Added max_sensitivity at the region and global levels which puts a cap on…

See merge request Shinobi-Systems/Shinobi!12
2018-10-03 03:52:42 +00:00
Moe ce81c4672a light houstkeeping
- moving some functions around and cleanup
2018-10-02 17:52:49 -07:00
Moe fa2f27dde0 Superuser GUI to change user and password
+ ability to modify Admin user emails
2018-10-02 17:52:20 -07:00
Michael Sandrof 94d21ed0a2 Added max_sensitivity at the region and global levels which puts a cap on detections that can trigger an event.
Added detection threshold that requires a minimum number of detections before triggering an event.
2018-10-01 19:37:43 -07:00
Moe d147cc2036 organize ffmpeg string builder 2018-10-01 19:21:16 -07:00
Moe 637a62ee8f put backblaze-b2 call inside path condition 2018-10-01 19:19:58 -07:00
Moe aee4fec0e9 move extenders to separate file 2018-10-01 17:21:48 -07:00
Moe 9e11f6d810 move discord and email functions into libs/notification.js
+ add more event controllers for custom functions
2018-09-30 22:44:35 -07:00
Moe a3744787d9 Mega Update
- Add Extender functions in some places. Hopefully will add in all functions after more rewriting.
- Add Backblaze B2 uploading support
- Add support for managing cloud storage space used
- put all cloud video management functions in one library file using Extender
- separate uses of "s.s". s.s = JSON.stringify again and API calls with s.s will use "s.prettyPrint"
- move ffmpeg init functions
- rename s.beat to better reflect purpose
2018-09-30 15:44:04 -07:00
Moe afbd2f7172 humanize more code
- libs/startup.js should be easy to read now
- some comments in libs/videos.js
- make specific function for preQuery stuff
- add win64 to isWin check
- clean up startupText values
2018-09-29 16:03:55 -07:00
Moe ac516980bb separate uploadToDav and uploadToAmazonS3 from insertCompletedVideo
+ add missing "lang" to socketio and videos modules
2018-09-29 13:40:07 -07:00
Moe d5cabef179 light function cleanup 2018-09-29 13:09:47 -07:00
Moe 19a24f5f38 cleanup ffmpeg check and add ffbinary usability
- run npm install ffbinaries to use that downloader instead.
- ffmpeg-static and ffbinaries should get the same version just get them in a different way.
2018-09-29 13:09:24 -07:00
Moe 9393c8caf7 Modularize camera.js+++++++
- clean up some more functions names to be more human readable.
2018-09-29 08:00:51 -07:00
Moe 7431aee9fc Modularize camera.js+++++ 2018-09-28 21:04:50 -07:00
Moe 91f5451c6e Re-add !24
+ move s.processReady
2018-09-28 20:06:32 -07:00
Moe 3efbfae9bb move ffmpeg functions 2018-09-28 19:09:14 -07:00
Moe f4b544c52c change var name from currentDirectory to mainDirectory
- "mainDirectory" better reflects the value of the variable
2018-09-28 19:02:53 -07:00
Moe d834698b27 default custom JSON stringify function to pretty print, 3 spaces 2018-09-28 18:57:26 -07:00
Moe e226327439 add fs to webServer.js lib 2018-09-28 18:39:35 -07:00
Moe 1740e3461d break s.init into individual functions 2018-09-28 18:38:14 -07:00
Moe dd3858e94e Modularize camera.js+++ 2018-09-28 13:26:24 -07:00
Moe 2b4dcd8694 silence query logs for `Files` table fix+ 2018-09-28 09:18:49 -07:00
Moe 24ed1b8dde add https to libs/webServer.js 2018-09-28 09:13:17 -07:00
Moe af8fc608e7 Modularize camera.js 2018-09-27 22:37:08 -07:00