Minor tweaks

This commit is contained in:
tsightler
2022-09-26 20:44:58 -04:00
parent c5757d89b4
commit c00bcf5d2f
2 changed files with 7 additions and 7 deletions

View File

@@ -9,11 +9,11 @@ ENV LANG="C.UTF-8" \
TERM="xterm-256color"
COPY . /app/ring-mqtt
RUN apk add --no-cache tar xz git libcrypto1.1 libssl1.1 musl-utils musl bash curl jq tzdata nodejs npm mosquitto-clients && \
APK_ARCH="$(apk --print-arch)" && \
S6_VERSION="v3.1.2.1" && \
RSS_VERSION="v0.20.0" && \
RUN S6_VERSION="v3.1.2.1" && \
BASHIO_VERSION="v0.14.3" && \
RSS_VERSION="v0.20.0" && \
apk add --no-cache tar xz git libcrypto1.1 libssl1.1 musl-utils musl bash curl jq tzdata nodejs npm mosquitto-clients && \
APK_ARCH="$(apk --print-arch)" && \
curl -L -s "https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-noarch.tar.xz" | tar -Jxpf - -C / && \
case "${APK_ARCH}" in \
aarch64|armhf|x86_64) \

View File

@@ -45,7 +45,7 @@ class RingMqtt {
} else {
debug('MQTT connection established, processing Ring locations...')
await this.initRingData()
this.processLocations()
this.publishLocations()
}
} else {
this.mqttConnected = false
@@ -103,8 +103,8 @@ class RingMqtt {
return this.client
}
// Loop through each location and call publishLocation for supported/connected devices
async processLocations() {
// Loop through each location and publish supported devices
async publishLocations() {
// For each location get existing alarm & camera devices
this.locations.forEach(async location => {
const devices = await this.devices.filter(d => d.locationId == location.locationId)