Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-arlo

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-arlo - npm Package Compare versions

Comparing version 3.0.1-beta.9 to 3.0.1-beta.10

logos/arlo-wordmark-logo-horizontal.png

2

config.schema.json

@@ -5,3 +5,3 @@ {

"singular": true,
"headerDisplay": "<p align='center'><img width='250px' src='https://raw.githubusercontent.com/homebridge-plugins/homebridge-arlo/master/arlo/arlo.png'></p>\n\nThe **Homebridge Arlo** plugin allows you to control your Arlo base station.",
"headerDisplay": "<p align='center'><img width='250px' src='https://github.com/homebridge-plugins/homebridge-arlo/raw/master/logos/arlo-wordmark-logo-vertical.png'></p>\n\nThe **Homebridge Arlo** plugin allows you to control your Arlo base station.",
"footerDisplay": "Please raise any issues on our [project page](https://github.com/homebridge-plugins/homebridge-arlo/issues).",

@@ -8,0 +8,0 @@ "schema": {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArloBaseStationAccessory = void 0;
const platform_1 = require("./platform");
const node_arlo_1 = require("node-arlo");
const node_arlo_1 = __importDefault(require("node-arlo"));
/**

@@ -31,3 +34,3 @@ * Platform Accessory

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.ARMED, () => {
this.device.on(node_arlo_1.default.ARMED, () => {
// push the new value to HomeKit

@@ -40,3 +43,3 @@ this.service.updateCharacteristic(this.platform.Characteristic.SecuritySystemCurrentState, this.platform.Characteristic.SecuritySystemCurrentState.AWAY_ARM);

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.DISARMED, () => {
this.device.on(node_arlo_1.default.DISARMED, () => {
// push the new value to HomeKit

@@ -47,3 +50,3 @@ this.service.updateCharacteristic(this.platform.Characteristic.SecuritySystemCurrentState, this.platform.Characteristic.SecuritySystemCurrentState.DISARMED);

});
if (this.platform.config.stay_arm !== node_arlo_1.Arlo.ARMED) {
if (this.platform.config.stay_arm !== node_arlo_1.default.ARMED) {
// Here we update the security system state using

@@ -58,3 +61,3 @@ // the `updateCharacteristic` method.

}
if (this.platform.config.night_arm !== node_arlo_1.Arlo.ARMED) {
if (this.platform.config.night_arm !== node_arlo_1.default.ARMED) {
// Here we update the security system state using

@@ -87,3 +90,3 @@ // the `updateCharacteristic` method.

this.device.arm(() => {
this.device.emit(node_arlo_1.Arlo.ARMED);
this.device.emit(node_arlo_1.default.ARMED);
});

@@ -98,3 +101,3 @@ break;

this.device.disarm(() => {
this.device.emit(node_arlo_1.Arlo.DISARMED);
this.device.emit(node_arlo_1.default.DISARMED);
});

@@ -101,0 +104,0 @@ break;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,3 +9,3 @@ exports.ArloCameraAccessory = void 0;

const cameraSource_1 = require("./cameraSource");
const node_arlo_1 = require("node-arlo");
const node_arlo_1 = __importDefault(require("node-arlo"));
/**

@@ -50,3 +53,3 @@ * Platform Accessory

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.BATTERY, (batteryLevel) => {
this.device.on(node_arlo_1.default.BATTERY, (batteryLevel) => {
if (!batteryLevel) {

@@ -61,3 +64,3 @@ return;

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.CHARGING, (value) => {
this.device.on(node_arlo_1.default.CHARGING, (value) => {
let chargingState = this.platform.Characteristic.ChargingState.NOT_CHARGEABLE;

@@ -75,3 +78,3 @@ if (value) {

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.MOTION, (motionDetected) => {
this.device.on(node_arlo_1.default.MOTION, (motionDetected) => {
if (!motionDetected) {

@@ -86,3 +89,3 @@ return;

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.UPDATE, (info) => {
this.device.on(node_arlo_1.default.UPDATE, (info) => {
if (!info) {

@@ -89,0 +92,0 @@ return;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -6,3 +9,3 @@ exports.ArloQAccessory = void 0;

const cameraSource_1 = require("./cameraSource");
const node_arlo_1 = require("node-arlo");
const node_arlo_1 = __importDefault(require("node-arlo"));
/**

@@ -56,3 +59,3 @@ * Platform Accessory

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.ARMED, () => {
this.device.on(node_arlo_1.default.ARMED, () => {
// push the new value to HomeKit

@@ -65,3 +68,3 @@ this.services['securitySystem'].updateCharacteristic(this.platform.Characteristic.SecuritySystemCurrentState, this.platform.Characteristic.SecuritySystemCurrentState.AWAY_ARM);

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.DISARMED, () => {
this.device.on(node_arlo_1.default.DISARMED, () => {
// push the new value to HomeKit

@@ -72,3 +75,3 @@ this.services['securitySystem'].updateCharacteristic(this.platform.Characteristic.SecuritySystemCurrentState, this.platform.Characteristic.SecuritySystemCurrentState.DISARMED);

});
if (this.platform.config.stay_arm !== node_arlo_1.Arlo.ARMED) {
if (this.platform.config.stay_arm !== node_arlo_1.default.ARMED) {
// Here we update the security system state using

@@ -83,3 +86,3 @@ // the `updateCharacteristic` method.

}
if (this.platform.config.night_arm !== node_arlo_1.Arlo.ARMED) {
if (this.platform.config.night_arm !== node_arlo_1.default.ARMED) {
// Here we update the security system state using

@@ -96,3 +99,3 @@ // the `updateCharacteristic` method.

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.MOTION, (motionDetected) => {
this.device.on(node_arlo_1.default.MOTION, (motionDetected) => {
if (!motionDetected) {

@@ -107,3 +110,3 @@ return;

// the `updateCharacteristic` method.
this.device.on(node_arlo_1.Arlo.UPDATE, (info) => {
this.device.on(node_arlo_1.default.UPDATE, (info) => {
if (!info) {

@@ -224,3 +227,3 @@ return;

this.device.arm(() => {
this.device.emit(node_arlo_1.Arlo.ARMED);
this.device.emit(node_arlo_1.default.ARMED);
});

@@ -235,3 +238,3 @@ break;

this.device.disarm(() => {
this.device.emit(node_arlo_1.Arlo.DISARMED);
this.device.emit(node_arlo_1.default.DISARMED);
});

@@ -238,0 +241,0 @@ break;

@@ -21,2 +21,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -26,3 +29,3 @@ exports.ArloPlatform = void 0;

const PlatformAccessories = __importStar(require("./accessories"));
const node_arlo_1 = require("node-arlo");
const node_arlo_1 = __importDefault(require("node-arlo"));
/**

@@ -42,3 +45,3 @@ * HomebridgePlatform

this.accessories = [];
this.arlo = new node_arlo_1.Arlo();
this.arlo = new node_arlo_1.default();
this.disabled = false;

@@ -55,6 +58,6 @@ this.log.debug('Finished initializing platform:', this.config.name);

if (!this.config.stay_arm) {
this.config.stay_arm = node_arlo_1.Arlo.ARMED;
this.config.stay_arm = node_arlo_1.default.ARMED;
}
if (!this.config.night_arm) {
this.config.night_arm = node_arlo_1.Arlo.ARMED;
this.config.night_arm = node_arlo_1.default.ARMED;
}

@@ -101,3 +104,3 @@ if (!this.config.interval) {

discoverDevices() {
this.arlo.on(node_arlo_1.Arlo.FOUND, (device) => {
this.arlo.on(node_arlo_1.default.FOUND, (device) => {
// generate a unique id for the accessory this should be generated from

@@ -119,7 +122,7 @@ // something globally unique, but constant, for example, the device serial

switch (device.getType()) {
case node_arlo_1.Arlo.BASESTATION:
case node_arlo_1.default.BASESTATION:
this.log.info(`Online: Base Station ${existingAccessory.displayName} [${device.id}]`);
new PlatformAccessories.BaseStation(this, existingAccessory);
break;
case node_arlo_1.Arlo.CAMERA:
case node_arlo_1.default.CAMERA:
if (this.config.include_cameras) {

@@ -130,3 +133,3 @@ this.log.info(`Online: Camera ${existingAccessory.displayName} [${device.id}]`);

break;
case node_arlo_1.Arlo.Q:
case node_arlo_1.default.Q:
if (this.config.include_cameras) {

@@ -150,7 +153,7 @@ this.log.info(`Online: Camera ${existingAccessory.displayName} [${device.id}]`);

switch (device.getType()) {
case node_arlo_1.Arlo.BASESTATION:
case node_arlo_1.default.BASESTATION:
this.log.info(`Found: Base Station ${device.getName()} [${device.id}]`);
new PlatformAccessories.BaseStation(this, accessory);
break;
case node_arlo_1.Arlo.CAMERA:
case node_arlo_1.default.CAMERA:
if (this.config.include_cameras) {

@@ -161,3 +164,3 @@ this.log.info(`Found: Camera ${device.getName()} [${device.id}]`);

break;
case node_arlo_1.Arlo.Q:
case node_arlo_1.default.Q:
if (this.config.include_cameras) {

@@ -164,0 +167,0 @@ this.log.info(`Found: Camera ${device.getName()} [${device.id}]`);

{
"displayName": "Homebridge Arlo",
"name": "homebridge-arlo",
"version": "3.0.1-beta.9",
"version": "3.0.1-beta.10",
"description": "Arlo plugin for homebridge",

@@ -6,0 +6,0 @@ "author": "homebridge-plugins",

<span align="center">
<a href="https://arlo.com">
<img alt="homebridge-arlo" src="https://raw.githubusercontent.com/homebridge-plugins/homebridge-arlo/master/arlo/arlo.png" width="140px">
<img alt="arlo" src="https://github.com/homebridge-plugins/homebridge-arlo/raw/master/logos/arlo-wordmark-logo-vertical.png" height="150px">
</a>

@@ -12,4 +12,13 @@

<a href="https://www.npmjs.com/package/homebridge-arlo">
<img title="npm downloads" src="https://badgen.net/npm/dt/homebridge-arlo">
<img title="npm total downloads" src="https://badgen.net/npm/dt/homebridge-arlo">
</a>
<a href="https://www.npmjs.com/package/homebridge-arlo">
<img title="npm license" src="https://badgen.net/npm/license/homebridge-arlo">
</a>
<a href="https://www.npmjs.com/package/homebridge-arlo">
<img title="npm node version" src="https://badgen.net/npm/node/homebridge-arlo">
</a>
<a href="https://www.npmjs.com/package/homebridge-arlo">
<img title="npm types" src="https://badgen.net/npm/types/homebridge-arlo">
</a>

@@ -16,0 +25,0 @@ <p>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc