Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Thumbnail Image for Creality K1S #304

Open
holdestmade opened this issue Mar 26, 2024 · 7 comments
Open

No Thumbnail Image for Creality K1S #304

holdestmade opened this issue Mar 26, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@holdestmade
Copy link

holdestmade commented Mar 26, 2024

Version of the moonraker integration: 1.1.1

Creality K1C
Klipper, Moonraker, Fluidd

No Thumbnail image for K1C using Creality Print.
Most sensors and the camera are working fine

home-assistant_moonraker_2024-03-26T09-16-22.195Z.zip

@holdestmade holdestmade changed the title No Thumbnal Image for Creality K1S No Thumbnail Image for Creality K1S Mar 26, 2024
@marcolivierarsenault
Copy link
Owner

can you try #301

@marcolivierarsenault marcolivierarsenault added the bug Something isn't working label Mar 28, 2024
@marcolivierarsenault
Copy link
Owner

can you try #308

@holdestmade
Copy link
Author

holdestmade commented Apr 1, 2024

Hi, tried both the above, but still no thumbnal, debug logs below:

2024-04-01 09:33:29.646 DEBUG (MainThread) [custom_components.moonraker.camera] Trying to get thumbnail 
2024-04-01 09:33:29.647 DEBUG (MainThread) [custom_components.moonraker.camera] Thumbnail new_path: None
2024-04-01 09:33:29.647 DEBUG (MainThread) [custom_components.moonraker.camera] Empty path, no thumbnail
2024-04-01 09:33:52.309 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: 14337ecf-6490-41c3-9395-c467e9e0087b, from: printer.objects.query
2024-04-01 09:33:52.309 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: 14337ecf-6490-41c3-9395-c467e9e0087b, object: {'objects': {'print_stats': ['state', 'message', 'filename', 'total_duration', 'print_duration', 'filament_used', 'info'], 'display_status': ['message', 'progress'], 'extruder': ['temperature', 'target', 'power'], 'heater_bed': ['target', 'temperature', 'power'], 'toolhead': ['position'], 'gcode_move': ['speed_factor'], 'temperature_fan chamber_fan': ['temperature'], 'temperature_fan mcu_fan': ['temperature'], 'temperature_sensor mcu_temp': ['temperature'], 'temperature_sensor chamber_temp': ['temperature'], 'heater_fan hotend_fan': ['speed'], 'filament_switch_sensor filament_sensor': ['filament_detected'], 'filament_switch_sensor filament_sensor_2': ['filament_detected'], 'output_pin mcu_fan': ['value'], 'output_pin fan0': ['value'], 'output_pin fan1': ['value'], 'output_pin fan2': ['value'], 'output_pin LED': ['value'], 'status': ['update_available'], 'output_pin KAMP': ['value'], 'output_pin BED_LEVELING': ['value']}}
2024-04-01 09:33:52.479 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: 14337ecf-6490-41c3-9395-c467e9e0087b: {'eventtime': 1392.208820332, 'status': {'print_stats': {'state': 'printing', 'message': '', 'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode', 'total_duration': 233.052250167, 'print_duration': 0.0, 'filament_used': 0.0, 'info': {'total_layer': None, 'current_layer': None}}, 'display_status': {'message': None, 'progress': 0.08275103907090862}, 'extruder': {'temperature': 179.83, 'target': 180.0, 'power': 0.22047414730838577}, 'heater_bed': {'target': 100.0, 'temperature': 73.77, 'power': 1.0}, 'toolhead': {'position': [92.0, 221.384, 5.0, 0.0]}, 'gcode_move': {'speed_factor': 1.0}, 'temperature_fan chamber_fan': {'temperature': 22.45}, 'temperature_fan mcu_fan': {'temperature': 33.86}, 'temperature_sensor mcu_temp': {'temperature': 40.47}, 'temperature_sensor chamber_temp': {'temperature': 22.45}, 'heater_fan hotend_fan': {'speed': 1.0}, 'filament_switch_sensor filament_sensor': {'filament_detected': True}, 'filament_switch_sensor filament_sensor_2': {'filament_detected': True}, 'output_pin mcu_fan': {'value': 0.0}, 'output_pin fan0': {'value': 0.0}, 'output_pin fan1': {'value': 0.0}, 'output_pin fan2': {'value': 0.0}, 'output_pin LED': {'value': 1.0}, 'status': {'update_available': None}, 'output_pin KAMP': {'value': 1.0}, 'output_pin BED_LEVELING': {'value': 1.0}}}
2024-04-01 09:33:52.479 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: dfec39ff-e24f-40dd-b1fd-ee428af8228f, from: printer.info
2024-04-01 09:33:52.479 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: dfec39ff-e24f-40dd-b1fd-ee428af8228f, object: None
2024-04-01 09:33:52.509 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: dfec39ff-e24f-40dd-b1fd-ee428af8228f: {'state': 'ready', 'state_message': 'Printer is ready', 'hostname': 'K1C-5316', 'klipper_path': '/usr/share/klipper', 'python_path': '/usr/share/klippy-env/bin/python', 'log_file': '/usr/data/printer_data/logs/klippy.log', 'config_file': '/usr/data/printer_data/config/printer.cfg', 'software_version': '09faed31-dirty', 'cpu_info': '2 core ?'}
2024-04-01 09:33:52.509 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: 0d06487a-ffd1-44c9-ad73-0a0d19d970c0, from: printer.objects.query
2024-04-01 09:33:52.509 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: 0d06487a-ffd1-44c9-ad73-0a0d19d970c0, object: {'objects': {'print_stats': ['state', 'message', 'filename', 'total_duration', 'print_duration', 'filament_used', 'info'], 'display_status': ['message', 'progress'], 'extruder': ['temperature', 'target', 'power'], 'heater_bed': ['target', 'temperature', 'power'], 'toolhead': ['position'], 'gcode_move': ['speed_factor'], 'temperature_fan chamber_fan': ['temperature'], 'temperature_fan mcu_fan': ['temperature'], 'temperature_sensor mcu_temp': ['temperature'], 'temperature_sensor chamber_temp': ['temperature'], 'heater_fan hotend_fan': ['speed'], 'filament_switch_sensor filament_sensor': ['filament_detected'], 'filament_switch_sensor filament_sensor_2': ['filament_detected'], 'output_pin mcu_fan': ['value'], 'output_pin fan0': ['value'], 'output_pin fan1': ['value'], 'output_pin fan2': ['value'], 'output_pin LED': ['value'], 'status': ['update_available'], 'output_pin KAMP': ['value'], 'output_pin BED_LEVELING': ['value']}}
2024-04-01 09:33:52.730 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: 0d06487a-ffd1-44c9-ad73-0a0d19d970c0: {'eventtime': 1392.459760332, 'status': {'print_stats': {'state': 'printing', 'message': '', 'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode', 'total_duration': 233.30319016700014, 'print_duration': 0.0, 'filament_used': 0.0, 'info': {'total_layer': None, 'current_layer': None}}, 'display_status': {'message': None, 'progress': 0.08275103907090862}, 'extruder': {'temperature': 179.79, 'target': 180.0, 'power': 0.22047414730838577}, 'heater_bed': {'target': 100.0, 'temperature': 73.82, 'power': 1.0}, 'toolhead': {'position': [92.0, 221.384, 5.0, 0.0]}, 'gcode_move': {'speed_factor': 1.0}, 'temperature_fan chamber_fan': {'temperature': 22.4}, 'temperature_fan mcu_fan': {'temperature': 33.83}, 'temperature_sensor mcu_temp': {'temperature': 40.42}, 'temperature_sensor chamber_temp': {'temperature': 22.4}, 'heater_fan hotend_fan': {'speed': 1.0}, 'filament_switch_sensor filament_sensor': {'filament_detected': True}, 'filament_switch_sensor filament_sensor_2': {'filament_detected': True}, 'output_pin mcu_fan': {'value': 0.0}, 'output_pin fan0': {'value': 0.0}, 'output_pin fan1': {'value': 0.0}, 'output_pin fan2': {'value': 0.0}, 'output_pin LED': {'value': 1.0}, 'status': {'update_available': None}, 'output_pin KAMP': {'value': 1.0}, 'output_pin BED_LEVELING': {'value': 1.0}}}
2024-04-01 09:33:52.730 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: e091161c-8861-4bb2-bf5f-a71f8d8adfb4, from: server.files.metadata
2024-04-01 09:33:52.730 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: e091161c-8861-4bb2-bf5f-a71f8d8adfb4, object: {'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode'}
2024-04-01 09:33:52.752 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: e091161c-8861-4bb2-bf5f-a71f8d8adfb4: {'size': 651303, 'modified': 1711556589.959747, 'uuid': '4f17e9cd-04fb-47c6-9c74-cf8bed8586ef', 'slicer': 'Unknown', 'gcode_start_byte': 52857, 'gcode_end_byte': 651288, 'print_start_time': 1711960199.725559, 'job_id': '000022', 'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode'}
2024-04-01 09:33:52.752 ERROR (MainThread) [custom_components.moonraker] failed to get thumbnails  {'thumbnails'}
2024-04-01 09:33:52.753 ERROR (MainThread) [custom_components.moonraker] Query Object {{'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode'}}
2024-04-01 09:33:52.753 ERROR (MainThread) [custom_components.moonraker] gcode {{'size': 651303, 'modified': 1711556589.959747, 'uuid': '4f17e9cd-04fb-47c6-9c74-cf8bed8586ef', 'slicer': 'Unknown', 'gcode_start_byte': 52857, 'gcode_end_byte': 651288, 'print_start_time': 1711960199.725559, 'job_id': '000022', 'filename': 'xyzCalibration_cube-K1C_0.4_Generic-ABS_12m.gcode'}}
2024-04-01 09:33:52.754 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: 2672b985-ca68-4deb-bd02-5fb23e098aab, from: server.history.totals
2024-04-01 09:33:52.754 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: 2672b985-ca68-4deb-bd02-5fb23e098aab, object: None
2024-04-01 09:33:52.791 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: 2672b985-ca68-4deb-bd02-5fb23e098aab: {'job_totals': {'total_jobs': 32, 'total_time': 126361.50055533397, 'total_print_time': 114377.71310316498, 'total_filament_used': 303818.23544731707, 'longest_job': 13630.0334445, 'longest_print': 13295.621118833002}}
2024-04-01 09:33:52.792 DEBUG (MainThread) [custom_components.moonraker] fetching data, uuid: 320605dc-8b98-4729-8302-abab9508404a, from: machine.update.status
2024-04-01 09:33:52.792 DEBUG (MainThread) [custom_components.moonraker] fetching, uuid: 320605dc-8b98-4729-8302-abab9508404a, object: None
2024-04-01 09:33:52.805 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: 320605dc-8b98-4729-8302-abab9508404a: {'github_rate_limit': 60, 'github_requests_remaining': 58, 'github_limit_reset_time': 1711962541.0, 'version_info': {'moonraker': {'channel': 'dev', 'debug_enabled': False, 'channel_invalid': False, 'is_valid': True, 'configured_type': 'git_repo', 'info_tags': [], 'detected_type': 'git_repo', 'remote_alias': 'origin', 'branch': 'master', 'owner': 'Arksine', 'repo_name': 'moonraker', 'remote_url': 'https://github.com/Arksine/moonraker.git', 'recovery_url': 'https://github.com/Arksine/moonraker.git', 'version': 'v0.8.0-324', 'remote_version': 'v0.8.0-324', 'rollback_version': 'v0.8.0-324', 'current_hash': 'a3e4dac5fb20f8dfc0857a252eef5219d5e0ec4c', 'remote_hash': 'a3e4dac5fb20f8dfc0857a252eef5219d5e0ec4c', 'is_dirty': False, 'detached': False, 'commits_behind': [], 'commits_behind_count': 0, 'git_messages': [], 'full_version_string': 'v0.8.0-324-ga3e4dac5', 'pristine': False, 'corrupt': False, 'warnings': [], 'anomalies': ["Repo has untracked source files: ['moonraker/components/timelapse.py']"]}, 'klipper': {}, 'Creality-Helper-Script': {'channel': 'dev', 'debug_enabled': False, 'channel_invalid': False, 'is_valid': True, 'configured_type': 'git_repo', 'info_tags': [], 'detected_type': 'git_repo', 'remote_alias': 'origin', 'branch': 'main', 'owner': 'Guilouz', 'repo_name': 'Creality-Helper-Script', 'remote_url': 'https://github.com/Guilouz/Creality-Helper-Script.git', 'recovery_url': 'https://github.com/Guilouz/Creality-Helper-Script.git', 'version': '5.1.0-3', 'remote_version': '5.3.0-0', 'rollback_version': '5.0.1-19', 'current_hash': 'b3205799e375dc86be4c0e5d55fdb18c8f964abe', 'remote_hash': '9e9081e4ccbf45fa8df067570e4fca985bdbbec3', 'is_dirty': False, 'detached': False, 'commits_behind': [{'sha': '9e9081e4ccbf45fa8df067570e4fca985bdbbec3', 'author': 'Cyril', 'date': '1711920916', 'subject': 'Update', 'message': '', 'tag': '5.3.0'}, {'sha': '041223591fef8271fc529dd68ee7e17235111bc0', 'author': 'Cyril', 'date': '1711893253', 'subject': 'Update', 'message': '', 'tag': None}, {'sha': '04ad1fc88747d507f845d6dd039f77b2149a7b1c', 'author': 'Cyril', 'date': '1711820368', 'subject': 'Update octoapp_companion.sh', 'message': '', 'tag': None}, {'sha': '99379f11ddc50a0596f51560cf5ee2fc73a1b687', 'author': 'Cyril', 'date': '1711819957', 'subject': 'Update', 'message': '', 'tag': '5.2.0'}, {'sha': 'ef2bd340aea678ceff18203e2650f568ec209a8d', 'author': 'Cyril Guislain', 'date': '1711818985', 'subject': 'Merge pull request #3 from crysxd/main', 'message': 'Add OctoApp support', 'tag': None}, {'sha': 'ac27c6198508c4f9e9b262ab407f3ea928457d86', 'author': 'Christian Würthner', 'date': '1711808363', 'subject': 'Add OctoApp support', 'message': '', 'tag': None}, {'sha': '4b5010572aede69b4ba017bdd212e0aa740627ac', 'author': 'Cyril', 'date': '1711621787', 'subject': 'Update M600-support.cfg', 'message': '', 'tag': None}], 'commits_behind_count': 7, 'git_messages': [], 'full_version_string': '5.1.0-3-gb3205799', 'pristine': True, 'corrupt': False, 'warnings': [], 'anomalies': []}, 'fluidd': {'channel': 'beta', 'debug_enabled': False, 'channel_invalid': False, 'is_valid': True, 'configured_type': 'web', 'info_tags': [], 'name': 'fluidd', 'repo_name': 'fluidd', 'owner': 'fluidd-core', 'version': 'v1.29.0', 'remote_version': 'v1.29.1', 'rollback_version': 'v1.29.0', 'last_error': '', 'warnings': [], 'anomalies': []}}, 'busy': False}

