-
Notifications
You must be signed in to change notification settings - Fork 11
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
Variables do not appear to be used when manually set in cfg file and must be called #9
Comments
Sorry you are having trouble. I would suggest just writing your own wrapper macro that calls this macro. Use Macro Parameters to pass in what you want to use and hard code whatever you want as constant. Understanding all the ins and out of the way klipper handles these macros is hard, bordering on unusable. This script is really at the outer limit of what anyone should try to do without resorting to Python. You have to grock Macro Parameters, Variables and Delayed Gcodes. I don't think the docs do a good job of explaining it all and I did a lot of experimenting to get it all to work. Best to just treat this like its a built-in GCode and not touch it. |
I haven't looked at the coding close enough to come up with the right solution BUT you can add a default value inline with each variable like in the picture to accomplish what you want. Still reacts to parameters set from the console properly as well. This is what I did for the time being. |
Ok, I looked at the code more closely and changed it to the code below. You should be able to copy this code block and paste it over the corresponding block in the heatsoak.cfg and it will set defaults to the variables within the macro:
I tested this on my own machine with no issue including setting the paramters inline such as HEAT_SOAK TARGET=100 and it still work correctly. |
I have been spending a lot of time trying to just configure all of my variables in heatsoak.cfg so I can just click the macro HEAT_SOAK and let it run. Unfortunately, it seems like values populated there do not in fact get called from.
If I attempt to just run the macro I get the below error:
If I attempt to populate a value and not call it out in the command, for example, heatsoak just doesn't run (nor give any indication it isn't running)
I.E. if I run:
HEAT_SOAK HEATER='heater_bed' TARGET=110 SOAKER='temperature_sensor Chamber' SOAK_TEMP=40 RATE=0.3 TEMP_SMOOTH=4 RATE_SMOOTH=20 COMPLETE='SOAKING_COMPLETE' CANCEL='CANCEL_PRINT' TIMEOUT=90 HEATING_REPORT_INTERVAL=30 SOAKING_REPORT_INTERVAL=60
Everything works great!
If I take something out like Target=110 and populate it in the configuration it tells me Heat Soak Starting, has no error messages, and doesn't do anything.
Here is my variable list in heatsoak.cfg:
Ideally, I want to create a button in mainsail I can click in the menu that gets a heatsoak running without typing so I can start it from my phone in the shop or without thinking.
The text was updated successfully, but these errors were encountered: