homebridge-pc-volume is a Homebridge plugin that adds a support for changing a computer's volume using HomeKit and Siri.
homebridge-pc-volume utilises node-loudness, which currently supports macOS, Linux (using ALSA), and Windows. Windows may need OpenSSL to be installed; it is required when being run on CI, which installs the latest 64-bit not-light 1.0.2 build avialable from https://slproweb.com/products/Win32OpenSSL.html. I have not personally tested this project on Linux or Windows.
First, install Homebridge.
Then install homebridge-pc-volume via npm
:
npm install -g homebridge-pc-volume
homebridge-pc-volume will also need to be specified as an accessory in your ~/.homebridge/config.json
:
{
// Other keys here...
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook"
}
]
}
Note that accessory
must be "ComputerSpeakers", while the name
can be any value of your choosing.
When the property logarithmic
is set to true
the volume will be scaled logarithmically.
The services
property can be used to decide how your computer's speaker will be exposed: as a lightbulb, fan, speaker, or a combination of all 3.
Please note that while iOS 11 supports "HomeKit speakers" this appears to actually be via AirPlay 2, so the "speaker" option is unlikely to work!
If no services key is provided a lightbulb will be exposed.
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook"
}
]
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook",
"services": ["lightbulb"]
}
]
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook",
"services": ["fan"]
}
]
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook",
"services": ["speaker", "fan"]
}
]
Buttons can be exposed that will increase or decrease the system volume by a set percentage. These services are called increase-button
and decrease-button
. switchVolumeDelta
can be provided to change the default percentage change of 5%. switchDelay
controls the delay in ms between the switch being turned on and turned back off. Without a delay the Home app will not display the change. Defaults to 10
.
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook",
"services": ["fan", "increase-button", "decrease-button"],
"switchVolumeDelta": 10,
"switchDelay": 100
}
]
If you wish to set some initial values when the plugin starts you can set the initialVolume
and initiallyMuted
properties:
"accessories": [
{
"accessory": "ComputerSpeakers",
"name": "MacBook",
"initialVolume": 70,
"initiallyMuted": true
}
]
To develop homebridge-pc-volume locally:
npm install
npm run build
npm install --global $(pwd)
This will allow homebridge to find your local version of homebridge-pc-volume. After making changes you will need to restart homebridge.
You may also stop any homebridge instance you already have running and run yarn build⌚debug
, which will start homebridge, and automatically restart it when a source file is updated. This instance of homebridge uses the .homebridge-debug/config.json
config file.
people's cloud using the ideas of botnets for good the documentation on this page is always under construction ⚠️ aim & intent to create a technological solution so that people with computing power ca
由来 luck是一直活泼可爱的小狗,被主人施加魔法后成为前端界知名的弹层组件,luck现在可是非常厉害,神通广大,不信把我召唤过来试试!
PC-BASIC 是一个 GW-BASIC 文件解析器,可以运行和转换 ASCII ,字节码和“protected”(加密)的 .BAS 文件。它继承了 Microsoft Binary Format(MBF)的浮点算法,可以读写 GW-BASIC 创建的二进制数据文件。
自己做的osc的pc客户端,大概5月20号左右开始开工的,中间由于比较忙有两周没写了。 最近看到osc上连续两篇文章说拿XX制作osc客户端,本人有点坐不住了, 花了3天时间,算是把动弹方面的功能做了个差不多。先发上来再说,后续会把其他功能完善。 # 做这个客户端,之前我想的是用#TideSdk# 做,但由于TideSdk的一些bug,让我不得不放弃TideSdk。 还白白浪费了几天时间。 然后想
概述 jsmod 目标提供高自由度(高扩展性)的组件集合,并统一桌面端、移动端的使用方式,是一个面向用户端的组件库 面向用户端设计 相比面向中后台的组件库,jsmod 不会提供很多特定组件。但每个组件的自定义功能都会比较丰富,便于组合使用,你可以使用简单的默认样式,也可以通过丰富的 api 自定义开发 最小集 移除了栅格 字体 图标等功能(用户端产品往往都有自己的UI标准),专注提供可扩展的组件库
Scid vs. PC 是一个用 Tcl 编程语言实现的强大的棋类 GUI 和工具包。