macdylan / sm2uploader

A command-line tool for send the gcode file to Snapmaker Printers via WiFi connection.
MIT License
44 stars 4 forks source link

Upload and start print automatically #14

Open nailgilaziev opened 7 months ago

nailgilaziev commented 7 months ago

When using simulated OctoPrint server to send g-code from slicer directly like this

./sm2uploader-darwin-arm64 -octoprint 127.0.0.1:8844 -host 192.168.1.174

There are two options:

image

Is it possible that printing will start automatically after sending the code by pressing second option?

macdylan commented 6 months ago

I'm still trying to implement it, but the protocols for Snapmaker are not the same in each model, so it's complicated.

Exc021 commented 6 months ago

+1 this would be very nice

gcreative commented 5 months ago

@macdylan can you explain to me how to research the protocol? how to organize the connection? is there any documentation? I know how to use wireshark a little and I know how to program; maybe I can help

macdylan commented 5 months ago

The Snapmaker protocol v0 is HTTP-based, while v1 is completely private and is documented here, but not completely, you need the luban source code to analyze.

perfran commented 1 month ago

Hi, I second this improvement, sending the print command to the printer (Artisan in my case) would be very useful. If it can help, I know it works with Cura (snapmaker plugin). Maybe looking in that code can give useful insights. https://github.com/Snapmaker/SnapmakerCuraPlugin Thanks for the beautiful work, @macdylan !

macdylan commented 1 month ago

Sorry guys, I am currently working on another project in my spare time, so this feature will not be implemented for now. If anyone is interested in improving it, please submit a PR.