MattSmell
发表于 2019-3-26 11:48:00
ghostist 发表于 2019-3-26 11:08
本地用VLC播放器看一下能否播rtsp
地址没问题,VLC可以播
dy008
发表于 2019-3-26 22:51:39
谢谢LZ,确实快了很多!
251114061
发表于 2019-3-29 02:20:41
通常的海康rtsp可以用吗,如果可以的话,still_image_url:填什么?
tom663
发表于 2019-3-30 21:26:39
楼主!设置了这个后,提示安装av==6.1.2失败!怎么解决
Unable to install package av==6.1.2: Failed building wheel for av
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7jdnba2_/av/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zcl2sifj/install-record.txt --single-version-externally-managed --prefix--compile --user --prefix=" failed with error code 1 in /tmp/pip-install-7jdnba2_/av/
2019-03-30 21:26:14 ERROR (MainThread) Not initializing stream because could not install requirement av==6.1.2
2019-03-30 21:26:14 ERROR (MainThread) Setup failed for stream: Could not install all requirements.
chiunownow
发表于 2019-4-15 05:51:57
本帖最后由 chiunownow 于 2019-4-15 05:55 编辑
感谢,已经用上了。附上一段我的摄像头额外配置,算是做一点小参考
````yaml
timer:
motion_record_disable:
duration: '00:00:30'
shell_command:
rclone_sync_dafang_onedrive: rclone sync /home/chiunownow/DCIM/ dafang-onedrive:DAFANG-CAM
group:
motion_record:
name: 动作记录
icon: mdi:camera-enhance
entities:
- automation.motion_record_20s
- automation.motion_snapshot
automation:
- alias: motion_record_20s
trigger:
entity_id: binary_sensor.dafang_motion_sensor
platform: state
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: timer.motion_record_disable
state: 'idle'
action:
- service: script.toggle
entity_id: script.motion_record_v2
- delay: 00:00:40
- service: shell_command.rclone_sync_dafang_onedrive
- alias: motion_snapshot
trigger:
entity_id: binary_sensor.dafang_motion_sensor
platform: state
from: 'off'
to: 'on'
action:
- service: timer.start
entity_id: timer.motion_record_disable
- service: camera.snapshot
data:
entity_id: camera.dafangcgi
filename: "/home/chiunownow/DCIM/Picture/{{ now().strftime('%y%m%d-%H%M%S') }}.jpg"
- alias: turn_on_motion_record
trigger:
entity_id: group.device_tracker
platform: state
from: 'home'
to: 'not_home'
for:
minutes: 5
action:
- service: homeassistant.turn_on
entity_id: group.motion_record
- data:
message: 监测到屋主不在家,打开动作记录
service: notify.ios_nownows_iphone
- alias: turn_off_motion_record
trigger:
entity_id: group.device_tracker
platform: state
from: 'not_home'
to: 'home'
action:
- service: homeassistant.turn_off
entity_id: group.motion_record
- data:
message: 监测到屋主到家,关闭动作记录
service: notify.ios_nownows_iphone
script:
motion_record_v2:
sequence:
- service: camera.record
data_template:
entity_id: camera.dafang3
filename: "/home/chiunownow/DCIM/Video/{{ now().strftime('%y%m%d-%H%M%S') }}.mp4"
duration: "20"
lookback: "10"
````
ha监测到大方的动作传感器off-on时,录视频+快照,通过 rclone 同步到 OneDrive,再用 ifttt 监测 OneDrive 的图片和视频文件夹,新增文件时推送到 telegram
rexchen
发表于 2019-5-22 15:30:57
原先RSTP卡,现在用图片一秒获取一次
nisofer
发表于 2019-5-22 20:08:29
厉害厉害,学习了!
ghostist
发表于 2019-5-23 08:37:08
rexchen 发表于 2019-5-22 15:30
原先RSTP卡,现在用图片一秒获取一次
新特性允许点开进去直接看流媒体
0.92以上版本应该可以在页面默认集成流媒体 不用再点开(我没更新到这个版本)
molun
发表于 2020-1-13 17:52:56
chiunownow 发表于 2019-4-15 05:51
感谢,已经用上了。附上一段我的摄像头额外配置,算是做一点小参考
这个是在那个文件里配置的
星辰丨雪影
发表于 2020-3-15 13:11:11
tom663 发表于 2019-3-30 21:26
楼主!设置了这个后,提示安装av==6.1.2失败!怎么解决
Unable to install package av==6.1.2: Failed b ...
我也是,解决了吗