seattlewaste2mqtt

command module
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 12 Imported by: 0

README

seattlewaste2mqtt

Software License Travis CI Coverage Status Go Report Card

Installation

Via Docker
docker run -d --name="seattlewaste2mqtt" -e "SEATTLEWASTE_ADDRESS=2133 N 61ST ST" -v /etc/localtime:/etc/localtime:ro mannkind/seattlewaste2mqtt
Via Make
git clone https://github.com/mannkind/seattlewaste2mqtt
cd seattlewaste2mqtt
make
SEATTLEWASTE_ADDRESS="2133 N 61ST ST" ./seattlewaste2mqtt

Configuration

Configuration happens via environmental variables

SEATTLEWASTE_ADDRESS        - The address for which to lookup collections
SEATTLEWASTE_ALERTWITHIN    - [OPTIONAL] The duration for which to alert, defaults to "24h"
SEATTLEWASTE_LOOKUPINTERVAL - [OPTIONAL] The duration for which to lookup collections, defaults to "8h"
MQTT_TOPICPREFIX            - [OPTIONAL] The MQTT topic on which to publish the collection lookup results, defaults to "home/seattle_waste"
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 "seattle_waste"
MQTT_CLIENTID               - [OPTIONAL] The clientId, defaults to "DefaultSeattleWaste2MQTTClientID"
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 ""

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL