-
Notifications
You must be signed in to change notification settings - Fork 115
added interface to macro _KNOMI_STATUS #5
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
Conversation
|
I have the Knomi and tested your PR and it doesn't seem to work at all for either homing or probing First, the variables of true and false need to have the first letter capitalized (True/False) or else Klipper throws up an error. For homing, still issues with it not updating the status on the Knomi even with the above fix. Seems like G28 is going to be tougher nut to crack. For probing, this also does not seem to work. I use KAMP so I was able to get it to work by adding the variable under the KAMP cfg and adding the below lines to the beginning and end of the KAMP bed mesh macro. When I pointed them to the _KNOMI_STATUS it also did not reflect correctly. Not much of someone who digs into code. but seems to me that there is something specifically looking for the combo of BED_MESH_CALIBRATE/G28 and the variable switch. |
Thanks, i updated the documentation. I just added 1 additional iteration to the original code. so the original documentation still is valid with all it stuff what works and what not. |
|
Editing this comment because I missed the fact you made changes to the codebase itself. Just one of those days here and I realized now what changes you made. Retracting my previous comments as it looks as if you have everything already covered in your code changes. No further comments. Only thing that would be nice is if BTT would release a guide to update the firmware more easily! |
have you tried to update the firmware with this fix? does it work? my display takes some time until it arrives |
|
Thank you for this, it seems like the homing one works, but the probing does not. Just testing in the console. |
Have you compiled the firmware and upgraded the knomi display with it? You can't set both value to true, otherwise, always the last check "wins". btw: Old style is no longer working with last commit, as i replaced just the related sections with _KNOMI_STATUS |
Yeah that's the piece I was missing. I compiled the new firmware with the fix but haven't tried installing it yet. Got tied up with a few things and I'm hoping to get back to it within the next day or so and will report back! I need.to dig up if they have a method to install the firmware as I was running I to dead ends when I tried before, but didn't have a lot of time to spend with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the code and it did not work. After digging through, I think I see the issue. You originally created a new httpswitch (5) that referenced the new _KNOMI_STATUS macro.
After this recent change where you removed the httpswitch = 5 and then changed the httpswitch =4 and httpswitch = 3 to focus on the _KNOMI_STATUS macro, it broke. It looks like now what happens, in lines 986 and 988, it's still looking for the G0028 and BED_MESH_CALIBRATE to trigger these switches. I edited the code to replace G0028 and BED_MESH_CALIBRATE with _KNOMI_STATUS and then compiled and uploaded the firmware. Both Homing and Probing now show correctly on the display.
Since httpswitch =5 is no longer required the lines 989 and 990 can now be removed as well.
Once I made these changes, compiled and uploaded the firmware, I'm no able to successfully see that Knomi changes for both homing AND probing! Now I just need to figure out how I can change the colors from red to blue. :)
|
@Cyondil Thanks! Unfortunately i have not my KNOMI yet, so I couldn't test the changes. |
Surion79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed http switch 5, so it should not be added and kept as in original. other stuff i changed accordingly. should work now like this
Cyondil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good and have been tested as working with the new macro. No recursive issues with homing.
|
hello, i want to test this also. Please can you tell me how to compile and how to load this firmware onto my Knomi. i have tried with ESP-Flasher, but no success. Maybe also the compiled firmware isn´t ok. So i need your help please. |
Easiest is to use VSCode with the Platform.io extension. With the Knomi connected to your computer in boot mode (hold the boot button while plugging it in and release once powered on), you build and then upload using the Platform.io extension. |
|
thanks, it worked now. good job |
|
which files sould we upload? |
|
BTT has instructions on how to compile here: |
|
Thank you very much
Sent from Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Brian Rowe ***@***.***>
Sent: Monday, May 29, 2023 7:08:37 AM
To: bigtreetech/KNOMI ***@***.***>
Cc: Paliomalakas ***@***.***>; Comment ***@***.***>
Subject: Re: [bigtreetech/KNOMI] added interface to macro _KNOMI_STATUS (PR #5)
BTT has instructions on how to compile here:
https://bigtreetech.github.io/docs/KNOMI.html#customize-ui
—
Reply to this email directly, view it on GitHub<#5 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXUH5BFP2FAZWXOK4OT5LZTXIQOMLANCNFSM6AAAAAAYDUA2UI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
I was able to get this working. I am currently using the G28 override as I don't have a homing_override. |
|
This works great. Thank you! |
|
Hi. I run into the same problem. I have a G28 and Homing override and would like to implement your solution. How to get your branch as I can'tfigure it out. Thanks in advance |
|
@acosano At the top of this page click on from Surion79:Knomi_Status_Macro. that will take you to the branch |
|
So easy. Thanks for that. I will try it this morning. I'm not able to get this to compile. Is there a compiled version that Ijust can upload to the screen? |
|
solved by changing the source code because the package you download still uses the old configuration even if you update the knomi with vscode MASTER FILE NOT UPDATED WITH THE VERSION YOU WRITE |
|
Hey, I like this idea! Something like this may solve the configuration I and another user are experiencing with KAMP and BED_MESH_CALIBRATE (see issue #25 ) |
|
Hi Surion79, many thanks for all your hard work on this. I have not tried this on any of my V2s because they now have tap. It does work a treat on my recent Minion upgrade with a Klicky Probe attached. However, for some reason the Knomi finish print macro (usually a green tick icon) does not seem to present itself when the print finishes? Any thoughts? Thanks again for all your efforts. Best wishes Boothy |
TheSin-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't the accepted yet? This is a much cleaner way over all!
|
Thank you very much for your PR. |


Due to the errors with G28 and homing override, I created this PR. This PR consists of two parts:
I added a new part of looking through the API calls for a macro called
_KNOMI_STATUSinstead ofG28andBED_MESH_CALIBRATE.It is NOT backwards compatible with the "original" version!
The new
_KNOMI_STATUSmacro would need to look like thiswith this it is now generally possible to set the status whereever it is needed.
Therefore just add the following lines where it is appropriate:
if you use a homing_override you can add it like this: (this is just a technical example!)
This does not require a G28 override which is not possible when using homing_override.
My KNOMI display ships in a couple days, so i wasn't able to test this with a KNOMI display.