This is a Homebridge plugin that exposes extended controls for Logitech Circle cameras, such as toggles for privacy mode, camera on/off, and LED on/off.
Tested with Node v8.9 and Homebridge v0.4.42.
npm i -g homebridge-logi-circle-controls
You'll need to know the ID of your device(s) to configure this plugin.
Log into the web interface at https://circle.logi.com.
Once logged in and viewing a camera, the URL should be along the lines of https://circle.logi.com/#/accessories/<ID>
. The ID in the URL is the device ID required in the config objects below.
In your Homebridge config.json file, add a new entry in platforms
that looks like this:
{
"platform": "Logi Circle Controls",
"name": "<Optional: the desired name for the platform (mostly affects Homebridge logs) | Default: 'Logi Circle Controls'>",
"email": "<Required: the email for your Logitech Circle account>",
"password": "<Required: the password for your Logitech Circle account>",
"accessories": [] /* Required, see "Accessories" section */
}
In the above configuration, accessories
is an array of cameras for this platform to control.
An accessory config object looks like this:
{
"deviceId": "<Required: The ID of your camera>",
"name": "<Optional: The desired name for the camera | Default: Logi Circle>",
/* Each of the below objects is optional */
"camera": {
"name": "<Optional: the desired name of the camera switch | Default: 'Camera'>",
"disabled": false /* Optional: set to true to disable this switch | Default: false */
},
"led": {
"name": "<Optional: the desired name of the LED switch | Default: 'LED'>",
"disabled": false /* Optional: set to true to disable this switch | Default: false */
},
"privacyMode": {
"name": "<Optional: the desired name of the privacy mode switch | Default: 'Privacy Mode'>",
"disabled": false /* Optional: set to true to disable this switch | Default: false */
},
"recording": {
"name": "<Optional: the desired name of the recording switch | Default: 'Recording'>",
"disabled": true /* Optional: set to true to disable this switch | Default: true */
},
"nightVisionMode": {
"name": "<Optional: the desired name of the night vision mode switch | Default: 'Night Vision'>",
"disabled": true /* Optional: set to true to disable this switch | Default: true */
},
"nightVisionIR": {
"name": "<Optional: the desired name of the night vision IR switch | Default: 'Night IR'>",
"disabled": true /* Optional: set to true to disable this switch | Default: true */
}
}
camera
SwitchControls the camera's on/off state. When the switch is on, the camera is on. When the switch is off, the camera is off.
led
SwitchControls the LED ring power. When the switch is off, the LED ring is off. When the switch is on, the LED ring is on.
privacyMode
SwitchControls recording. When the switch is on, recording is disabled. When the switch is off, recording is enabled.
This switch is deprecated and will be removed in a future version.
It is recommended to disable this switch and the recording
switch instead.
recording
SwitchControls recording. When the switch is on, recording is enabled. When the switch is off, recording is disabled.
nightVisionMode
SwitchControls night vision mode. When the switch is on, the camera will automatically switch into night vision mode when it's dark.When the switch is off, night vision is disabled.
nightVisionIR
SwitchControls night vision IR LEDs. When the switch is on, the camera will use the IR LEDs when in night vision mode.When the switch is off, night vision IR LEDs are disabled.
这用于创建圆形。 语法 (Syntax) 以下是添加圆圈的简单语法。 xtype: 'draw', type: 'circle' 例子 (Example) 以下是一个显示用法的简单示例。 <!DOCTYPE html> <html> <head> <link href = "https://cdnjs.cloudflare.com/ajax/libs/extjs/6.0.0/c
圆是距离固定点(圆心)固定距离(圆的半径)的所有点的轨迹。 换句话说,圆是形成闭环的线,每个点与中心点之间的距离是固定的。 圆由两个参数定义,即 - Centre - 这是圆圈内的一个点。 圆上的所有点距离中心点等距(相同距离)。 Radius - 半径是从中心到圆上任意点的距离。 它是直径的一半。 在JavaFX中,圆圈由名为Circle的类表示。 该类属于包javafx.scene.shape
THING~ Circle Circle 圆 Circle() Example // 创建一个圆var circle = app.create({ type: 'Circle', radius: 1,// 半径 segments: 25,// 圆弧细分片段数,值越大,越平滑 thetaStart: 0,// 起始角度 thetaLength: Math.PI * 2 // 终止角度});
The circle primitive creates circles surfaces using the geometry component with the type set to circle. Example <a-scene> <a-assets> <img src="platform.jpg"> </a-assets> <!-- Basic circle. -->
利用UICollectionView将界面元素摆放成圆环布局,可以动态增添和删除界面元素。 [Code4App.com]
Full Circle 中文翻译组(Full Circle Chinese Translation Team,简称“FCCTT”) ,于2007年7月23日创立,目前FCCTT的主要任务是对英文原版的《Full Circle》进行翻译,制作发布《Full Circle》中文译本。 我们所出版的《Full Circle》是一本专门介绍Ubuntu操作系统使用技巧和刊登开源业界信息的社区杂志。FCCT