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

How to automate #33

Open
Jacob-CZ opened this issue Jun 30, 2024 · 2 comments
Open

How to automate #33

Jacob-CZ opened this issue Jun 30, 2024 · 2 comments

Comments

@Jacob-CZ
Copy link

Hello, I would like to automate this in a webhook process. So that my backend can send the job to my printer using Octoprint is there any easy way to not have to use the GUI and hit some endpoint to get the gcode?

@boy1dr
Copy link
Owner

boy1dr commented Jun 30, 2024

Hello @Jacob-CZ
This shouldn't be too difficult, i remixed that project into client side java script https://3dwriter.io/
https://github.com/boy1dr/3DWriterWeb

The code is a bit messy but can be adapted to a webhook easy enough.
Might be easier to directly integrate tho :/

3DWriter data structure

render_gcode(
 pen_offset_x,
 pen_offset_y,
 bed_x,		//bed width
 bed_y,		//bed depth
 home_x, home_y, home_z,
 dry_run,	//boolean
 travel_speed,	// mm/s
 draw_speed,	// mm/s
 pen_up,  	// mm
 pen_down,	// mm
 text_blocks: [
 	{
 	words,
 	height_mm,
 	letter_spacing,
 	line_spacing,
 	line_angle,
 	font_name,
 	position_x,
 	position_y
 	}
 ]
)

Will see if i can add something in soon, no promises though, kinda flat out these days.

@Jacob-CZ
Copy link
Author

@boy1dr Thanks I am almost finished, but I have ran into another problem Is there any easy way to add support for Czech chars?
ie. ěščřžýáíé

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants