In trying to add a new page to the actions menu for upper and lower software controlled z axis limits, I have the button in place:
but when clicked on it, it says:
and the terminal message is:
cannot unpack non-iterable NoneType object
The setZaxis.html file it is supposed to open is super simple and a stripped down version of the zaxis.html file. I am guessing it needs an object called setZaxis that refers to setZaxis.html or when an object is named the same as the file that it knows to call that file? When the zaxis.html file is opened from the button press, it is referred to like this:
<button type=âbuttonâ class=âbtn btn-primary btn-blockâ onclick=ârequestPage(âzAxisâ);â>ZAxis
and it opens the xAxis.html page. Similarly the setZaxis page is called:
<button type=âbuttonâ class=âbtn btn-lg btn-block btn-secondaryâ onclick=ârequestPage(âsetZaxisâ);$(â#contentModalâ).modal(âhideâ);â>Set Z-Axis Limits
There is no .js file to go with it because the setZaxis.hml code is:
{% block content %}
<div class=âcontainer-fluidâ>
<div class=âcardâ>
<div class=âcard-bodyâ>
<h3 class=âcard-titleâ>Z-Axis endstops</h3>
<h4 class=âcard-titleâ>Step 1: Clear Z-Axis upper and lower limits</h4>
<p>Press the button to clear previously set limits if moving beyond them is desired, otherwise skip to step 2</p>
<button type=âbuttonâ class=âbtn btn-lg btn-block btn-secondaryâ onclick=âaction(âClearZâ);â">Clear Z</button>
<h3 class=âcard-titleâ>Step 2: Set Z-Axis Upper Limit</h4>
<p>Move your sled to the extreme upper limit and press the button to save the new position.</p>
<button type=âbuttonâ class=âbtn btn-lg btn-block btn-secondaryâ onclick=âaction(âSetMaxZâ);â>Set Max Z</button>
<h4 class=âcard-titleâ>Step 3: Z-Axis Lower Limit</h4>
<p>Move your sled to the extreme lower limit and press the button to save the new position.</p>
<button type=âbuttonâ class=âbtn btn-lg btn-block btn-secondaryâ onclick=âaction(âSetMinZâ);â>Set Min Z</button>
</div>
</div>
</div>
{% endblock %}
Note: when these buttons are added to the regular z axis page, they work fine, but they are being moved because this is a one-time set and forget. It is probably a comma somewhere, but Iâm not seeing it. A second set of eyes would be helpful. Iâm just trying to learn the ways of the force. Thanks.