Software icon indicating copy to clipboard operation
Software copied to clipboard

MKS Plugin for Cura 4.4 ?

Open vicodin77 opened this issue 5 years ago • 13 comments

Would be great to become a MKS Plugin for the new Version of Cura ..

Greetings Mindreader

vicodin77 avatar Nov 21 '19 04:11 vicodin77

I'm not sure how often developers from makerbase make new releases, so I copied the last version of the plugin and fixed the issue for the latest version of Cura. Here is a link to my repository: https://github.com/Jeredian/mks-wifi-plugin If there will be an official repository with source codes of the plugin, I'll be glad to make a pull request into it.

Jeredian avatar Dec 06 '19 21:12 Jeredian

At now the plugin is available through the Cura Marketplace as the MKS Wifi Plugin. And it supports Cura versions from 3.5.0+ to 4.4.0+. I linked in description to the official repository, and the latest version is from my fork. I hope it will help to use the plugin more comfortable.

Jeredian avatar Dec 17 '19 13:12 Jeredian

Save as TFT file does'nt work :

2019-12-21 19:48:10,166 - DEBUG - [MainThread] MKSWifiPlugin.MachineConfig._createAdditionalComponentsView [149]: Creating additional ui components for tft35. 2019-12-21 19:48:10,245 - DEBUG - [MainThread] MKSWifiPlugin.MachineConfig.startDiscovery [45]: Starting printer discovery. 2019-12-21 19:48:10,370 - CRITICAL - [MainThread] cura.CrashHandler.init [61]: An uncaught error has occurred! 2019-12-21 19:48:10,376 - CRITICAL - [MainThread] cura.CrashHandler.init [64]: Traceback (most recent call last): 2019-12-21 19:48:10,383 - CRITICAL - [MainThread] cura.CrashHandler.init [64]: File "C:\Users***\AppData\Roaming\cura\4.4\plugins\MKSWifiPlugin\MKSWifiPlugin\MachineConfig.py", line 48, in startDiscovery 2019-12-21 19:48:10,388 - CRITICAL - [MainThread] cura.CrashHandler.init [64]: self._network_plugin.printerListChanged.connect(self._onPrinterDiscoveryChanged) 2019-12-21 19:48:10,393 - CRITICAL - [MainThread] cura.CrashHandler.init [64]: AttributeError: 'NoneType' object has no attribute 'printerListChanged'

MarshMalloW0007 avatar Dec 21 '19 19:12 MarshMalloW0007

Can you it from latest master branch from my repository?(https://github.com/Jeredian/mks-wifi-plugin) If this issue still exists please add an issue inside my repository,and I will check it as soon I can

Jeredian avatar Dec 21 '19 20:12 Jeredian

Well, that's good news, It's working. Thx for this quick response

MarshMalloW0007 avatar Dec 22 '19 08:12 MarshMalloW0007

Hello, I have a little bit silly problem with MKS plugin. Im on Cura 4.4.1 and Jeredian`s version of MKS plugin, printer is Two trees Sapphire Pro. Thing is, that while the WiFi communication works, the previews of gcodes are all corrupted (see pic) https://imgur.com/bErm1yD The best part is, that I managed to get working previews with older version of plugin, but it corrupts names of gcode files sent to the printer (they are all changed to cura-file.gcode)! How can I get both preview and name of the file?

Phacops-rana avatar Jan 13 '20 19:01 Phacops-rana

Hi, @Phacops-rana . You can look on this issue https://github.com/Jeredian/mks-wifi-plugin/issues/11 It's related to this behavior and will be fixed in the next plugin update

Jeredian avatar Jan 13 '20 19:01 Jeredian

Oh, thank you @Jeredian for quick update! I will try this solution

Phacops-rana avatar Jan 13 '20 19:01 Phacops-rana

Hello,

I solved the "corruption" problem.

The preview image was being created with the wrong size for my MKS-TFT35. It was 50 by 50 pixels instead of 100 by 100 pixels.

I just edited the SaveOutputDevice.py file and replaced on line 120: save_file.write(utils.add_screenshot(image, 50, 50, ";simage:")) with: save_file.write(utils.add_screenshot(image, 100, 100, ";simage:"))

Best regards,

marcohaddad avatar Feb 12 '20 01:02 marcohaddad

same things than marcohaddad

i modified the lines indicated and it is working properly

BR.

bilou24an199 avatar Apr 05 '20 09:04 bilou24an199

Finally, I dialed it in: for Two Trees Sapphire Pro correct numbers are simage 100, gimage 200

Phacops-rana avatar Apr 05 '20 17:04 Phacops-rana

Yes, simage resolution fixing problem. Now after some update there is color depth problem (seems like CGA graphic). Is there anyone, who knows how to fix this? Thx.

Zdendo463 avatar Apr 18 '20 12:04 Zdendo463

Hi @Zdendo463 , you can add a new issue into mks plugin repository (https://github.com/makerbase-mks/mks-wifi-plugin) or into my repository (https://github.com/Jeredian/mks-wifi-plugin).

Jeredian avatar Apr 20 '20 11:04 Jeredian