This flow is an example how to enable and disable an app using node-RED and the ctrlX CORE api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[include menu/*.cfg] | |
[include macros/*.cfg] | |
[mcu] | |
serial: /dev/serial/by-id/usb-Klipper_stm32f407xx_190032001950324239333220-if00 | |
restart_method: command | |
[printer] | |
kinematics: cartesian_abc |
#Description This files will enable you to directly connect your widgets with your mqtt broker. It consists of a job, which will manage the connection to your project. It will over a rest api to publish, subscribe and unsubscribe from your widgets.
#Installation Add the mqtt.rb to your dashing jobs.
#Usage To connect a widget to mqtt use a post on 'mqtt/subscribe' on your constructor. As parameters you need to post the topic to subscribe and the widget id. E.g.:
$.post 'mqtt/subscribe',