覆盆子皮智能小门
raspi_door的Python项目详细描述
警告
2014年9月24日:该项目尚未完全投入使用-请返回 一个月左右。
重要
如果你错过了“警告”,这个项目目前 “pre-alpha”,这意味着它还不起作用。
raspi door项目包含在 门里面有覆盆子皮,这样你就可以控制你的 带awesomeness的门……或者,尽可能靠近它。
目标
下面是实现的raspi门特性的列表 将要实现,并且可以实现。
当前功能
- 外部门铃按钮和音响支架
- 内部运动传感器和屏幕自动开/关支持
- 当前时间显示
- 当前天气显示
即将推出的功能
- 门锁/解锁控制
- 蓝牙和WiFi连接访问控制
- 活动记录
- 门事件日历集成
- 地铁服务提醒和ETAS
潜在特征
- 带红外线照明的外部摄像头
- 生物识别:人脸/语音/指纹/等识别
- NFC/RFID支持
- 带摄像头的遥控门锁/解锁功能
- 邪恶活动探测器!伙计!
RASPI门用五金件
托多。
RASPI门软件
# (all commands as root *or* preceded with "sudo " *or* you # know what you are doing... :-) # (optional) create a virtualenv for raspi-door $ virtualenv --prompt '(raspi-door) ' /path/to/virtualenv $ . /path/to/virtualenv/bin/activate # install pre-requisite pygame # => not needed once issue #59 has been fixed: # https://bitbucket.org/pygame/pygame/issues/59/pygame-and-pip # TODO: figure out why this is necessary... $ wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz # IFF pygame disappears, there is a cache here: $ wget https://github.com/metagriffin/raspi-door/raw/master/cache/pygame-1.9.1release.tar.gz $ sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev \ libsdl-mixer1.2-dev libsdl-ttf2.0-dev \ libsmpeg-dev libportmidi-dev $ ln -s ../libv4l1-videodev.h /usr/include/linux/videodev.h $ easy_install pygame-1.9.1release.tar.gz # install pre-requisite pgu # TODO: figure out why this is necessary... $ wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pgu/pgu-0.18.zip # IFF pgu disappears, there is a cache here: $ wget https://github.com/metagriffin/raspi-door/raw/master/cache/pgu-0.18.zip $ easy_install pgu-0.18.zip $ pip install raspi-door # configure raspi-door $ raspi-door --initialize > /etc/raspi-door.conf $ nano /etc/raspi-door.conf # review all of the configuration options... and open a # raspi-door issue if anything is "unclear" :-)
故障排除
"ImportError: No module named pkg_resources"
如果在安装过程中遇到问题,pip 不再工作,您可能需要重新安装 设置工具。但是,您需要在不使用pip或 易于安装…因此,请检查https://pypi.python.org/pypi/setuptools 有关直接安装的详细信息,例如:
$ wget https://bootstrap.pypa.io/ez_setup.py -O - | python