Release 5.1.0 (#537)

* Use MQTT for start-stream debug messages
* Fix ANSI colors
* Refactor event URL management
* Fix subscription detection
* Improve event URL expiry handling by parsing Amazon S3 expire time
* Convert to ESM/replace colors with chalk
* Force colors for chalk
* Migrate to ESM
* Fix stop of keepalive stream
* Add transcoded event selections
* Update event URL on raw/trancoded toggle
* Switch to per-camera livecall threads
* Customized WebRTC functions
Mostly copied from ring-client-api with port to pure Javascript, removal of unneeded features and additional debugging modified for use as worker thread with ring-mqtt.  Allows easier testing with updated Werift versions.
* Add nightlight enable/disable
* Include nightlight state as attribute
* Only pro versions have nightlight
* Tweak battery level reporting for dual battery cameras
* Release 5.1.0
This commit is contained in:
tsightler
2023-02-02 20:59:09 -05:00
committed by GitHub
parent c88b82cdb5
commit b8338e30de
57 changed files with 2832 additions and 2794 deletions

View File

@@ -1,10 +1,13 @@
const { RingRestClient } = require('../node_modules/ring-client-api/lib/api/rest-client')
const debug = require('debug')('ring-mqtt')
const utils = require('./utils')
const express = require('express')
const bodyParser = require("body-parser")
import { RingRestClient } from '../node_modules/ring-client-api/lib/rest-client.js'
import utils from './utils.js'
import { dirname } from 'path'
import { fileURLToPath } from 'url'
import express from 'express'
import bodyParser from 'body-parser'
import debugModule from 'debug'
const debug = debugModule('ring-mqtt')
class TokenApp {
export default new class TokenApp {
constructor() {
this.app = express()
this.listener = false
@@ -34,7 +37,7 @@ class TokenApp {
return
}
const webdir = __dirname+'/../web'
const webdir = dirname(fileURLToPath(new URL('.', import.meta.url)))+'/web'
let restClient
this.listener = this.app.listen(55123, () => {
@@ -99,5 +102,3 @@ class TokenApp {
}
}
}
module.exports = new TokenApp()