@marcolivierarsenault
Copy link
Owner

Looks like your metadata does not include a thumbnail

this is what the data you get back looks like
{'size': 19375825, 'modified': 1711386530.8866081, 'uuid': 'a427e2cb-8bda-4c37-8593-90fcd2343505', 'slicer': 'Unknown', 'gcode_start_byte': 126253, 'gcode_end_byte': 19375810, 'print_start_time': 1711443645.1384702, 'job_id': '00001A', 'filename': 'Lazy_Susan_2v00XL_LS380_Pins_x12-K1C_0.4_Generic-ABS_1h55m.gcode'}

here another exemple from someone else:
{'size': 2519606, 'modified': 1711811639.4885995, 'uuid': '515779f0-da24-49c4-91fa-c00e8e65ef7f', 'slicer': 'SuperSlicer', 'slicer_version': '2.5.59.8', 'gcode_start_byte': 49200, 'gcode_end_byte': 2498973, 'layer_count': 108, 'object_height': 21.65, 'estimated_time': 5573, 'nozzle_diameter': 0.4, 'layer_height': 0.2, 'first_layer_height': 0.25, 'first_layer_extr_temp': 250.0, 'first_layer_bed_temp': 110.0, 'chamber_temp': 50.0, 'filament_name': 'KVP - ABS";"OVERTURE PETG";"KVP - ABS";"KVP - ABS";"KVP - ABS";"KVP - ABS";"KVP - ABS";"KVP - ABS', 'filament_type': 'ABS;PET;ABS;ABS;ABS;ABS;ABS;ABS', 'filament_total': 3696.24, 'filament_weight_total': 12.89, 'thumbnails': [{'width': 32, 'height': 32, 'size': 1800, 'relative_path': '.thumbs/Coupler_Block_Base in PETG - 0s 1h33m-32x32.png'}, {'width': 400, 'height': 300, 'size': 33370, 'relative_path': '.thumbs/Coupler_Block_Base in PETG - 0s 1h33m-400x300.png'}], 'print_start_time': 1711816817.6493547, 'job_id': '0000F9', 'filename': 'Coupler_Block_Base in PETG - 0s 1h33m.gcode'}

