jneilliii/OctoPrint-BedLevelingWizard

Could it be possible to just get a URL POST command that triggers the next position, like an action command.

jneilliii opened this issue · 6 comments

Could it be possible to just get a URL POST command that triggers the next position, like an action command.
Then we can implement this from other sources, such as OctoDash buttons or Enclosure Plugin via shell command etc...

There are many ways, once one can send the command to advance the level position.

Originally posted by @SaKiEQ in #30 (comment)

@SaKiEQ I just remembered adding this functionality would require a complete code rewrite because currently it's all done via javascript from the browser. I will consider it though for improved octodash compatibility.

ah I see, so there is no backend on Octoprint to it. Since you manage to do it on browser level, how do you send the 'next position' command to Octoprint ? Is there a way of 'hijacking' that for my idea ?

Not in its current implementation.

Philosophically it belongs into OctoDash anyway... If I could figure out how OctoDash is coded, I could contribute, but I haven't figured out its structure and concept. While I manage to make changes and customize functions within Octoprint plugins etc, I am stuck at grasping how OctoDash was coded...

Yeah, angular.js is foreign to me too, the changes that I have PR'd to OctoDash were just copying existing parts already there and adapting for additional plugin support.

Yeah, it seems to me you can only understand a angular project if you wrote it your self, or if you invested ages back tracing its workings - which is obviously not fun. I can get the gist of most projects in a short period of time, but this sort of thing is like chinese to me.