mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Change example data to contain HTML instead of JSON format
Then it's easier for us to show a more readable information about the data we collect Contributes to CURA-6434.
This commit is contained in:
parent
534a035841
commit
46f1f00cb9
4 changed files with 42 additions and 115 deletions
|
@ -89,6 +89,7 @@ Window
|
||||||
}
|
}
|
||||||
|
|
||||||
textArea.text: manager.getExampleData()
|
textArea.text: manager.getExampleData()
|
||||||
|
textArea.textFormat: Text.RichText
|
||||||
textArea.readOnly: true
|
textArea.readOnly: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ class SliceInfo(QObject, Extension):
|
||||||
if not plugin_path:
|
if not plugin_path:
|
||||||
Logger.log("e", "Could not get plugin path!", self.getPluginId())
|
Logger.log("e", "Could not get plugin path!", self.getPluginId())
|
||||||
return None
|
return None
|
||||||
file_path = os.path.join(plugin_path, "example_data.json")
|
file_path = os.path.join(plugin_path, "example_data.html")
|
||||||
if file_path:
|
if file_path:
|
||||||
with open(file_path, "r", encoding = "utf-8") as f:
|
with open(file_path, "r", encoding = "utf-8") as f:
|
||||||
self._example_data_content = f.read()
|
self._example_data_content = f.read()
|
||||||
|
|
40
plugins/SliceInfoPlugin/example_data.html
Normal file
40
plugins/SliceInfoPlugin/example_data.html
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
Cura Version: 4.0<br/>
|
||||||
|
System type: Windows<br/>
|
||||||
|
Machine type: Ultimaker S5<br/>
|
||||||
|
Quality profile: Fast<br/>
|
||||||
|
Extruder 1:
|
||||||
|
<ul>
|
||||||
|
<li>Material type: PLA</li>
|
||||||
|
<li>Print core: AA 0.4</li>
|
||||||
|
<li>Material used: 1240 mm.</li>
|
||||||
|
</ul>
|
||||||
|
Extruder 2:
|
||||||
|
<ul>
|
||||||
|
<li>Material type: PVA</li>
|
||||||
|
<li>Print core: BB 0.4</li>
|
||||||
|
<li>Material used: 432 mm.</li>
|
||||||
|
</ul>
|
||||||
|
Print settings:
|
||||||
|
<ul>
|
||||||
|
<li>Layer height = 0.15</li>
|
||||||
|
<li>Wall line count = 3</li>
|
||||||
|
<li>Enable retraction = no</li>
|
||||||
|
<li>Infill density = 20%</li>
|
||||||
|
<li>Infill pattern = triangles</li>
|
||||||
|
<li>Gradual infill steps = 0</li>
|
||||||
|
<li>Printing temperature = 220 °C</li>
|
||||||
|
<li>Generate support = yes</li>
|
||||||
|
<li>Support extruder = 1</li>
|
||||||
|
<li>Build Plate Adhesion Type = brim</li>
|
||||||
|
<li>Enable prime tower = yes</li>
|
||||||
|
<li>Print sequence = All at once</li>
|
||||||
|
<li>...</li>
|
||||||
|
</ul>
|
||||||
|
Print times:
|
||||||
|
<ul>
|
||||||
|
<li>Infill = 61200 sec.</li>
|
||||||
|
<li>Support = 25480 sec.</li>
|
||||||
|
<li>Travel = 6224 sec.</li>
|
||||||
|
<li>Walls = 10225 sec.</li>
|
||||||
|
<li>Total = 103129 sec.</li>
|
||||||
|
</ul>
|
|
@ -1,114 +0,0 @@
|
||||||
{
|
|
||||||
"time_stamp": 1523973715.486928,
|
|
||||||
"schema_version": 0,
|
|
||||||
"cura_version": "3.3",
|
|
||||||
"active_mode": "custom",
|
|
||||||
"machine_settings_changed_by_user": true,
|
|
||||||
"language": "en_US",
|
|
||||||
"os": {
|
|
||||||
"type": "Linux",
|
|
||||||
"version": "#43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018"
|
|
||||||
},
|
|
||||||
"active_machine": {
|
|
||||||
"definition_id": "ultimaker3",
|
|
||||||
"manufacturer": "Ultimaker B.V."
|
|
||||||
},
|
|
||||||
"extruders": [
|
|
||||||
{
|
|
||||||
"active": true,
|
|
||||||
"material": {
|
|
||||||
"GUID": "506c9f0d-e3aa-4bd4-b2d2-23e2425b1aa9",
|
|
||||||
"type": "PLA",
|
|
||||||
"brand": "Generic"
|
|
||||||
},
|
|
||||||
"material_used": 0.84,
|
|
||||||
"variant": "AA 0.4",
|
|
||||||
"nozzle_size": 0.4,
|
|
||||||
"extruder_settings": {
|
|
||||||
"wall_line_count": 3,
|
|
||||||
"retraction_enable": true,
|
|
||||||
"infill_sparse_density": 30,
|
|
||||||
"infill_pattern": "triangles",
|
|
||||||
"gradual_infill_steps": 0,
|
|
||||||
"default_material_print_temperature": 200,
|
|
||||||
"material_print_temperature": 200
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"active": false,
|
|
||||||
"material": {
|
|
||||||
"GUID": "86a89ceb-4159-47f6-ab97-e9953803d70f",
|
|
||||||
"type": "PVA",
|
|
||||||
"brand": "Generic"
|
|
||||||
},
|
|
||||||
"material_used": 0.5,
|
|
||||||
"variant": "BB 0.4",
|
|
||||||
"nozzle_size": 0.4,
|
|
||||||
"extruder_settings": {
|
|
||||||
"wall_line_count": 3,
|
|
||||||
"retraction_enable": true,
|
|
||||||
"infill_sparse_density": 20,
|
|
||||||
"infill_pattern": "triangles",
|
|
||||||
"gradual_infill_steps": 0,
|
|
||||||
"default_material_print_temperature": 215,
|
|
||||||
"material_print_temperature": 220
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"quality_profile": "fast",
|
|
||||||
"user_modified_setting_keys": ["layer_height", "wall_line_width", "infill_sparse_density"],
|
|
||||||
"models": [
|
|
||||||
{
|
|
||||||
"hash": "b72789b9beb5366dff20b1cf501020c3d4d4df7dc2295ecd0fddd0a6436df070",
|
|
||||||
"bounding_box": {
|
|
||||||
"minimum": {
|
|
||||||
"x": -10.0,
|
|
||||||
"y": 0.0,
|
|
||||||
"z": -5.0
|
|
||||||
},
|
|
||||||
"maximum": {
|
|
||||||
"x": 9.999999046325684,
|
|
||||||
"y": 40.0,
|
|
||||||
"z": 5.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"transformation": {
|
|
||||||
"data": "[[ 1. 0. 0. 0.] [ 0. 1. 0. 20.] [ 0. 0. 1. 0.] [ 0. 0. 0. 1.]]"
|
|
||||||
},
|
|
||||||
"extruder": 0,
|
|
||||||
"model_settings": {
|
|
||||||
"support_enabled": true,
|
|
||||||
"support_extruder_nr": 1,
|
|
||||||
"infill_mesh": false,
|
|
||||||
"cutting_mesh": false,
|
|
||||||
"support_mesh": false,
|
|
||||||
"anti_overhang_mesh": false,
|
|
||||||
"wall_line_count": 3,
|
|
||||||
"retraction_enable": true,
|
|
||||||
"infill_sparse_density": 30,
|
|
||||||
"infill_pattern": "triangles",
|
|
||||||
"gradual_infill_steps": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"print_times": {
|
|
||||||
"travel": 187,
|
|
||||||
"support": 825,
|
|
||||||
"infill": 351,
|
|
||||||
"total": 7234
|
|
||||||
},
|
|
||||||
"print_settings": {
|
|
||||||
"layer_height": 0.15,
|
|
||||||
"support_enabled": true,
|
|
||||||
"support_extruder_nr": 1,
|
|
||||||
"adhesion_type": "brim",
|
|
||||||
"wall_line_count": 3,
|
|
||||||
"retraction_enable": true,
|
|
||||||
"prime_tower_enable": true,
|
|
||||||
"infill_sparse_density": 20,
|
|
||||||
"infill_pattern": "triangles",
|
|
||||||
"gradual_infill_steps": 0,
|
|
||||||
"print_sequence": "all_at_once"
|
|
||||||
},
|
|
||||||
"output_to": "LocalFileOutputDevice"
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue