mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00

Add pause count notification Update DisplayInfoOnLCD.py Moved some line insertions to accommodate newer Creality firmware. Change DisplayFIlename and DIsplayProgress Add messages to use DIsplay Info and add exit code. Update DisplayInfoOnLCD.py Some changes
41 lines
1.5 KiB
Python
41 lines
1.5 KiB
Python
# Cura PostProcessingPlugin
|
|
# Author: Mathias Lyngklip Kjeldgaard, Alexander Gee, Kimmo Toivanen, Inigo Martinez
|
|
# Date: July 31, 2019
|
|
# Modified: Nov 30, 2021
|
|
|
|
# Description: This plugin displays progress on the LCD. It can output the estimated time remaining and the completion percentage.
|
|
|
|
from ..Script import Script
|
|
|
|
import re
|
|
import datetime
|
|
from UM.Message import Message
|
|
|
|
class DisplayProgressOnLCD(Script):
|
|
|
|
def initialize(self) -> None:
|
|
Message(title = "[Display Progress on LCD]", text = "This script is now an option in 'Display Info on LCD'. This post processor no longer works.").show()
|
|
|
|
def getSettingDataString(self):
|
|
return """{
|
|
"name": "Display Progress On LCD",
|
|
"key": "DisplayProgressOnLCD",
|
|
"metadata": {},
|
|
"version": 2,
|
|
"settings":
|
|
{
|
|
"enable_script":
|
|
{
|
|
"label": "Deprecated/Obsolete",
|
|
"description": "This script is now included in 'Display Info on LCD'.",
|
|
"type": "bool",
|
|
"default_value": true
|
|
}
|
|
}
|
|
}"""
|
|
|
|
def execute(self, data):
|
|
Message(title = "[Display Progress on LCD]", text = "This post is now included in 'Display Info on LCD'. This script will exit.").show()
|
|
data[0] += "; [Display Progress on LCD] Did not run. It is now included in 'Display Info on LCD'.\n"
|
|
return data
|