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-ftp-motion

v2.1.1

Published

Converts FTP uploads into HTTP motion alerts that homebridge-camera-ffmpeg understands

Downloads

18

Readme

homebridge-ftp-motion

npm npm verified-by-homebridge

This plugin converts FTP uploads 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-ftp-motion.
  4. Update your configuration file. See configuration sample below.

Configuration

Edit your config.json accordingly. Configuration sample:

"platforms": [
   {
       "platform": "ftpMotion",
       "ftp_port": 5000,
       "http_port": 8080,
       "cameras": [
           {
               "name": "Cat Food Camera",
               "path": "/home/user/images/cat"
           }
       ]
   }
]

Configuration Options

  • ftp_port: The port to run the FTP server on. (Default: 5000)
  • override_http: If you need to override the HTTP port, or are not running homebridge-camera-ffmpeg.
  • bot_token: The token given by @BotFather when creating the Telegram bot.
  • cameras: (Required) Array of Dafang Hacks camera configs (multiple supported).
    • name: (Required) Name of your camera. (Needs to be the same as in homebridge-camera-ffmpeg config)
    • server: Hostname or IP address of the FTP server to upload to. If not set, files will be stored locally.
    • port: Port of the remote FTP server. (Default: 21)
    • username: Username of the remote FTP server. If not set, no authentication will be used.
    • password: Password of the remote FTP server. If not set, no authentication will be used.
    • tls: Should TLS be used to connect to remote FTP server? (Default: false)
    • path: The location on the remote FTP server to store incoming images.
    • local_path: The location on the system Homebridge is running on to store incoming images.
    • chat_id: The chat ID given by the bot after sending '/start' to it.
    • caption: If true, sends the filename as the caption to the image.

Camera Configuration

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

  • Host Name: The host name or IP address of the computer running Homebridge
  • Port: The value you used for ftp_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.
  • Path: This should be the name of your camera, exactly as defined in the homebridge-camera-ffmpeg plugin.

Telegram Bot Setup

If you want to use the Telegram functionality of this plugin, you'll need to set up your own Telegram bot. Here are instructions on doing that with this plugin.

  • Send /newbot to @BotFather on Telegram and answer the questions it asks you.
  • When it sends Use this token to access the HTTP API, copy the token and add it to this plugin's config under bot_token.
  • Restart Homebridge, this will allow the bot to start and connect to Telegram.
  • If you want the bot to message a group, invite the bot to that group.
  • From the chat you want to receive notifications, send /start.
  • Your bot will send you Chat ID for (chatname), copy that ID to this plugin's config under chat_id. This is set uniquely for each camera.
  • Restart Homebridge again. Your bot is now configured.