-
Notifications
You must be signed in to change notification settings - Fork 73
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
Remove octoprint dependency, and communicate only with moonraker API #3
Comments
It’s untested but it should support already the moonraker API directly.
Just use the api key form moonracker vs octoprint.
…On Sun, Apr 11, 2021 at 9:08 AM Johan Aires Rastén ***@***.***> wrote:
Any plans to change the program to use the moonraker API directly? The
octoprint dependency is a bit inconvenient for those of us who use
different klipper frontends
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADU73XAKJJ7CZZRNBUSMQDTIHCOVANCNFSM42XZ7A3Q>
.
|
ok! Just found out about the project so I haven't had a chance to test it yet, only browsed through the code a bit |
Setting the port to the moonraker service doesn't work and just throws errors. |
do you have [octoprint_compat] in your moonraker config? |
Yes I do |
@odwdinc finally got around to testing it, but unfortunately I can confirm what @Xploder was saying, that it doesn't work with Moonraker only
After adding some debug prints, it seems like the problem is caused by Moonraker's Octoprint emulation not supporting "/api/printerprofiles/_default" |
Yup! I'm having the same issue. Moonraker only support would be much appreciated. |
Hi, nothing new? How to fix trouble with Moonraker standalone? |
Not yet unfortunately. Apparently this only works through Octoprint and not Moonraker. Moonraker has an emulation layer for Octoprint but it's very basic and mainly developed for slicer upload functionality. We would either have to wait for a direct Moonraker support on this or for the Moonraker's Octoprint emulation layer to get more functionality. |
So I tried this with Fluiddpi setup. The code calls the API But this gived 404 error when using Moonracker directly (even with Octoprint Compat in the config). Moonracker API endpoint will be this one: /api/printerprofiles But even this does not work as we do not get the required properties from the API. For example: Moonracker API: List Printer profiles HTTP request:
Where as the Octoprint API:
So to workaround this with my Ender 3 V2, I removed the reference of those API properties and added hardcoded values for the time being until I can get these values from API printerinterface.py Line no. 358
|
My display was stuck on Creality logo but now it turns on, shows the menu entries too, but no option work at all. Seems like I will have to modify all the non working API endpoints to make it work with Fluiddpi & Moonracker. |
@bharatpareek Check out this fork: https://github.com/bustedlogic/DWIN_T5UIC1_LCD |
Thank you so much, I thought I ll have to do everything from scratch. 😁 Thank you @bustedlogic |
You're welcome and I hope it works well for you. I ported it to moonraker so it works with every frontend. tried to fix all the bugs as well as, but I'm sure I missed one or two. Feel free to open an issue on my fork if you run into something. Quick note, my version is setup for a reverse direction controller knob (an ender3v2 clone). The only difference is in the run.py (created yourself from the readme). Change the |
Yes will do, I was thinking if we can remove the LCD from the LCD mount of Ender 3 v2, and use it directly with DSI port on board. :D But somewhere I read that RPI has some closed source code which is needed for the DSI port. But anyway, the main issue is solved. :) |
That would probably require removing the lcd panel from the T5 driver pcb board and using a custom one that could interface with HDMI or DSI. It's not that simple especially if you don't have access to the LCD datasheet. I've seen a hobby project of driving smartphone LCD panels With HDMI through a custom board which obviously shows that this is not impossible. However, afaik manufacturers don't really have a standard LCD connector and that just complicates things even more. Even if you manage to drive the lcd through HDMI/DSI it's still kind of useless without a touchscreen digitizer so you'd still have to use an encoder or some sort of HID to control it. |
I added some compatibility with moonraker here. So far things are working |
Hi guys, I'm using Fluiddpi. I can't find the file klipper.service in ect/default to enable the API socket. "Enabling Klipper's API socket KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -l /tmp/klippy.log" KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/printer.cfg -a /tmp/klippy_uds -l /tmp/klippy.log" Everything went smoothly and the LCD boots only it won't connect to mailsail/fluidd due to the API socket issue. Any help would be great.Thanks in advance |
Any plans to change the program to use the moonraker API directly? The octoprint dependency is a bit inconvenient for those of us who use different klipper frontends
The text was updated successfully, but these errors were encountered: