项目作者: mannkind

项目描述 :
A litter robot API to mqtt bridge process
高级语言: C#
项目地址: git://github.com/mannkind/litterrobot2mqtt.git
创建时间: 2019-08-04T01:55:31Z
项目社区:https://github.com/mannkind/litterrobot2mqtt

开源协议:MIT License

下载


litterrobot2mqtt

Software
License
Build Status
Coverage Status

An experiment to publish Litter Robot statuses to MQTT.

Use

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

Example

  1. docker run \
  2. -e LITTERROBOT__LOGIN="youremailaddress@example.com" \
  3. -e LITTERROBOT__PASSWORD="yourpassword" \
  4. -e LITTERROBOT__RESOURCES__0__LRID="69103754" \
  5. -e LITTERROBOT__RESOURCES__0__Slug="main" \
  6. -e LITTERROBOT__MQTT__BROKER="localhost" \
  7. -e LITTERROBOT__MQTT__DISCOVERYENABLED="true" \
  8. mannkind/litterrobot2mqtt:latest

OR

  1. LITTERROBOT__LOGIN="youremailaddress@example.com" \
  2. LITTERROBOT__PASSWORD="yourpassword" \
  3. LITTERROBOT__RESOURCES__0__LRID="69103754" \
  4. LITTERROBOT__RESOURCES__0__Slug="main" \
  5. LITTERROBOT__MQTT__BROKER="localhost" \
  6. LITTERROBOT__MQTT__DISCOVERYENABLED="true" \
  7. ./litterrobot2mqtt

Configuration

Configuration happens via environmental variables

  1. LITTERROBOT__LOGIN - The Litter Robot Login
  2. LITTERROBOT__PASSWORD - The Litter Robot Password
  3. LITTERROBOT__RESOURCES__#__LRID - The Litter Robot ID for a specific Litter Robot
  4. LITTERROBOT__RESOURCES__#__Slug - The slug to identify the specific Litter Robot ID
  5. LITTERROBOT__POLLINGINTERVAL - [OPTIONAL] The delay between litter robot status lookups, defaults to "0.00:00:31"
  6. LITTERROBOT__MQTT__TOPICPREFIX - [OPTIONAL] The MQTT topic on which to publish the collection lookup results, defaults to "home/litterrobot"
  7. LITTERROBOT__MQTT__DISCOVERYENABLED - [OPTIONAL] The MQTT discovery flag for Home Assistant, defaults to false
  8. LITTERROBOT__MQTT__DISCOVERYPREFIX - [OPTIONAL] The MQTT discovery prefix for Home Assistant, defaults to "homeassistant"
  9. LITTERROBOT__MQTT__DISCOVERYNAME - [OPTIONAL] The MQTT discovery name for Home Assistant, defaults to "litterrobot"
  10. LITTERROBOT__MQTT__BROKER - [OPTIONAL] The MQTT broker, defaults to "test.mosquitto.org"
  11. LITTERROBOT__MQTT__USERNAME - [OPTIONAL] The MQTT username, default to ""
  12. LITTERROBOT__MQTT__PASSWORD - [OPTIONAL] The MQTT password, default to ""

Prior Implementations

Golang