Skip to content
An ipcamera to mqtt bridge facilitated by a pseduo-ftp process
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
Dockerfile.template
LICENSE.md
Makefile
README.md
bridge.go
config.go
ftpServer.go
go.mod
go.sum
interfaces.go
ipcameraClient.go
main.go
mqttClient.go
wire.go
wire_gen.go

README.md

ipcamera2mqtt

Software License Travis CI Coverage Status Go Report Card

An ipcamera to mqtt bridge facilitated by a pseduo-ftp process

Installation

Via Docker

docker run -d --name="ipcamera2mqtt" -v /etc/localtime:/etc/localtime:ro mannkind/ipcamera2mqtt

Via Make

git clone https://github.com/mannkind/ipcamera2mqtt
cd ipcamera2mqtt
make
./ipcamera2mqtt

Configuration

Configuration happens in the config.yaml file. A full example might look this:

IPCAMERA_LISTENADDR     - [OPTIONAL] The address for which to lookup collections, defaults to "0.0.0.0:2121"
IPCAMERA_KEEPIMAGES     - [OPTIONAL] The flag to indicate if published images should be retained, default to true
IPCAMERA_IMAGETIMEOUT   - [OPTIONAL] The duration for which to retain published images, default to "60s"
MQTT_TOPICPREFIX        - [OPTIONAL] The MQTT topic on which to publish the collection lookup results, defaults to "cameras"
MQTT_DISCOVERY          - [OPTIONAL] The MQTT discovery flag for Home Assistant, defaults to false
MQTT_DISCOVERYPREFIX    - [OPTIONAL] The MQTT discovery prefix for Home Assistant, defaults to "homeassistant"
MQTT_DISCOVERYNAME      - [OPTIONAL] The MQTT discovery name for Home Assistant, defaults to "ipcamera"
MQTT_CLIENTID           - [OPTIONAL] The clientId, defaults to "DefaultIPCamera2MQTTClientID"
MQTT_BROKER             - [OPTIONAL] The MQTT broker, defaults to "tcp://mosquitto.org:1883"
MQTT_USERNAME           - [OPTIONAL] The MQTT username, default to ""
MQTT_PASSWORD           - [OPTIONAL] The MQTT password, default to ""
You can’t perform that action at this time.