Skip to content

Commit

Permalink
v1.1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Apr 24, 2022
1 parent a673835 commit 10aa9ac
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

# v1.1.7 - 2022-04-24

## Bugfixes
- Several issues that caused the process to crash have been fixed

# v1.1.16 - 2022-04-24

## Notable Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camera.ui",
"version": "1.1.16",
"version": "1.1.17",
"description": "NVR like user interface for RTSP capable cameras.",
"author": "SeydX (https://github.com/SeydX/camera.ui)",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/controller/camera/services/prebuffer.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export default class PrebufferService {

kill();

Socket.io.emit.emit('prebufferStatus', {
Socket.io.emit('prebufferStatus', {
camera: this.cameraName,
status: 'inactive',
});
Expand All @@ -600,7 +600,7 @@ export default class PrebufferService {
await socketPromise;
clearTimeout(ffmpegTimeout);

Socket.io.emit.emit('prebufferStatus', {
Socket.io.emit('prebufferStatus', {
camera: this.cameraName,
status: 'active',
});
Expand Down
2 changes: 1 addition & 1 deletion src/controller/camera/services/stream.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class StreamService {
let errors = [];

this.streamSession.stdout.on('data', (data) => {
Socket.io.emit.to(`stream/${this.cameraName}`).emit(this.cameraName, data);
Socket.io.to(`stream/${this.cameraName}`).emit(this.cameraName, data);
});

this.streamSession.stderr.on('data', (data) => {
Expand Down
4 changes: 2 additions & 2 deletions src/controller/camera/services/videoanalysis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default class VideoAnalysisService {
p2p.on('pam', () => {
restartWatchdog();

Socket.io.emit.emit('videoanalysisStatus', {
Socket.io.emit('videoanalysisStatus', {
camera: this.cameraName,
status: 'active',
});
Expand Down Expand Up @@ -394,7 +394,7 @@ export default class VideoAnalysisService {

log.debug('Videoanalysis process closed', this.cameraName);

Socket.io.emit.emit('videoanalysisStatus', {
Socket.io.emit('videoanalysisStatus', {
camera: this.cameraName,
status: 'inactive',
});
Expand Down
8 changes: 5 additions & 3 deletions src/controller/event/event.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,17 @@ export default class EventController {

if (allowStream) {
const diskSpace = Socket.diskSpace;
const allowRecording = Boolean(diskSpace.free >= 1);
const allowRecording = Boolean(diskSpace.available >= 1) || Boolean(diskSpace.available === null);

if (!allowRecording) {
log.warn(
`The available disk space is less than 1 GB (${diskSpace.free.toFixed(
`The available disk space is less than 1 GB (${diskSpace.available.toFixed(
2
)})! Please free up disk space to be able to create new recordings!`,
)} GB)! Please free up disk space to be able to create new recordings!`,
cameraName
);

log.info('Skip local storage of the recording..', cameraName);
}

if (!fileBuffer) {
Expand Down

0 comments on commit 10aa9ac

Please sign in to comment.