npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-smtp-motion

v1.2.1

Published

Converts SMTP messages into HTTP motion alerts that homebridge-camera-ffmpeg understands

Downloads

3

Readme

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.