Add or Edit Event - MintyTrebor/BtnCmd GitHub Wiki
Add/Edit Events
Events are discrete actions which will trigger when the BtnCmd plugin monitors a matching status change to the Duet board.
An event can be triggered on any one of the following status changes:
- Busy
- Paused
- Halted
- Changing Tool
- Idle
When trigged, an event can do one of three things:
- Post an Http get command
- Send a MQTT message*
- Send a Telegram Message (via a telegram bot)
The edit event window is detailed below:

The required information for each event changes depending on the type of event you choose. The following settings are always required independent of the event type:
- Type: The type of event - Telegram, Http, or MQTT*
- Name: Name of the Event
- Status: The Duet status to watch for to trigger this event.
- Enabled: Enable or disable this event.
Event Type Settings
For http you must enter:
- URL: (required) the url for the request. (full url is required)
- further parameters will be displayed as required.
For Telegram you must enter:
- Telegram MSG: The text of the message to send
- Chat ID: The group chat ID where your bot is a member (normally starts with
-) - API Token: Your Telegram Bot's API Token
See Telegram Bot Setup & Help for more info
For MQTT* you must enter:
- MQTT MSG: The text of the message to send
- MQTT Topic: The topic to post the message to.
*(if enabled in Global Settings)