I am not sure if this is because of your Slicer or your printer setup, but the info is not communicated

@marcolivierarsenault marcolivierarsenault self-assigned this Apr 13, 2024
@thewolfman56
Copy link

I have the same issue with my K1 Max. I use Orca Slicer. The thumbnail is viewable in Fluidd and can be downloaded, but it is not viewable through the integration. The thumbnail is also viewable in the Mobileraker app without issue.

@thewolfman56
Copy link

2024-05-22 12:47:31.184 DEBUG (MainThread) [custom_components.moonraker] Query Result, uuid: 1c800e8a-f515-4c32-a6ec-cee1a0a182e6: {'size': 11132402, 'modified': 1716170378.7976656, 'uuid': '76b629f2-fe82-4488-8e1c-1c0188548336', 'slicer': 'OrcaSlicer', 'slicer_version': '2.0.0', 'gcode_start_byte': 11234, 'gcode_end_byte': 11117741, 'layer_count': 106, 'object_height': 16.96, 'estimated_time': 4113, 'nozzle_diameter': 0.4, 'layer_height': 0.16, 'first_layer_height': 0.16, 'first_layer_extr_temp': 220.0, 'first_layer_bed_temp': 60.0, 'chamber_temp': 0.0, 'filament_name': 'Overture - PLA Professional', 'filament_type': 'PLA', 'filament_total': 5356.56, 'filament_weight_total': 15.98, 'thumbnails': [{'width': 32, 'height': 32, 'size': 849, 'relative_path': '.thumbs/roku_rc-el3-cover_PLA_1h9m-32x32.png'}, {'width': 100, 'height': 100, 'size': 1409, 'relative_path': '.thumbs/roku_rc-el3-cover_PLA_1h9m-100x100.png'}, {'width': 320, 'height': 320, 'size': 5127, 'relative_path': '.thumbs/roku_rc-el3-cover_PLA_1h9m-320x320.png'}], 'print_start_time': 1716170384.7245803, 'job_id': '000057', 'filename': 'roku_rc-el3-cover_PLA_1h9m.gcode'}

