1.1.0 • Published 10 years ago
mqtt-camera-ftpd v1.1.0
MQTT FTPd for IP Cameras
Translates FTP uploads from IP Cameras into motion events for MQTT.
MQTT Events
Events about a device are sent to MQTT using the following format:
{PREFACE}/{USER_NAME}/motionPREFACE is defined as "camera" by default in your configuration
For example, my Foscam is uploading to this FTP service as "Front Door". So the following topic will be published:
# Motion state (active|inactive)
camera/Front Door/motionConfiguration
The bridge has one yaml file for configuration. Currently we only have three items you can set:
---
mqtt:
# Specify your MQTT Broker's hostname or IP address here
host: mqtt
# Preface for the topics $PREFACE/$USER_NAME/motion
preface: camera
# Port number to listen on
port: 21We'll be adding additional fields as this service progresses (mqtt port, username, password, etc).
Usage
Run the Docker container
$ docker run \ -d \ --name="mqtt-camera-ftpd" \ -v /opt/mqtt-camera-ftpd:/config \ -p 8080:8080 \ stjohnjohnson/mqtt-camera-ftpdCustomize the MQTT host
$ vi /opt/mqtt-camera-ftpd/config.yml $ docker restart mqtt-camera-ftpdConfigure your cameras to use this service as a FTP server
- Watch as MQTT is populated with events from your devices