Thanks to the web interface OctoPrint we can control everything that is happening in our 3D printer. We just need to connect it through its USB port to a Raspberry Pi and that's it.
But, if we want to monitor and analyze in real time all the information provided by OctoPrint, we can use the MQTT protocol to send it and generate graphs of extruder and hot bed temperature, printing hours, the process of a job, etc. To achieve this we need:
Install the plugin OctoPrint-MQTT and configure it with the connection parameters of our broker MQTT
We identify topics of interest, for example
Extruder temperature:: octoPrint/temperature/tool0
Hot bed temperature: octoPrint/temperature/bed
Print Process: octoPrint/progress/printing
We connect our IoT platform to the MQTT broker and deploy the necessary sensors to store and visualize the data. Real time example: iot.rosariot.com/printer