mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-24 17:20:23 +08:00
Release 4.8.2
This commit is contained in:
@@ -78,7 +78,7 @@ class RingSocketDevice extends RingDevice {
|
||||
// Get full set of device data and publish to info topic JSON attributes
|
||||
const attributes = {
|
||||
... this.device.data.hasOwnProperty('acStatus') ? { acStatus: this.device.data.acStatus } : {},
|
||||
... this.device.data.hasOwnProperty('alarmInfo') && this.device.data.alarmInfo.hasOwnProperty('state')
|
||||
... this.device.data.hasOwnProperty('alarmInfo') && this.device.data.alarmInfo !== null && this.device.data.alarmInfo.hasOwnProperty('state')
|
||||
? { alarmState: this.device.data.alarmInfo.state }
|
||||
: (this.device.deviceType === 'security-panel')
|
||||
? { alarmState: 'all-clear' } : {},
|
||||
|
||||
@@ -674,6 +674,12 @@ class Camera extends RingPolledDevice {
|
||||
debug('Establishing connection to live stream for camera '+this.deviceId)
|
||||
try {
|
||||
this.data.stream.session = await this.device.streamVideo({
|
||||
input: [
|
||||
'-fflags',
|
||||
'nobuffer',
|
||||
'-flags',
|
||||
'low_delay'
|
||||
],
|
||||
audio: [], video: [],
|
||||
// The below takes the native AVC video stream from Rings servers and just
|
||||
// copies the video stream to the RTPS server unmodified. However, for
|
||||
@@ -695,6 +701,8 @@ class Camera extends RingPolledDevice {
|
||||
'aac',
|
||||
'-c:a:1',
|
||||
'copy',
|
||||
'-rtsp_transport',
|
||||
'tcp',
|
||||
'-f',
|
||||
'rtsp',
|
||||
this.data.stream.rtspPublishUrl
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
## v4.8.2
|
||||
**Fixed Bugs**
|
||||
- Bump ring-client-api to 9.21.2 to address issue with error on toggling camera lights on/off
|
||||
- Fix alarm state attribute not resetting to all-clear after alarm event
|
||||
|
||||
## v4.8.1
|
||||
**Fixed Bugs**
|
||||
|
||||
@@ -35,7 +35,7 @@ class Utils
|
||||
async getHostFqdn() {
|
||||
const pLookupService = promisify(dns.lookupService)
|
||||
try {
|
||||
return await (pLookupService(await this.getHostIp(), 0)).hostname
|
||||
return (await pLookupService(await this.getHostIp(), 0)).hostname
|
||||
} catch {
|
||||
console.log('Failed to resolve FQDN, using os.hostname() instead')
|
||||
return os.hostname()
|
||||
@@ -45,7 +45,7 @@ class Utils
|
||||
async getHostIp() {
|
||||
const pLookup = promisify(dns.lookup)
|
||||
try {
|
||||
return await (pLookup(os.hostname())).address
|
||||
return (await pLookup(os.hostname())).address
|
||||
} catch {
|
||||
console.log('Failed to resolve hostname IP address, returning localhost instead')
|
||||
return 'localhost'
|
||||
|
||||
Reference in New Issue
Block a user