-
Notifications
You must be signed in to change notification settings - Fork 24
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
New feature : octoPrintSetTemperatures() #30
Comments
I love the idea! I would have that function as the main function, and pass simple ones to it, like octoPrintCoolDown() ? What could also use that function is getting the temperature presets set in the settings: "profiles": [ Something that would take the profile name, e.g. octoPrintSetTemperatureProfile(PETG), and that could get the profiles from settings... and apply the temperatures to your functions? I see the profile temperatures have "chamber" in there too - is that new to the API and Octoprint? There's some homework for you!! :) |
Love it !! For the profile definition : I never noticed you can manage a chamber with Octoprint :-) |
You can retrieve the profiles saved on Octoprint in the settings API endpoint. Would be nice to retrieve those profiles available. But I guess there's not much usefulness out of getting the settings from octoprint, and using the settings to send back to octoprint? Ignore me. |
Hello, |
Yeah. They are buried deep in the settings endpoint. /api/settings you'd need to drill down the json object to get to them. Search for 'profiles' when you get all the settings back. It's a big json return, so may be too big to bring back? Try it in a browser to see the full json object. |
It's a HUGE JSON and dependents on plugins configuration. I tried to request just a part (temperature) but looks like it's impossible. |
Yeah, I looked into Arduino JSON targeting just a part of a JSON object in a stream before moving it into memory. Couldn't get it to work either (getting the colour I think of the installation!). There is a streaming JSON library which does allow you to do that, but it's just not worth it right now! Let's park the profiles for now, and just make our own locally that you can use your new setTemp functions for? |
I agree, too complicate for the usage. Do you code the profile part ? |
No, not touched anything on this yet. Too busy with work. |
Hello,
What do you think about adding a feature et set all temperatures at once.
This can be useful to quickly set all to 0°C and cool down tools and bed.
bool octoPrintSetTemperatures(uint16_t tool0, uint16_t tool1, uint16_t bed);
The text was updated successfully, but these errors were encountered: