workday2mqtt publishes the state "workday" to an MQTT server. It works the same as the HomeAsssistant extension workday. from HomeAssistant
-
Install Docker
-
Create the config.json file (see below)
-
Run the container
docker run -d --name workday2mqtt -v ./config.json:/workday2mqtt/config.json --restart unless-stopped j4n-e4t/workday2mqtt:<current_release_tag>
-
Install Python 3
-
Clone this repository
-
Install the dependencies
pip install -r requirements.txt
-
Modify the config.json file
-
Run the script
python3 main.py
- 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
)