Skip to content

This project is a quick attempt to get data I needed into a MQTT server, to be ingested by home-assistant.

License

Notifications You must be signed in to change notification settings

zelifcam/prusa2mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prusa2mqtt MK4

I recently purchased a Prusa MK4 3D Printer. Unfortunately, the official home-assistant integration is not compatible with my printer https://www.home-assistant.io/integrations/prusalink. This project is a quick attempt to get data I needed into a MQTT server, to be ingested by home-assistant.

Project Description

The purpose of this project is to provide a streamlined method for transferring Prusalink data to an MQTT server. By leveraging Python and Docker, this solution offers a straightforward and efficient approach to seamlessly handle data transmission.

Supported / Tested / Required Prusalink Version

api: 2.0.0
server: 2.1.2

Features

  • Simplified Prusalink data integration with an MQTT server.
  • Python-based implementation for flexibility and ease of use.
  • Docker containerization for effortless deployment and scalability.

Usage

Create a ".env" file in the root of this project folder, using a text editor of your choice.

exmple file: .env

APP_VERSION="1.0" # Do Not Change
MQTT_HOST="192.168.0.10"
MQTT_PORT=1883
MQTT_USER="mqtt-user" 
MQTT_PASS="mqtt-password"
PRUSALINK_HOST="https://192.168.0.20"
PRUSALINK_USER="maker"
PRUSALINK_PASS="password"
PRUSALINK_CALLS="info,version,status" # Do Not Change
PRUSALINK_UPDATE=30 # Update Frequency in Seconds

After you have edited the .env file, run the following commands.

$ git clone <project>
$ cd <project>
$ docker-compose up -d && docker-compose logs -f

Manually import the MQTT topics into Home Assistant.

https://www.home-assistant.io/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

This project is a quick attempt to get data I needed into a MQTT server, to be ingested by home-assistant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages