Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vindolin/prusa2mqtt
Command line tool that parses the USB serial output of a Prusa 3D printer and publishes the sensor values and progress to an MQTT server.
https://github.com/vindolin/prusa2mqtt
3d-printing mqtt prusa
Last synced: 25 days ago
JSON representation
Command line tool that parses the USB serial output of a Prusa 3D printer and publishes the sensor values and progress to an MQTT server.
- Host: GitHub
- URL: https://github.com/vindolin/prusa2mqtt
- Owner: vindolin
- License: mit
- Created: 2022-02-20T16:51:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-03T09:12:08.000Z (9 months ago)
- Last Synced: 2024-10-04T09:17:34.404Z (about 1 month ago)
- Topics: 3d-printing, mqtt, prusa
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prusa2mqtt
Command line tool that parses the USB serial output of a Prusa 3D printer and publishes the sensor values and progress to an MQTT server.
The difference between this script and the MQTT plugin for Octoprint is, that this script only connects once to the /dev/ttyACM0 port and the connection doesn't abort if you power down the printer.
Install:
--------
```bash
pip install prusa2mqtt
``````bash
prusa2mqtt --help
``````
usage: prusa2mqtt [-h] [--topic TOPIC] [--client_id CLIENT_ID]
[--check_interval CHECK_INTERVAL]
[--serial_port SERIAL_PORT] [--mqtt_address MQTT_ADDRESS]
[--mqtt_port MQTT_PORT] [--mqtt_username MQTT_USERNAME]
[--mqtt_password MQTT_PASSWORD]
[--discrete_topics DISCRETE_TOPICS]Log temperature data and progress from the USB port of a Prusa printer to an MQTT server.
optional arguments:
-h, --help show this help message and exit
--serial_port SERIAL_PORT
Path to the serial port device. (default: /dev/ttyACM0)
--topic TOPIC Topic for the MQTT message. (default: prusa)
--client_id CLIENT_ID
Distinct client ID for the MQTT connection. (default: prusa2mqtt)
--check_interval CHECK_INTERVAL
Interval in seconds for checking the temperatures. (default: 5)
--serial_port SERIAL_PORT
Path to the serial port device.
--mqtt_address MQTT_ADDRESS
Address for the MQTT connection. (default: localhost)
--mqtt_port MQTT_PORT
Port for the MQTT connection. (default: 1883)
--mqtt_username MQTT_USERNAME
User name for the MQTT connection. (default: None)
--mqtt_password MQTT_PASSWORD
Password name for the MQTT connection. (default: None)
--discrete_topics DISCRETE_TOPICS
Post sensor data to discrete topics instead of one JSON payload. (default: False)
```Send GCODE over MQTT:
--------
```
You can also send GCODE to your printer if you publish something to $TOPIC/gcode
```