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
Checking the API key #30
Comments
Do you have security setup on repetier?On Jun 8, 2019 4:37 AM, Y0rk <notifications@github.com> wrote:When entering the API key, Plugin shows: Checking the API key ....
But nothing happens.
Cura 4.1
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
No, no security setup. When entering the API key the log shows: 2019-06-09 08:49:51,531 - DEBUG - [MainThread] RepetierIntegration.DiscoverRepetierAction._onRequestFinished [348]: http://192.168.2.125:80/printer/info |
looks like it is working, did you slice anything? |
Nope, can not connect. Connect button is grayed out, en text is: Checking the API key ... |
Only thing that seems curious from your log is port 80. The default is 3344 unless you changed it on install. |
It may be you need to hit enter on the API key entry. Seems that triggers it. |
I came here to say I have the same problem. Can confirm this is an issue. |
check via your browser the http://192.168.2.125:3344/ make sure its right |
In my case it is 10.0.1.110:3344. Also worth noting that cura makes it far enough to find the printers listed in Repetier Server when clicking on "Get printers". Side note: The instance name box doesn't allow for a name the same length as you may have for a printer. For example, I have a profile for my Prusa MK3, whose default name when adding to cura is "Original Prusa i3 MK3/MK3S" but I can only enter a name up to 20 characters long giving me "Original Prusa i3 MK" Not a big deal, but still. EDIT: After looking back at my settings, I now believe I made a mistake. I thought the get printers button was working, but I think I manually typed the name in at some point. when clicking on the edit button, the printer field is not actually filled out. My bad. Edit2: Ok, I dug around in your source code and found the urls that you send requests to and have confirmed that http://10.0.1.110:3344/printer/info retrieves my printers and http://10.0.1.110:3344/printer/api/Prusa_MK3?a=getPrinterConfig&apikey=fbd77350-5e5b-41fc-819c-cbc3551414ef returns.... well... this...
If my experience is anything to go by, this means that a network connection is likely never being established in the first place rather than getting a bad JSON string back. Could be something with Cura's network manager not playing nice with Windows. I wish I could be more help beyond this but... I'm not very good at python D-: Or qt to be honest. (If only this were java or an electron app, sigh) |
I recently added an update to fix the drop down issue. I also added a document that gives a step by step to add a printer in repetier and cura here: https://github.com/VMaxx/RepetierIntegration/blob/master/Cura%204.1%20testing%20doc.rtf.zip Start at the Cura part. |
The underscore is correct. Its what repetier refers to as the "slug" that it uses for the web calls. |
Also notice that the repetierID in the picture is empty. In the example it shows Marvin1 |
Its highlighted in blue indicating it is selected, followed by the next picture showing it as selected. |
did this help at all? |
I added a video to the read me |
Updated the getprinters button. This was probably a big issue I never ran into since I hit enter instead of the OK button. It should pick it up now. |
I have the same problem, i can browse to the url, security is set up and correct details entered in plugin. Can get printer list but get stuck on "Checking the API key..." |
Hi, With some debuging I have seen the following: DiscoverRepetierActions.py:
If I put a workaround in the code (work_id = <printer_name>, then I can connect. But no: Print with Repetier button :-( I have a different setup: In the example video a windows server is used, I use a Raspberry Pi with Repetier Server |
I have the same issue. My url/ip/api is entered correct. |
I stumbled upon something that will pull the key if you have security off. |
Can I enable security again afterwards? |
Something to check, make sure RepetierID is showing something before you put the API key in. If its empty then something didn't save your Printer selection under edit. |
I posted an update that should pull the apikey if you don't have security turned on. |
Also my main printer is on a raspberry pi so I've tested it on both windows and pi. |
I think I found the issue. Make sure you click the get printers button so that it queries the instance and populates the dropdown. If that hasn't been done it will perpetually give that message. I'll adjust it shortly to fix. |
Ok I changed it so that you must actually click a valid entry in the combo box after you get printers on the add manual dialog. This way it stores the repetierid properly. |
Hi, RepetierId is not showing: Log file: -19 12:22:21,783 - DEBUG - [MainThread] RepetierIntegration.DiscoverRepetierAction.getPrinterList [155]: getPrinterList:http://192.168.2.125:3344/printer/info Notice the: getPrinterList:http://http//192.168.2.125:3344//printer/info |
yeah it's odd. I'll look into that see why its doing that for you and not me. |
its curious because at the top of the log, it is using the correct url, but at the bottom it isn't |
Its like the cura config for the printer isn't there, so it can't save the information. This would also prevent you from changing other settings in your printer, if you've been having problems with that. If its not too difficult I'd just uninstall and reinstall cura and set the printer back up. |
Reinstalled Cura,same problem :-( |
Check your %AppData%\cura\4.1\machine_instances folder they're text files. open them in notepad see if you have a repetier_ anything in there. |
[general] [metadata] [containers] |
Its got the info correct. So it some other issue. I'll create a separate version with your name on it, for testing shortly. |
Ok I just posted the change. It may have been some unneeded code doing something. So I commented out a small section. |
2019-07-23 19:46:41,405 - DEBUG - [MainThread] RepetierIntegration-YorickJanse.DiscoverRepetierAction.getPrinterList [155]: getPrinterList:http://192.168.2.125:3344/printer/info |
This a windows box? and is your machine name file in %AppData%\cura\4.1\machine_instances AnetA8Plus? |
do you have any of these? RepetierIntegration.RepetierOutputDevice.connect |
Found the problem! To fix the problem: Delete the Custom+fff+printer.cfg |
awesome! |
I suspect this might be a cura issue in general as research on it shows people having this same issue before I started. It may be worth escalating to ultimaker. |
Thanks for the support, it is really nice to print directly from Cura without saving the file first :-) |
Sure thing, are you still using the version I named for you, or the regular? |
I'm using the version specially made for me |
problem SOLVED . |
When entering the API key, Plugin shows: Checking the API key ....
But nothing happens.
Cura 4.1
The text was updated successfully, but these errors were encountered: