Release 5.7.2

This commit is contained in:
Tom Sightler
2024-10-03 20:11:12 -04:00
parent 0b4fc9ba78
commit bee811c9f6
7 changed files with 795 additions and 502 deletions

View File

@@ -15,7 +15,7 @@ export default class RingDevice {
} }
this.debug = (message, debugType) => { this.debug = (message, debugType) => {
utils.debug(debugType === 'disc' ? message : chalk.green(`[${this.deviceData.name}] `)+message, debugType ? debugType : 'mqtt') utils.debug(debugType === 'disc' ? message : chalk.green(`[${this.deviceData.name}] `)+message, debugType || 'mqtt')
} }
// Build device base and availability topic // Build device base and availability topic
this.deviceTopic = `${utils.config().ring_topic}/${this.locationId}/${category}/${this.deviceId}` this.deviceTopic = `${utils.config().ring_topic}/${this.locationId}/${category}/${this.deviceId}`

View File

@@ -6,15 +6,14 @@ export default class PanicButton extends RingSocketDevice {
this.deviceData.mdl = 'Panic Button' this.deviceData.mdl = 'Panic Button'
// Listen to raw data updates for all devices and pick out // Listen to raw data updates for all devices and log any events
// arm/disarm and countdown events for this security panel
this.device.location.onDataUpdate.subscribe(async (message) => { this.device.location.onDataUpdate.subscribe(async (message) => {
if (!this.isOnline()) { return } if (!this.isOnline()) { return }
if (message.datatype === 'DeviceInfoDocType' && if (message.datatype === 'DeviceInfoDocType' &&
message.body?.[0]?.general?.v2?.zid === this.deviceId message.body?.[0]?.general?.v2?.zid === this.deviceId
) { ) {
this.debug(JSON.stringify(message)) this.debug(JSON.stringify(message), 'data')
} }
}) })

View File

@@ -1,3 +1,15 @@
## v5.7.2
**Bugs Fixed**
- Fix a locking issue which prevented live and event streams to be active concurrently on the same camera.
- Fix an issue with Modes where the incorrect mode was published for a few milliseoncds during startup. Thanks to @wahflz for the PR to address this!
**Dependency Updates**
- push-receiver 4.2.0
- werift 0.20.0
- express 4.21.0
- mqtt 5.10.1
- debug 4.3.7
## v5.7.1 ## v5.7.1
**New Features** **New Features**
- Add experimental support for Zooz water valves. This support is currently untested, but was developed using user data dumps kindly contributed from several users and also based on a similar PR submitted for ring-homebridge from another user. Please feel free to open an issue on the Github project page if you have problems with this device and thanks to all involved for their support. - Add experimental support for Zooz water valves. This support is currently untested, but was developed using user data dumps kindly contributed from several users and also based on a similar PR submitted for ring-homebridge from another user. Please feel free to open an issue on the Github project page if you have problems with this device and thanks to all involved for their support.

View File

@@ -2,7 +2,7 @@
// to native Javascript with custom logging for ring-mqtt and some unused code removed. // to native Javascript with custom logging for ring-mqtt and some unused code removed.
// Much thanks to @dgreif for the original code which is the basis for this work. // Much thanks to @dgreif for the original code which is the basis for this work.
import { FfmpegProcess, reservePorts, RtpSplitter, } from '@homebridge/camera-utils' import { FfmpegProcess, reservePorts, RtpSplitter } from '@homebridge/camera-utils'
import { firstValueFrom, ReplaySubject, Subject } from 'rxjs' import { firstValueFrom, ReplaySubject, Subject } from 'rxjs'
import pathToFfmpeg from 'ffmpeg-for-homebridge' import pathToFfmpeg from 'ffmpeg-for-homebridge'
import { concatMap, take } from 'rxjs/operators' import { concatMap, take } from 'rxjs/operators'

1224
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,28 +5,26 @@
"description": "Ring Devices via MQTT", "description": "Ring Devices via MQTT",
"main": "ring-mqtt.js", "main": "ring-mqtt.js",
"dependencies": { "dependencies": {
"aedes": "0.51.2", "@homebridge/camera-utils": "^2.2.7-beta",
"body-parser": "^1.20.2", "aedes": "^0.51.3",
"body-parser": "^1.20.3",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"date-fns": "^3.6.0", "date-fns": "^4.1.0",
"debug": "^4.3.7", "debug": "^4.3.7",
"express": "^4.21.0", "express": "^4.21.1",
"is-online": "^10.0.0", "is-online": "^11.0.0",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"minimist": "^1.2.8", "minimist": "^1.2.8",
"mqtt": "^5.10.1", "mqtt": "^5.10.1",
"ring-client-api": "^13.1.0", "ring-client-api": "13.2.0-beta.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"werift": "^0.20.0", "werift": "^0.20.1",
"write-file-atomic": "^5.0.1" "write-file-atomic": "^6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.8.0", "@eslint/js": "^9.13.0",
"eslint": "^9.11.1", "eslint": "^9.14.0",
"globals": "^15.9.0" "globals": "^15.11.0"
},
"overrides": {
"@eneris/push-receiver": "4.2.0"
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",

View File

@@ -43,18 +43,18 @@ else
cp "/app/ring-mqtt-${BRANCH}/bin/go2rtc_linux_${GO2RTC_ARCH}" /usr/local/bin/go2rtc cp "/app/ring-mqtt-${BRANCH}/bin/go2rtc_linux_${GO2RTC_ARCH}" /usr/local/bin/go2rtc
chmod +x /usr/local/bin/go2rtc chmod +x /usr/local/bin/go2rtc
#case "${APK_ARCH}" in case "${APK_ARCH}" in
# x86_64) x86_64)
# apk del npm nodejs apk del npm nodejs
# apk add libstdc++ apk add libstdc++
# cd /opt cd /opt
# wget https://unofficial-builds.nodejs.org/download/release/v20.16.0/node-v20.16.0-linux-x64-musl.tar.gz wget https://unofficial-builds.nodejs.org/download/release/v22.11.0/node-v22.11.0-linux-x64-musl.tar.gz
# mkdir nodejs mkdir nodejs
# tar -zxvf *.tar.gz --directory /opt/nodejs --strip-components=1 tar -zxvf *.tar.gz --directory /opt/nodejs --strip-components=1
# ln -s /opt/nodejs/bin/node /usr/local/bin/node ln -s /opt/nodejs/bin/node /usr/local/bin/node
# ln -s /opt/nodejs/bin/npm /usr/local/bin/npm ln -s /opt/nodejs/bin/npm /usr/local/bin/npm
# ;; ;;
#esac esac
cp -f "/app/ring-mqtt-${BRANCH}/init/s6/services.d/ring-mqtt/run" /etc/services.d/ring-mqtt/run cp -f "/app/ring-mqtt-${BRANCH}/init/s6/services.d/ring-mqtt/run" /etc/services.d/ring-mqtt/run
chmod +x /etc/services.d/ring-mqtt/run chmod +x /etc/services.d/ring-mqtt/run