https://github.com/mannkind/wsdot2mqtt
A wsdot travel times to mqtt bridge process
https://github.com/mannkind/wsdot2mqtt
docker home-automation iot mqtt washington
Last synced: 2 months ago
JSON representation
A wsdot travel times to mqtt bridge process
- Host: GitHub
- URL: https://github.com/mannkind/wsdot2mqtt
- Owner: mannkind
- License: mit
- Created: 2018-12-12T05:52:33.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-03T02:49:28.000Z (about 2 years ago)
- Last Synced: 2025-08-15T00:22:48.925Z (10 months ago)
- Topics: docker, home-automation, iot, mqtt, washington
- Language: C#
- Homepage:
- Size: 310 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# wsdot2mqtt
[](https://github.com/mannkind/wsdot2mqtt/blob/main/LICENSE.md)
[](https://github.com/mannkind/wsdot2mqtt/actions)
[](http://codecov.io/github/mannkind/wsdot2mqtt?branch=main)
An experiment to publish WSDOT Travel Times to MQTT.
## Use
The application can be locally built using `dotnet build` or you can utilize the multi-architecture Docker image(s).
### Example
```bash
docker run \
-e WSDOT__APIKEY="BCz285y032akbAc6amd1" \
-e WSDOT__RESOURCES__0__TravelTimeID="132" \
-e WSDOT__RESOURCES__0__Slug="seattle2everett" \
-e WSDOT__MQTT__BROKER="localhost" \
-e WSDOT__MQTT__DISCOVERYENABLED="true" \
mannkind/wsdot2mqtt:latest
```
OR
```bash
WSDOT__APIKEY="BCz285y032akbAc6amd1" \
WSDOT__RESOURCES__0__TravelTimeID="132" \
WSDOT__RESOURCES__0__Slug="seattle2everett" \
WSDOT__MQTT__BROKER="localhost" \
WSDOT__MQTT__DISCOVERYENABLED="true" \
./wsdot2mqtt
```
## Configuration
Configuration happens via environmental variables
```bash
WSDOT__APIKEY - The WSDOT API key
WSDOT__RESOURCES__#__TravelTimeID - The Travel Time ID for a specific travel time
WSDOT__RESOURCES__#__Slug - The slug to identify the specific travel time
WSDOT__POLLINGINTERVAL - [OPTIONAL] The delay between travel time lookups lookups, defaults to "0.00:03:31"
WSDOT__MQTT__TOPICPREFIX - [OPTIONAL] The MQTT topic on which to publish the collection lookup results, defaults to "home/wsdot"
WSDOT__MQTT__DISCOVERYENABLED - [OPTIONAL] The MQTT discovery flag for Home Assistant, defaults to false
WSDOT__MQTT__DISCOVERYPREFIX - [OPTIONAL] The MQTT discovery prefix for Home Assistant, defaults to "homeassistant"
WSDOT__MQTT__DISCOVERYNAME - [OPTIONAL] The MQTT discovery name for Home Assistant, defaults to "wsdot"
WSDOT__MQTT__BROKER - [OPTIONAL] The MQTT broker, defaults to "test.mosquitto.org"
WSDOT__MQTT__USERNAME - [OPTIONAL] The MQTT username, default to ""
WSDOT__MQTT__PASSWORD - [OPTIONAL] The MQTT password, default to ""
```
## Prior Implementations
### Golang
* Last Commit: [ab95a034cf11c03b58468e76ae9a557a1e61be90](https://github.com/mannkind/wsdot2mqtt/commit/ab95a034cf11c03b58468e76ae9a557a1e61be90)
* Last Docker Image: [mannkind/wsdot2mqtt:v0.6.20055.0750](https://hub.docker.com/layers/mannkind/wsdot2mqtt/v0.6.20055.0750/images/sha256-b499b7d6c0bb7f4ad873b233736428b4ca16426ca7f3ce3152e3ba97b0a8ac1a?context=explore)