Thank you@blakeblackshearfor putting this together. Here is my best shot at a noob’s guide to using a Raspberry Pi 4 to do person detection. I’m still working on home assistant integration but this doesn’t seem very difficult. (Edit: It was harder than I expected although now that I have it setup, it’s pretty awesome.)
步骤1:使用Balenaetcher闪烁Hypriot图像到SD卡上
Step 2: Update Password:
passwd
步骤3:根特权
sudo -i
步骤4:更新您的安装
apt-get update && apt-get upgrade -y
重启
步骤6:安装Hassio的额外软件
apt-get install -y jq curl avahi-daemon dbus apparmor-utils网络 - 经理apt-transport-https-https ca-cecrifificates socat软件properties-propies-common-common gnupg gnupg-gnupg-
重启
步骤7:安装hass.iofor RPi4
curl -sl https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh |bash -s -m raspberrypi4
步骤8:在192.168.xx.xx上检查Hassio安装:8123
步骤9:设置家庭助理19463331伟德国际
步骤10:从添加ONS安装蚊子并添加用户名和密码
Step 11: Install Configurator from add ons
Step 12: Download frigate files to /home/pirate
git clone https://github.com/blakeblackshear/frigate.git
步骤13:更新配置文件
Step 14: Comment out intel hardware acceleration lines in DockerFile so it looks like this
libgcc1#vaapi驱动程序,用于英特尔硬件#libva-drm2 libva2 i965-va-driver vainfo \#&& rm -rm -rf/var/var/lib/apt/lists/*
步骤15:建造护卫舰容器
docker build -t frigate .
步骤16:创建docker-compose.yml文件,然后将其保存在主护卫舰目录中。像这样:
Nano Docker-Compose.yml
复制并粘贴以下内容。
版本:“ 3”服务:护卫舰:container_name:Frigate RESTART:除非停滞特权:True Image:Frigate:最新卷: - /dev/dev/bus/usb:/dev/dev/bus/usb - /home/home/home/pirate/pirate/pirate/config:/config端口: - “ 5000:5000”环境:rtsp_password:“密码”
然后控制+o,输入,控制+x
步骤17:运行护卫舰容器
docker-compose up
步骤18:通过复制相机和binary_senso19463331伟德国际r代码与家庭助理集成@blakeblackshear’s readme example to the Home Assistant config file. As of this writing it appears the automation code is intended to live inside the automations.yaml file which is where it was generated when I created my first automation via the Configuration->Automation tab.
对于像我一样来自Ipcamtalk世界的人,这里有一些有关家庭助理的提示:19463331伟德国际
- 默认情况下,在HA的最新版本上创建的configuration.yaml文件看起来与您会发现的大多数示例相同。伟德国际官方app下载苹果版它没有或需要额外的代码行才能正常工作。您最终需要比大多数会发现的示例和视频要少得多。伟德国际官方app下载苹果版
- If you want to add multiple cameras you’ll just copy the “camera” and “binary_sensor” sections and add a space and an identifier like so
摄像机2: - 名称:摄像机最后一个人2平台:MQTT主题:护卫舰//快照binary_sensor 2: - 名称:camera2人平台:MQTT state_topic:“ frigate//objects” value_template:'value_template:'value_jsson {value_jjson {{。
- For Android users you won’t need a “native” app from the Play store. It’s possible to setup your configuration withduckdns.orgvia aHass.io附加组件,以便您可以远程查看HA安装。设置后,您可以“添加到主屏幕”您创建的HTTPS页面,并且它将像普通应用一样运行。lovelace UI从我所看到的,比我尝试建立“ HA客户”的尝试更好。对于通知,我正在使用HTML5,尽管Telegram和Pushbullet显然也是不错的选择。