feat: add temperatures to gcode files list (#1017)

Co-authored-by: th33xitus <th33xitus@googlemail.com>
This commit is contained in:
Stefan Dej
2022-08-12 10:21:05 +02:00
committed by GitHub
parent f55b58a2a9
commit 1f71d2dbbc
4 changed files with 40 additions and 10 deletions

View File

@@ -544,7 +544,7 @@ interface tableColumnSetting {
sortable?: boolean sortable?: boolean
class?: string class?: string
pos?: number pos?: number
outputType?: 'string' | 'date' | 'length' | 'weight' | 'filesize' | 'time' outputType?: 'string' | 'date' | 'length' | 'weight' | 'filesize' | 'temp' | 'time'
} }
@Component({ @Component({
@@ -716,6 +716,27 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
class: 'text-no-wrap', class: 'text-no-wrap',
outputType: 'length', outputType: 'length',
}, },
{
text: this.$t('Files.ExtruderTemp').toString(),
value: 'first_layer_extr_temp',
visible: true,
class: 'text-no-wrap',
outputType: 'temp',
},
{
text: this.$t('Files.BedTemp').toString(),
value: 'first_layer_bed_temp',
visible: true,
class: 'text-no-wrap',
outputType: 'temp',
},
{
text: this.$t('Files.ChamberTemp').toString(),
value: 'chamber_temp',
visible: true,
class: 'text-no-wrap',
outputType: 'temp',
},
{ {
text: this.$t('Files.FilamentName').toString(), text: this.$t('Files.FilamentName').toString(),
value: 'filament_name', value: 'filament_name',

View File

@@ -154,7 +154,9 @@
"Files": { "Files": {
"AddToQueue": "Zur Auftragswarteschlange hinzufügen", "AddToQueue": "Zur Auftragswarteschlange hinzufügen",
"AllFiles": "Alle", "AllFiles": "Alle",
"BedTemp": "Bett Temp.",
"Cancel": "Abbrechen", "Cancel": "Abbrechen",
"ChamberTemp": "Kammer Temp.",
"Create": "Erstellen", "Create": "Erstellen",
"CreateNewDirectory": "Ordner erstellen", "CreateNewDirectory": "Ordner erstellen",
"CurrentPath": "Aktueller Pfad", "CurrentPath": "Aktueller Pfad",
@@ -165,6 +167,7 @@
"Download": "Herunterladen", "Download": "Herunterladen",
"EditFile": "Datei bearbeiten", "EditFile": "Datei bearbeiten",
"Empty": "Leer", "Empty": "Leer",
"ExtruderTemp": "Extruder Temp.",
"Filament": "Filament", "Filament": "Filament",
"FilamentName": "Filament Name", "FilamentName": "Filament Name",
"FilamentType": "Filament Typ", "FilamentType": "Filament Typ",
@@ -256,6 +259,9 @@
"ErrorKlipperNotReady": "Klipper nicht bereit. Heightmap deaktiviert.", "ErrorKlipperNotReady": "Klipper nicht bereit. Heightmap deaktiviert.",
"Flat": "Flach", "Flat": "Flach",
"Heightmap": "Heightmap", "Heightmap": "Heightmap",
"InvalidNameAlreadyExists": "Das Profil existiert bereits, bitte wähle einen anderen Profilnamen.",
"InvalidNameEmpty": "Feld darf nicht leer sein!",
"InvalidNameReserved": "Das Profil 'default' ist reserviert, bitte wähle einen anderen Profilnamen.",
"Later": "später", "Later": "später",
"Mesh": "Mesh", "Mesh": "Mesh",
"Name": "Name", "Name": "Name",
@@ -268,9 +274,6 @@
"RemoveSaveDescription": "Das Löschen des Höhenprofils wurde registriert. Mit einem Klick auf SAVE_CONFIG wird es aus der printer.cfg gelöscht und Klipper neu gestartet.", "RemoveSaveDescription": "Das Löschen des Höhenprofils wurde registriert. Mit einem Klick auf SAVE_CONFIG wird es aus der printer.cfg gelöscht und Klipper neu gestartet.",
"Rename": "umbenennen", "Rename": "umbenennen",
"RenameBedMeshProfile": "Bed Mesh umbenennen", "RenameBedMeshProfile": "Bed Mesh umbenennen",
"InvalidNameEmpty": "Feld darf nicht leer sein!",
"InvalidNameReserved": "Das Profil 'default' ist reserviert, bitte wähle einen anderen Profilnamen.",
"InvalidNameAlreadyExists": "Das Profil existiert bereits, bitte wähle einen anderen Profilnamen.",
"SAVE_CONFIG": "SAVE_CONFIG", "SAVE_CONFIG": "SAVE_CONFIG",
"ScaleGradient": "Farbverlauf skalieren", "ScaleGradient": "Farbverlauf skalieren",
"ScaleZMax": "Skaliere z-max.", "ScaleZMax": "Skaliere z-max.",
@@ -284,6 +287,7 @@
"AllJobs": "Alle", "AllJobs": "Alle",
"AvgPrinttime": "Druckzeit - Ø", "AvgPrinttime": "Druckzeit - Ø",
"Cancel": "abbrechen", "Cancel": "abbrechen",
"ChamberTemp": "Kammer Temp.",
"CreateNote": "Notiz anlegen", "CreateNote": "Notiz anlegen",
"Delete": "Löschen", "Delete": "Löschen",
"DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Jobs gelöscht werden?", "DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Jobs gelöscht werden?",
@@ -757,8 +761,8 @@
"CalcPrintProgressDescription": "Methode zur Berechnung des Druckfortschritts.", "CalcPrintProgressDescription": "Methode zur Berechnung des Druckfortschritts.",
"CalcPrintProgressItems": { "CalcPrintProgressItems": {
"Filament": "Filament", "Filament": "Filament",
"FileRelative": "Dateiposition (relativ)",
"FileAbsolute": "Dateiposition (absolut)", "FileAbsolute": "Dateiposition (absolut)",
"FileRelative": "Dateiposition (relativ)",
"Slicer": "Slicer (M73)" "Slicer": "Slicer (M73)"
}, },
"CannotReadJson": "Sicherungsdatei kann nicht gelesen/analysiert werden.", "CannotReadJson": "Sicherungsdatei kann nicht gelesen/analysiert werden.",

View File

@@ -154,7 +154,9 @@
"Files": { "Files": {
"AddToQueue": "Add to Queue", "AddToQueue": "Add to Queue",
"AllFiles": "All", "AllFiles": "All",
"BedTemp": "Bed Temp.",
"Cancel": "Cancel", "Cancel": "Cancel",
"ChamberTemp": "Chamber Temp.",
"Create": "Create", "Create": "Create",
"CreateNewDirectory": "Create new Directory", "CreateNewDirectory": "Create new Directory",
"CurrentPath": "Current path", "CurrentPath": "Current path",
@@ -165,6 +167,7 @@
"Download": "Download", "Download": "Download",
"EditFile": "Edit File", "EditFile": "Edit File",
"Empty": "Empty", "Empty": "Empty",
"ExtruderTemp": "Extruder Temp.",
"Filament": "Filament", "Filament": "Filament",
"FilamentName": "Filament Name", "FilamentName": "Filament Name",
"FilamentType": "Filament Type", "FilamentType": "Filament Type",
@@ -256,6 +259,9 @@
"ErrorKlipperNotReady": "Klipper not ready. Heightmap disabled.", "ErrorKlipperNotReady": "Klipper not ready. Heightmap disabled.",
"Flat": "Flat", "Flat": "Flat",
"Heightmap": "Heightmap", "Heightmap": "Heightmap",
"InvalidNameAlreadyExists": "Profile name already exists, please choose another profile name.",
"InvalidNameEmpty": "Input must not be empty!",
"InvalidNameReserved": "Profile 'default' is reserved, please choose another profile name.",
"Later": "Later", "Later": "Later",
"Mesh": "Mesh", "Mesh": "Mesh",
"Name": "Name", "Name": "Name",
@@ -268,9 +274,6 @@
"RemoveSaveDescription": "The bed_mesh profile has been registered as deleted. Click on SAVE_CONFIG to remove it from the printer.cfg and restart Klipper.", "RemoveSaveDescription": "The bed_mesh profile has been registered as deleted. Click on SAVE_CONFIG to remove it from the printer.cfg and restart Klipper.",
"Rename": "rename", "Rename": "rename",
"RenameBedMeshProfile": "Rename Bed Mesh Profile", "RenameBedMeshProfile": "Rename Bed Mesh Profile",
"InvalidNameEmpty": "Input must not be empty!",
"InvalidNameReserved": "Profile 'default' is reserved, please choose another profile name.",
"InvalidNameAlreadyExists": "Profile name already exists, please choose another profile name.",
"SAVE_CONFIG": "SAVE_CONFIG", "SAVE_CONFIG": "SAVE_CONFIG",
"ScaleGradient": "Scale gradient", "ScaleGradient": "Scale gradient",
"ScaleZMax": "Scale z-max.", "ScaleZMax": "Scale z-max.",
@@ -284,6 +287,7 @@
"AllJobs": "All", "AllJobs": "All",
"AvgPrinttime": "Print Time - Ø", "AvgPrinttime": "Print Time - Ø",
"Cancel": "Cancel", "Cancel": "Cancel",
"ChamberTemp": "Chamber Temp.",
"CreateNote": "Create Note", "CreateNote": "Create Note",
"Delete": "Delete", "Delete": "Delete",
"DeleteSelectedQuestion": "Do you really want to delete {count} selected jobs?", "DeleteSelectedQuestion": "Do you really want to delete {count} selected jobs?",
@@ -646,6 +650,7 @@
}, },
"SelectPrinterDialog": { "SelectPrinterDialog": {
"AddPrinter": "Add Printer", "AddPrinter": "Add Printer",
"AddPrintersToJson": "Please add the Printers to the config.json.",
"CannotConnectTo": "Cannot connect to {host}.", "CannotConnectTo": "Cannot connect to {host}.",
"ChangePrinter": "Change Printer", "ChangePrinter": "Change Printer",
"Connecting": "Connecting to {host}", "Connecting": "Connecting to {host}",
@@ -655,7 +660,6 @@
"HostnameInvalid": "invalid Hostname/IP", "HostnameInvalid": "invalid Hostname/IP",
"HostnameIp": "Hostname/IP", "HostnameIp": "Hostname/IP",
"HostnameRequired": "Hostname is required", "HostnameRequired": "Hostname is required",
"AddPrintersToJson": "Please add the Printers to the config.json.",
"Port": "Port", "Port": "Port",
"PortRequired": "Port is required", "PortRequired": "Port is required",
"RememberToAdd": "Please remember to add '{cors}' in moonraker.conf within 'cors_domains'.", "RememberToAdd": "Please remember to add '{cors}' in moonraker.conf within 'cors_domains'.",
@@ -757,8 +761,8 @@
"CalcPrintProgressDescription": "Method for calculating the print progress.", "CalcPrintProgressDescription": "Method for calculating the print progress.",
"CalcPrintProgressItems": { "CalcPrintProgressItems": {
"Filament": "Filament", "Filament": "Filament",
"FileRelative": "File position (relative)",
"FileAbsolute": "File position (absolute)", "FileAbsolute": "File position (absolute)",
"FileRelative": "File position (relative)",
"Slicer": "Slicer (M73)" "Slicer": "Slicer (M73)"
}, },
"CannotReadJson": "Cannot read/parse backup file.", "CannotReadJson": "Cannot read/parse backup file.",

View File

@@ -50,6 +50,7 @@ export const allowedMetadata = [
'nozzle_diameter', 'nozzle_diameter',
'first_layer_bed_temp', 'first_layer_bed_temp',
'first_layer_extr_temp', 'first_layer_extr_temp',
'chamber_temp',
'first_layer_height', 'first_layer_height',
'gcode_end_byte', 'gcode_end_byte',
'gcode_start_byte', 'gcode_start_byte',