Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
/ workday2mqtt Public archive

💼 Publish the "workday" status to MQTT, without Home Assistant!

Notifications You must be signed in to change notification settings

j4n-e4t/workday2mqtt

Repository files navigation

workday2mqtt

workday2mqtt publishes the state "workday" to an MQTT server. It works the same as the HomeAsssistant extension workday. from HomeAssistant

🖥️ Installation

🐳 Docker

  1. Install Docker

  2. Create the config.json file (see below)

  3. Run the container

    docker run -d --name workday2mqtt -v ./config.json:/workday2mqtt/config.json --restart unless-stopped j4n-e4t/workday2mqtt:<current_release_tag>

🐍 Python Script

  1. Install Python 3

  2. Clone this repository

  3. Install the dependencies

    pip install -r requirements.txt
  4. Modify the config.json file

  5. Run the script

    python3 main.py

⚙️ Configuration

  • country: The country code of the country you want to track. (default: US)
  • mqtt_server: The IP address or hostname of your MQTT server. (default: localhost)
  • mqtt_port: The port of your MQTT server. (default: 1883)
  • mqtt_username: The username for your MQTT server. (default: mqtt)
  • mqtt_password: The password for your MQTT server. (default: mqtt)
  • mqtt_topic: The topic to publish the data to. (default: workday)