Skip to content
A seattle waste collection schedule to mqtt bridge 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
client.go
config.go
go.mod
go.sum
interfaces.go
main.go
mqttClient.go
wire.go
wire_gen.go

README.md

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 ""
You can’t perform that action at this time.