@hostrup
Copy link

hostrup commented Jun 7, 2024

Hi!
On my Ender 3 S1 Pro - with a RPI4
the issue is the same.
no thumpnail in HA - but works fine in fluidd.

The metadata has the file:

{"result": {"size": 2846443, "modified": 1717745610.7632499, "uuid": "efbd5913-7e7e-4b38-adca-1b48f20a8471", "slicer": "SuperSlicer", "slicer_version": "2.5.59.10", "gcode_start_byte": 22504, "gcode_end_byte": 2829930, "layer_count": 311, "object_height": 62.04, "estimated_time": 4506, "nozzle_diameter": 0.4, "layer_height": 0.2, "first_layer_height": 0.25, "first_layer_extr_temp": 200.0, "first_layer_bed_temp": 60.0, "chamber_temp": 0.0, "filament_name": "Sunlu PLA Meta", "filament_type": "PLA", "filament_total": 5480.97, "filament_weight_total": 16.35, "thumbnails": [{"width": 32, "height": 32, "size": 1269, "relative_path": ".thumbs/Ender_3_S1_S1_PRO__Z-axis_guide_positioning_fixture_1h15m_200C_PLA-32x32.png"}, {"width": 400, "height": 300, "size": 14169, "relative_path": ".thumbs/Ender_3_S1_S1_PRO__Z-axis_guide_positioning_fixture_1h15m_200C_PLA-400x300.png"}], "print_start_time": 1717745623.4007826, "job_id": "000166", "filename": "Ender_3_S1_S1_PRO__Z-axis_guide_positioning_fixture_1h15m_200C_PLA.gcode"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants