Skip to content

Commit

Permalink
v1.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Apr 22, 2022
1 parent 766ee92 commit 7334095
Show file tree
Hide file tree
Showing 58 changed files with 2,832 additions and 436 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# Changelog
All notable changes to this project will be documented in this file.

# v1.1.11 - 2022-04-23

## Notable Changes
- **Interface:**
- **Recordings:** The recordings section has been redesigned and now includes another list mode to view the recordings. The filter function has been redesigned.
- **Camera:** Added a new endpoint for direct streaming (`/cameras/:name/feed`)
- **Cameras:** The cameras section has been redesigned and now includes another list mode to view the cameras.
- **Notifications:** The filter function has been redesigned.
- **Console:** Added a new filter function
- **System:** Improved loading time (`npm`)
- **Config:**
- Top level `"debug"` in config.json is deprecated now. Replaced with `"logLevel"`. Log Level: Show only defined log level. _(Info = Show informative messages during processing. This is in addition to warnings and errors - Debug: Show everything, including debugging information - Warning: Show only warnings and errors - Error: Show only errors)_
- **MQTT:** When motion is detected, the messages are now also published via MQTT to the topic configured under `Settings > Cameras > Notifications > MQTT Publish Topic`

## Other Changes
- Minor UI improvements
- Minor logger improvements
- Bump dependencies
- Downgrade `ffmpeg-for-homebridge`

## Bugfixes
- Minor bugfixes

# v1.1.10 - 2022-04-17

## Other Changes
Expand Down
10 changes: 7 additions & 3 deletions bin/camera.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Interface from '../src/main.js';
let moduleName = 'camera.ui';
let globalInstalled = '1';
let sudoEnabled = '1';
let debugEnabled = '0';
let logLevel = '1';
let logTimestamps = '1';
let logColourful = '1';
let storagePath = path.resolve(os.homedir(), '.camera.ui');
Expand All @@ -27,7 +27,11 @@ const packageJson = fs.readJsonSync(path.resolve(__dirname, '../package.json'));

commander
.allowUnknownOption()
.option('-D, --debug', 'Turn on debug level logging', () => (debugEnabled = '1'))
.option(
'-L, --log-level [level]',
'Change Log Level: 1 = Info (Default), 2 = Debug, 3 = Warn, 4 = Error',
(l) => (logLevel = l)
)
.option('-C, --no-color', 'Disable color in logging', () => (logColourful = '0'))
.option('-T, --no-timestamp', 'Do not issue timestamps in logging', () => (logTimestamps = '0'))
.option('--no-sudo', 'Disable sudo for updating through ui', () => (sudoEnabled = '0'))
Expand All @@ -46,7 +50,7 @@ process.env.NTBA_FIX_350 = 1;
process.env.CUI_SERVICE_MODE = '1';

process.env.CUI_LOG_COLOR = logColourful;
process.env.CUI_LOG_DEBUG = debugEnabled;
process.env.CUI_LOG_MODE = logLevel;
process.env.CUI_LOG_TIMESTAMPS = logTimestamps;

process.env.CUI_BASE_PATH = path.resolve(__dirname, '../');
Expand Down
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"verbose": true,
"watch": ["src"],
"ext": "ts,js,json",
"exec": "node --trace-warnings bin/camera.ui.js -D -S ./test/camera.ui",
"exec": "node --trace-warnings bin/camera.ui.js -L 2 -S ./test/camera.ui",
"delay": "5000",
"signal": "SIGTERM"
}
Loading

0 comments on commit 7334095

Please sign in to comment.