Salandora / octoprint-customControl

This plugin makes Custom Controls editable through the OctoPrint WebUI
GNU Affero General Public License v3.0
25 stars 15 forks source link

Add Controls in a Tab #6

Open tirasec opened 7 years ago

tirasec commented 7 years ago

Hello,

I use a cheap USB microscope (<20€) to accurately measure the head distance of my printer, and enter the Extr.2 X-offset & Extr.2 Y-offset in Repetier firmware (I put the microscope on the bed, and move the head). It is very accurate and I got perfect head calibrations but is it a bit "heavy" because I have to :

As it is the best way I found to accurately calibrate a dual head, I would like to simplify a bit the process, (unfortunately I am not developer...) Several questions : 1 - is there a way to add Controls in a new Octoprint Tab ? (eg. named "Head Calibration") 2 - is it possible to display the stream of an USB Microscope/WebCam connected to the Pi with your plugin? 3 - Is it possible to read/write some Repetier EEPROM Values ( Extr.2 X-offset & Extr.2 Y-offset) with a command ?

Thanks

microscope microscopestream

Salandora commented 7 years ago

Okay so short answers:

1 - No, 2 - No, 3 - Yes

Long version:

1 & 2: This is only an Editor Plugin, to easily create, edit and remove custom controls in the control tab. I have no control where to put the custom controls or what sort of controls exists, this is an OctoPrint core feature. So for 1. and 2. you would need to make a request at OctoPrint directly.

3: Yeah there is a Command for reading and writing: https://github.com/repetier/Repetier-Host/wiki/EEPROM-settings

tirasec commented 7 years ago

Thanks for your fast reply...

Just an idea, could you be interested to develop such plugin ? If yes, what could be the price ? (I can write the specs before)

Salandora commented 7 years ago

What exactly should this Plugin you're requesting do?

If I understand you right It should create a Tab, display the Microscope image and read and write to the Repetier EEPROM, anything else?

tirasec commented 7 years ago

Thanks, yes, it's that.

I have attached a short document OctoprintHeadCalibrationPlugin.pdf

(I can found some money if it can help you...)

Salandora commented 7 years ago

Alright, so after a first check, I can give some statement on this:

I like the Idea.

USB Microscope: The only hard Part I actually see is how to stream the microscope image to the frontend.

  1. You could setup an own mjpg_streamer for it... Well I think this would be a manual/semi-automatic process, we should talk about this of course.
  2. Write an own program to stream the Image, and maybe preprocess it to e.g. draw a circle. This could be done by OpenCV, which would require a hugh library... But enables you to almost fully automate the calibration process. I would recommend this xD
  3. If exists (but not totaly necessary): Haproxy/nginx etc needs to be configured to stream the microscope image to the user. Actually I would see this as a fully manual part.

Things I need

  1. Of course a USB Microscope
  2. A holder for this scope.

Thing I don't really need but would be nice

  1. Dual head Printer xD (I don't own one, so I can only make guesses and you would have to verify that it really works)

What does this mean Well if you can spend me a USB microscope, and the STL file for the holder, so I can print one, I should be able to create such a Plugin, with documentation on how to set things up. But don't expect it to happen before March.

tirasec commented 7 years ago

Thank you very much... some comments :

If you have any questions please feel free to ask me.

Salandora commented 7 years ago

Could you please send me an email (), so I can send you my address xD I'm not the kind of person putting his address into an open bug tracker hehe.