• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Sunoo/homebridge-smtp-motion: Converts SMTP messages into HTTP motion alerts tha ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Sunoo/homebridge-smtp-motion

开源软件地址:

https://github.com/Sunoo/homebridge-smtp-motion

开源编程语言:

TypeScript 64.3%

开源软件介绍:

homebridge-smtp-motion

npm npm verified-by-homebridge

This plugin converts SMTP messages into HTTP motion alerts homebridge-camera-ffmpeg understands.

Note that this plugin itself does not expose any devices to HomeKit.

Installation

  1. Install Homebridge using the official instructions.
  2. Install homebridge-camera-ffmpeg using sudo npm install -g homebridge-camera-ffmpeg --unsafe-perm.
  3. Install this plugin using sudo npm install -g homebridge-smtp-motion.
  4. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [
   {
       "platform": "smtpMotion",
       "smtp_port": 2525
   }
]
  • platform: (Required) Must always be smtpMotion.
  • smtp_port: The port to run the SMTP server on. (Default: 2525)
  • override_http: If you need to override the HTTP port, or are not running homebridge-camera-ffmpeg.
  • space_replace: The character to replace a space with in the camera name portion of the email address. (Default: +)
  • log_emails: Write to the Homebridge log when an email is received. (Default: false)

Camera Configuration

To use this plugin, you'll need to configure the SMTP settings on your camera as listed below. Your camera may use slightly different terms for some of these options.

  • Server Address: The host name or IP address of the computer running Homebridge
  • Port: The value you used for smtp_port in the plugin configuration.
  • Username and Password: Any value can currently be used, as authentication is not currently supported in this plugin. That will likely be added in future versions.
  • From Address: Any value can be used, this is not checked.
  • To Address: This needs to be your camera's name, exactly as configured in homebridge-camera-ffmpeg but with + instead of space, followed by an @ and any domain you want. Example: [email protected]

Running on Port 25 on Linux

If you have a camera that refuses to connect to an SMTP server on a port other than 25, it is still possible to use this plugin:

  • Grant Node permissions to use low ports: sudo setcap 'cap_net_bind_service=+ep' /usr/bin/node
  • Set smtp_port to 25.
  • Restart Homebridge.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap