Giter Club home page Giter Club logo

seattlewaste2mqtt's Introduction

unmaintained

It appears that in Oct 2021, I lost access to the API. :(

HTTP 403 UNAUTHORIZED

seattlewaste2mqtt

Software License Build Status Coverage Status

An experiment to publish Seattle Collection statuses/dates to MQTT.

Use

The application can be locally built using dotnet build or you can utilize the multi-architecture Docker image(s).

Example

docker run \
-e SEATTLEWASTE__RESOURCES__0__Address="2133 N 61ST ST" \
-e SEATTLEWASTE__RESOURCES__0__Slug="home" \
-e SEATTLEWASTE__MQTT__BROKER="localhost" \
-e SEATTLEWASTE__MQTT__DISCOVERYENABLED="true" \
mannkind/seattlewaste2mqtt:latest

OR

SEATTLEWASTE__RESOURCES__0__Address="2133 N 61ST ST" \
SEATTLEWASTE__RESOURCES__0__Slug="home" \
SEATTLEWASTE__MQTT__BROKER="localhost" \
SEATTLEWASTE__MQTT__DISCOVERYENABLED="true" \
./seattlewaste2mqtt 

Configuration

Configuration happens via environmental variables

SEATTLEWASTE__RESOURCES__#__Address              - The Address for a specific collection
SEATTLEWASTE__RESOURCES__#__Slug                 - The slug to identify the specific address
SEATTLEWASTE__POLLINGINTERVAL                    - [OPTIONAL] The delay between collection lookups, defaults to "0.08:03:31"
SEATTLEWASTE__MQTT__TOPICPREFIX                  - [OPTIONAL] The MQTT topic on which to publish the collection lookup results, defaults to "home/seattle_waste"
SEATTLEWASTE__MQTT__DISCOVERYENABLED             - [OPTIONAL] The MQTT discovery flag for Home Assistant, defaults to false
SEATTLEWASTE__MQTT__DISCOVERYPREFIX              - [OPTIONAL] The MQTT discovery prefix for Home Assistant, defaults to "homeassistant"
SEATTLEWASTE__MQTT__DISCOVERYNAME                - [OPTIONAL] The MQTT discovery name for Home Assistant, defaults to "seattle_waste"
SEATTLEWASTE__MQTT__BROKER                       - [OPTIONAL] The MQTT broker, defaults to "test.mosquitto.org"
SEATTLEWASTE__MQTT__USERNAME                     - [OPTIONAL] The MQTT username, default to ""
SEATTLEWASTE__MQTT__PASSWORD                     - [OPTIONAL] The MQTT password, default to ""

Prior Implementations

Golang

seattlewaste2mqtt's People

Contributors

mannkind avatar rlespinasse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.