在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:moritzmhmk/homebridge-camera-rpi开源软件地址:https://github.com/moritzmhmk/homebridge-camera-rpi开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-camera-rpiraspberry pi camera plugin for homebridge Note: An SD card image is available here. Prerequisite
Installation (as homebridge plugin)npm install -g homebridge-camera-rpi edit {
...
"platforms": [
...
{
"platform": "rpi-camera",
"cameras": [{"name": "Pi Camera"}]
}
]
} add homebridge to the video group: restart add extra camera accessory in the home app (the setup code is the same as for homebridge) Installation (standalone)make sure optionally install in cd /opt
sudo mkdir homebridge-camera-rpi
sudo chown pi homebridge-camera-rpi install: git clone https://github.com/moritzmhmk/homebridge-camera-rpi
cd homebridge-camera-rpi
npm install test: node standalone.js optionally create systemd service [Unit]
Description=HAP Camera RPi
[Service]
ExecStart=/usr/local/bin/node /opt/homebridge-camera-rpi/standalone.js -c /etc/homebridge-camera-rpi.conf.json
WorkingDirectory=/opt/homebridge-camera-rpi
Restart=always
RestartSec=10
User=pi
[Install]
WantedBy=multi-user.target create config file {
"name": "Pi Camera",
"id": "Pi Camera",
"pincode": "031-45-154",
"username": "EC:23:3D:D3:CE:CE"
}
enable and start the service: sudo systemctl enable hap-camera-rpi
sudo systemctl start hap-camera-rpi Options{
"name": "Pi Camera",
"id": "Pi Camera",
"rotate": 0,
"verticalFlip": false,
"horizontalFlip": false,
"debug": false
} Note: |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论