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.
sudo npm install -g homebridge-camera-ffmpeg --unsafe-perm
.sudo npm install -g homebridge-ftp-motion
.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"
}
]
}
]
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.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 HomebridgePort
: 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.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.
/newbot
to @BotFather on Telegram and answer the questions it asks you.Use this token to access the HTTP API
, copy the token and add it to this plugin's config under bot_token
./start
.Chat ID for (chatname)
, copy that ID to this plugin's config under chat_id
. This is set uniquely for each camera.