Giter Club home page Giter Club logo

octoprint-bedlevelvisualizer's Introduction

OctoPrint-BedLevelVisualizer

This plugin visualises the output from various firmware that support bed mesh leveling, noteably the Prusa G81 mesh leveling report and the Marlin G29 T bed topography report. Please note that in order to use this plugin your 3D printer needs to support bed mesh leveling in software or come equipped with an auto level sensor supported by the printer's firmware (some entry-level printers do not provide such support per default). The plugin utilizes Plotly js library to render a 3D surface of the bed's reported mesh on a tab within OctoPrint.

Supported Firmware:

  • Marlin
  • PrusaFirmware
  • Klipper
  • Smoothieware

Example

It converts this:

Send: G29 T
Recv: echo:Home XYZ first
Recv:
Recv: Bed Topography Report:
Recv:
Recv: (0,9)                                                                   (9,9)
Recv: (30,270)                                                                (270,270)
Recv:  -0.452   -0.319   -0.237    0.287    0.140    0.139    0.136    0.317    0.247    0.247
Recv:
Recv:  -0.195   -0.273   -0.180   -0.178    0.014    0.018    0.111    0.214    0.210    0.210
Recv:
Recv:  -0.270   -0.252   -0.151   -0.119    0.009    0.016    0.072    0.249    0.224    0.224
Recv:
Recv:  -0.307   -0.205   -0.163   -0.124   -0.094   -0.002    0.036    0.151    0.174    0.196
Recv:
Recv:  -0.186   -0.130   -0.152   -0.105   -0.144   -0.007    0.044    0.093    0.181    0.270
Recv:
Recv:  -0.010   -0.077   -0.073    0.155   -0.006   -0.133    0.110    0.046    0.109    0.173
Recv:
Recv:   0.059   -0.094   -0.072   -0.002   -0.006    0.037    0.050    0.065    0.124    0.184
Recv:
Recv:  -0.057   -0.028    0.039    0.028    0.024    0.005    0.102    0.165    0.176    0.187
Recv:
Recv:   0.067    0.015    0.096    0.117    0.001    0.079    0.138    0.346    0.185    0.185
Recv:
Recv: [ 0.071]   0.014    0.061   -0.127    0.167    0.040    0.098    0.195    0.194    0.194
Recv: (30,30)                                                                    (270,30)
Recv: (0,0)                                                                     (9,0)
Recv: ok P15 B3

into this

screenshot


For more info, see the wiki


Known Issues

  • Install will fail silently in Python 3 due to missing system dependencies. You may have to SSH to your pi and run the command sudo apt install libatlas3-base to get the plugin to load. Since version 1.1.0 the plugin no longer has a dependency on numpy.
  • If installing on lower memory machines like the Orange Pi Zero or Raspberry Pi A numpy will have issues compiling. Check the instructions here for a potential solution. Since version 1.1.0 the plugin no longer has a dependency on numpy.
  • System Command Editor and Custom Control Editor plugins have a known issue here and here where your customizations for those plugins get wiped when used in conjunction with Bed Level Visualizer and a few other plugins. To avoid this from happening to you disable Bed Level Visualizer and after restarting OctoPrint configure your customizations in those plugins and save. Immediately disable those plugins and re-enable Bed Level Visualizer restart OctoPrint and Reload. Your customizations to controls and the system menu will still remain and the bug that exists in those plugins will be prevented from clearing your customizations. I highly recommend you take regular backups as well.
  • Since version 0.1.3 there is a python dependency on numpy. As a result; if you don't already have numpy the install can take in excess of 30 minutes to complete on a pi. Just be patient and let it run and eventually the plugin install will finish. Since version 1.1.0 the plugin no longer has a dependency on numpy.
  • If you have Marlin's Auto Temperature Reporting Feature enabled you will want to have M155 S30 and M155 S3 surrounding your G29 command, see settings screenshot, otherwise the collected data could be tainted. Use a value for the first M155 command that is long enough for the probing process to complete.

Most recent changelog

1.1.0 (07/31/2021)

Added

  • added BLVPROCESSINGON/BLVPROCESSINGOFF received gcode commands via M118, #447.

The following example custom command button would change to "processing" mode, heat the hot end until it reaches 200 degrees and then turn "processing" mode off. If webcam is enabled while processing the webcam will be shown while in "processing" mode.

M118 BLVPROCESSINGON
M109 S200
M118 BLVPROCESSINGOFF
  • add custom action command BEDLEVELVISUALIZER_LEVELBED to allow use with various custom config input options in Marlin (Configurationa_adv.h), ie CUSTOM_MENU_MAIN. Will initiate the command contained within the Update Mesh gcode script when received. Requires HOST_ACTION_COMMANDS to be enabled as well. Example menu item.
#define MAIN_MENU_ITEM_1_DESC "Bed Visualize"
#define MAIN_MENU_ITEM_1_GCODE "M118 A1 action:BEDLEVELVISUALIZER_LEVELBED"
  • camera position option

Updated

  • Plotly js library to version 2.3.1 gl3d bundle

Fixed

  • resolve issues related to blank date locale string

To-Do

  • improve old marlin makergear support
  • improve rectangular mesh for circular bed calculations
  • Pause standard OctoPrint temperature polling or squash the responses until processing is completed. won't be possible, utilize M155 gcode if possible
  • Orientation testing to verify axes are in correct direction. added settings to allow controlling the orientation.
  • Calculate bed dimensions and apply to probe points for display on graph, #28.

Get Help

If you experience issues with this plugin or need assistance please use the issue tracker by clicking issues above.

Additional Plugins

Check out my other plugins here


Sponsors

Support My Efforts

I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.

Patreon paypal

No paypal.me? Send funds via PayPal to [email protected]

You can use this link too. But the normal PayPal fee will be deducted.

octoprint-bedlevelvisualizer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octoprint-bedlevelvisualizer's Issues

Support for Linear / Bilinear ABL

Can you support Bilinear Automatic Bed Leveling?

The output looks like this:

Recv: Bilinear Leveling Grid:
Recv: 0 1 2
Recv: 0 +0.027 -0.160 -0.450
Recv: 1 +0.210 -0.020 -0.305
Recv: 2 +0.335 +0.102 -0.197

Thanks!

Printrbot simple metal settings

I cant seem to find the right settings for my Printrbot Simple Metal printer. I've included screenshots of my settings and console output. I've been able to find the right settings for the Prusa i3 MK3 with the help of these issue posts so I'm hoping to have some luck with the Printrbot. I've included screenshots of the settings I'm currently using (although I've tried all of the data collector flag options). Thanks in advance!

bedvisualizersettings

console output

Z-axis limits need work.

It looks like the Z-axis limits are set to the min/max of the data set to be drawn. This has the effect of exaggerating the heightmap. Check out this data set:

Recv: Bed Topography Report for CSV:
Recv:
Recv: -0.093,-0.067,0.002,0.033,0.011
Recv: -0.061,-0.019,0.030,0.077,0.039
Recv: -0.031,0.002,0.016,0.053,0.016
Recv: 0.012,-0.022,-0.002,0.008,-0.003
Recv: -0.020,-0.021,-0.019,-0.002,-0.039

Now, that's not going to break a Morty or nothing, but it's still pretty damn level. Here's the humpity-shlump that BLV told me my bed looked like:

image

Maybe lock the range closer to +/- 0.5 or +/-1?

Fixed Y scale on graph

Hi!

I noticed that as I try to level the bed, the inclination on screen always stays the same, and what changes is the scale on the Y axis. This is technically correct, but is hard to work with. It would be better if the scale was fixed and you could see the plane changing inclination on the screen until it's horizontal. I suggest a fixed scale of 2mm as a starting point. If my bed is more dis-aligned than that, I wouldn't mind to see parts of graph off screen anyway.

This plugin is awsome, keep up the good work!

TypeError: Plotly.react is not a function

Hi,
I'm getting this "Plotly.react is not a function" error when i'm trying to use the plugin.

I've installed the plugin from the Plugin Manager.
This are my settings:
image
Tried both with the Save Mesh checkbox checked and unchecked..
I've updated the Plotly on my Pi via SSH but that didn't solve it.

[REQUEST] Improved axis accuracy

Its hard to interpret delta (circle) data in Cartesian (rectangle) format.
should be a circle
0,0 as center of data points
x/y scale should reflect delta radius or printable radius
z scale lowest to highest probed points

http://forums.reprap.org/read.php?178,477060
b699d0309431d21056f97824ac_800x400

If its too much work to make a specific view model for delta's let me know (your sweat)
Just saying as is its more suited for prusa i3 style printers

Plugin Conflict with Tempsgraph

There is currently a conflict between BedLevelVisualizer and Tempsgraph (https://github.com/1r0b1n0/OctoPrint-Tempsgraph).

Tempsgraph is currently utilizing Plotly 1.33.1 which either the version of the distribution of it does not contain the "react" function causing the graph to not load.

Based on plugin load order and optimization, the resulting version of plotly loaded is the 1.33.1 version not the 1.35.2 needed for BedLevelVisualizer

Not sure if the two versions can be isolated by aliasing plotly or simply be brought into sync with version numbers.

Corresponding ticket for the other plugin (1r0b1n0/OctoPrint-Tempsgraph#15)

Delta Printer Not Displaying At All - In Progress

just tried your pluggin. I think its a cool idea to show the data visually.
Got everything working but I dont see my data represented.

I have a delta printer. The visualization graphic shown on the "bed visualizer" model
tab for me shows an empty x/y/z grid.
That seems like only for Cartesian printers. idk if delta was not considered or not supported?

If u do plan to support Delta's here is my ubl info:

Send: M420 V
Recv: 
Recv: Bed Topography Report:
Recv: 
Recv: (0,9)                                                                   (9,9)
Recv: (-98,98)                                                                (98,98)
Recv:      .          .          .          .       0.100    0.100       .          .          .          .
Recv: 
Recv:      .          .       0.155    0.205    0.245    0.235    0.225    0.225       .          .
Recv: 
Recv:      .       0.140    0.190    0.195    0.265    0.300    0.295    0.275    0.325       .
Recv: 
Recv:      .       0.140    0.150    0.200    0.285    0.310    0.305    0.300    0.320       .
Recv: 
Recv:   0.050    0.110    0.165    0.190    0.280    0.295    0.325    0.345    0.345    0.150
Recv: 
Recv:      .       0.074    0.250    0.275  [ 0.325]   0.310    0.300    0.385    0.395    0.150
Recv: 
Recv:      .       0.050    0.154    0.231    0.229    0.206    0.330    0.400    0.450       .
Recv: 
Recv:      .       0.200    0.128    0.159    0.186    0.305    0.370    0.440    0.525       .
Recv: 
Recv:      .          .       0.201    0.186    0.221    0.255    0.311    0.538       .          .
Recv: 
Recv:      .          .          .          .       0.200    0.245       .          .          .          .
Recv: (-98,-98)                                                                    (98,-98)
Recv: (0,0)                                                                     (9,0)
Recv: ubl.mesh_is_valid = 0
Recv: ubl.storage_slot = 1
Recv: echo:Bed Leveling On
Recv: ok P15 B3

Plugin is not compatible with Internet Explorer

While testing the Plugin with different browsers I realised that it is not working with Internet Explorer. Is that still considered to be a recent browser?

I already had settings stored to the plugin, but with Internet explorer the settings are not read to the settings page.

settings

It is possible to type in settings and click on "save", and these settings are also displayed if I reopen the settings tab, but they are not actually stored to the config.yaml.

Due to the "missing" (in terms of not present at the browser) configuration, also the plot-view does not work:

plotscreen

Also it states that I need to be logged, which I was.

Just spins...never shows a graph

I see the following commands get run in the terminal, with this output, but the plugin screen just spins, never updating or displaying anything

Send: G28
Send: G29 T1
Send: M503
Recv: ok
[...]
Recv: -2.130 -2.130 -2.130 -2.140 -2.190 -2.190 -2.190
Recv: -0.840 -0.840 -0.560 -0.600 -0.920 -1.460 -1.460
Recv: -0.130 0.380 0.670 0.610 0.220 -0.400 -1.200
Recv: 0.850 1.310 1.560 1.510 1.080 0.430 -0.470
Recv: 1.540 1.900 2.070 1.930 1.510 0.770 -0.080
Recv: 1.990 1.990 2.070 1.920 1.420 0.650 0.650
Recv: 1.550 1.550 1.550 1.320 0.910 0.910 0.910
Recv: ok
[...]
Recv: echo:Steps per unit:
Recv: echo:  M92 X100.00 Y100.00 Z100.00 E160.00
Recv: echo:Maximum feedrates (mm/s):
Recv: echo:  M203 X200.00 Y200.00 Z200.00 E200.00
Recv: echo:Maximum Acceleration (mm/s2):
Recv: echo:  M201 X4000 Y4000 Z4000 E4000
Recv: echo:Acceleration: S=acceleration, T=retract acceleration
Recv: echo:  M204 S2500.00 T3000.00
Recv: echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s),  Z=maximum Z jerk (mm/s),  E=maximum E jerk (mm/s)
Recv: echo:  M205 S0.00 T0.00 B20000 X20.00 Z20.00 E20.00
Recv: echo:Home offset (mm):
Recv: echo:  M206 X0.00 Y0.00 Z0.00
Recv: echo:PID settings:
Recv: echo:   M301 P24.77 I1.84 D83.61
Recv: ok

My Delta smashed into the bed

hey i am new to 3d printing, if this is a stupid question which i should figure out on my own just ignore this^^

I have a Tevo Little Monster Delta printer with a BL-Touch module. When i tried to use your plugin, my printhead smashed into the bed. How can i prevent this?

Y axis in plotted view is inverted.

The Y axis is inverted in version 0.0.8 that I just updated to.

This is from G29 T0 to get the bounding box numbers.

As you can see point X10, Y10 is -0.384 which should ge at X10, Y260 for example.

Maybe a setting to invert X and Y if some firmwares plot it differently.

nice plugin so here is my experience with it

doesnt work with manual mesh bed leveling included in th3d
think cause the answer is different to what it expects
hope it helps below is the code my printer spits out:

Send: M420 V
Recv: Mesh Bed Level data:
Recv: Num X,Y: 5,5
Recv: Z offset: 0.00000
Recv: Measured points:
Recv: 0 1 2 3 4
Recv: 0 +0.00000 -0.02500 -0.02500 +0.00000 +0.10000
Recv: 1 -0.00000 +0.02500 -0.02500 -0.02500 +0.07500
Recv: 2 -0.00000 -0.00000 +0.02500 +0.02500 +0.10000
Recv: 3 -0.00000 -0.02500 -0.02500 -0.00000 +0.05000
Recv: 4 -0.00000 -0.02500 -0.02500 -0.02500 +0.02500
Recv:
Recv: echo:Bed Leveling Uit
Recv: echo:Fade Height Uit
Recv: ok

Cant plot from recived data

I racive this code from G29 T
Send: G29 T Recv: Recv: Bed Topography Report: Recv: Recv: (0,4) (4,4) Recv: (15,185) (169,185) Recv: -0.239 T:24.96 /0.00 B:26.65 /0.00 @:0 B@:0 Recv: -0.137 -0.052 -0.027 0.006 Recv: Recv: -0.222 -0.155 -0.056 -0.054 -0.027 Recv: Recv: -0.220 -0.156 -0.074 [-0.068] -0.054 Recv: Recv: -0.211 -0.168 -0.093 -0.092 -0.087 Recv: Recv: -0.207 -0.157 -0.102 -0.112 -0.100 Recv: (15,15) (169,15) Recv: (0,0) (4,0) Recv: ok

It plots with bad spot [-0.068 dont get the right bracket
image

when i manualy delete the left bracket and live it without it plot OK
image

Can't get the plugin to work

I receive an error when I first open the Bed Visualizer plugin.

"TypeError: Cannot read property 'length' of undefined"

image

Data Collection Flag:
Measured points:

Gcode Commands:
G28 G29 T

Save Mesh
Checked

Check I click update. All I get is, but it doesn't do anything
Please wait, retrieving current mesh.

When I check the logs G28 and G29 T responds with OK almost immediately.

I am also on Marlin 1.1.1

Seems to be displaying values that are flipped on the Y-axis

I'm on my personal fork of the Marlin bugfix-2.0.x branch using UBL. The default branch of my repo is what I'm compiling right now, so you can have a look there if you need to see my Marlin configuration headers.

2018-04-25 09_09_55-octoprint
2018-04-25 09_10_11-octoprint

As you can see, terminal is showing (0,0) should be 0.387, but the visualizer is showing 0.312, which should be the value of (0,3).

Marlin 1.1.8

Using a fresh Marlin 1.1.8 modified to work on a Maker Select v2 (Wanhao i3 clone)

G29 output is not parsed (unless I am missing something). Would it be best to have different patterns defined in the plugin to allow for a broader support across different firmwares?

Here is my output from a random leveling I did.

Send: G29
Recv: State: Off
Recv: Num X,Y: 3,3
Recv: Z offset: 0.00000
Recv: Measured points:
Recv:         0        1        2
Recv:  0 -0.07500 +0.02500 -0.07500
Recv:  1 -0.02500 +0.02500 -0.12500
Recv:  2 -0.02500 -0.05000 -0.25000
Recv: 
Recv: X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0 Y:0 Z:0
Recv: ok

Stuck on Please wait, retrieving current mesh on P802MA

Stuck on Please wait, retrieving current mesh.

But my G29 output is different.

Its a P802MA

In:
G28
@BEDLEVELVISUALIZER
G29 T

Output:
Send: G28
Recv: ok
Send: G29 T1
Recv: Bed x: 20.00 y: 20.00 z: 1.80
Recv: Bed x: 90.00 y: 20.00 z: 1.73
Recv: Bed x: 160.00 y: 20.00 z: 1.22
Recv: Bed x: 160.00 y: 90.00 z: 1.20
Recv: Bed x: 90.00 y: 90.00 z: 1.73
Recv: Bed x: 20.00 y: 90.00 z: 1.77
Recv: Bed x: 20.00 y: 160.00 z: 1.94
Recv: Bed x: 90.00 y: 160.00 z: 1.93
Recv: Bed x: 160.00 y: 160.00 z: 1.36
Recv: Eqn coefficients: a: -0.00 b: 0.00 d: 1.90
Recv: planeNormal x: 0.00 y: -0.00 z: 1.00
Recv: ok
Recv: echo:endstops hit: Z:1.37

Docs/Readme

I must be missing something, but I can't get this to do anything on my Prusa i3 mk3. I installed the plugin, but on the plugin's page it's just blank. On the configuration screen I changed the codes from default to G80 and G81. I selected the Prusa Firmware Mode. I still get nothing. I entered those codes on the terminal and don't see a visualization. Is there a gap in the documentation on what to do to get a visualization or am I just missing it?

Thanks

[Request] timestamp ?

Hi :)
Since "Graph is now always visible in OctoPrint as long as you have saving enabled, there is a mesh stored, and the user is logged in."
Can you add a timestamp ?

Verify "Data Collector Flag" in settings

Since version 0.0.6, keep getting message 'Verify "Data Collector Flag" in settings is set appropriately.' in the bed visualizer tab and no way to edit anything in the bed visualizer settings. The Data Collector Flag field is not editable.

Stuck on Please wait, retrieving current mesh.

I have a Robo R2. I installed this plugin.. I love it! It worked fine the first three times I used it. Now it just gets stuck on Please wait, retrieving current mesh. If I refresh the screen (CTL+F5) and go to the bed visualizer tab, it displays the last successful plot data. When I check the terminal history I can see that it is running and getting new points. Its just not displaying the new plot.
From config.yaml
bedlevelvisualizer:
command: 'G28

  M155 S30

  @BEDLEVELVISUALIZER

  G29

  M155 S3'
mesh_timestamp: 5/11/2018, 7:45:21 PM
stored_mesh:
- - '+0.137'
  - '+0.238'
  - '+0.639'
- - '+0.304'
  - '-0.024'
  - '+0.045'
- - '+0.063'
  - '+0.498'
  - '+0.276'
stored_mesh_x:
- 0
- 98
- 196
stored_mesh_y:
- 0
- 98
- 196
stored_mesh_z_height: 250

From Terminal Output

Send: G28
Send: M155 S30
Send: @BEDLEVELVISUALIZER
Send: G29
Recv: T:25.06 /0.00 B:23.97 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: T:25.03 /0.00 B:23.91 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: T:25.03 /0.00 B:24.03 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: T:25.06 /0.00 B:23.97 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: T:25.11 /0.00 B:24.09 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: T:24.92 /0.00 B:24.00 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: T:25.03 /0.00 B:24.03 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: T:26.28 /0.00 B:24.84 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: X:0.00 Y:197.00 Z:255.95 E:0.00 Count X:0 Y:15760 Z:204760
Recv: ok
Send: M155 S3
Recv: ok
Recv: echo:Unknown command: "@BEDLEVELVISUALIZER"
Recv: ok
Recv: echo:busy: processing
Recv: echo:busy: processing
Send: M105
Recv: echo:busy: processing
Recv: echo:busy: processing
Send: M105
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: T:25.43 /0.00 B:24.06 /0.00 @:0 B@:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: Bilinear Leveling Grid:
Recv: 0 1 2
Recv: 0 +11.154 +10.972 +11.796
Recv: 1 +11.334 +11.307 +11.772
Recv: 2 +11.451 +11.399 +11.870
Recv:
Recv: X:184.00 Y:156.00 Z:10.94 E:0.00 Count X:14720 Y:12480 Z:18208
Recv: ok
Send: M105
Recv: ok

Any help would be very appreciated

TypeError: Cannot read property 'length' of undefined

I've just installed this and get this error:

TypeError: Cannot read property 'length' of undefined

in this box:

Bed Visualizer Error
Looks like your settings are not correct or there was an error. Please see the Readme for configuration hints.

I have the tag set to: Bed Topography Report for CSV:
I have Save Mesh and Prusa Firmware both checked.
I have commands set to

G28
G29 T

Bed Visualizer (0.0.8)
OctoPrint: 1.3.8

...I'm not sure where the plugin logs, so I can't get a stack trace.

WebGL error on iPad Safari

Hi,

I’m getting the error displayed in the attached file. When I go to the WebGL site and test the browser I confirm it supports WebGL (I see the spinning cube). Any thoughts on what might be causing this?
fc389389-d706-4ba1-b192-42d5545b83cf

Non-UBL leveling Currently Not Supported - working on fix

Love the idea but... My printer requires g28 prior to g29 t1 so from the get go the visualized gets stuck on Please wait, , retrieving current mesh.

I have to reboot system, restart browser and manually perform g28 prior to opening the visualizer (once opened it won't get out of the please wait state).

After that if I open visualizer it will perform g29 but then still get stuck on please wait. Terminal does show some results

Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: Bilinear Leveling Grid:
Recv: 0 1 2
Recv: 0 +0.002 +0.062 -0.025
Recv: 1 -0.005 +0.022 -0.028
Recv: 2 +0.005 -0.048 -0.010
Recv:
Recv: X:262.00 Y:175.00 Z:5.81 E:0.00 Count A:34977 B:6963 Z:2316
Recv: ok

I have not seen anything past the please wait...

Bed Visualizer Error

"TypeError: Cannot read property 'canvas' of undefined Looks like your settings are not correct or there was an error. "

Settings:
G29 T

Marlin 1.1.8 UBL

Send: G29 T
Recv: echo:������������ XYZ ������������
Recv:
Recv: Bed Topography Report:
Recv:
Recv: (0,2) (2,2)
Recv: (50,250) (250,250)
Recv: -0.053 -0.188 -0.268
Recv:
Recv: 0.003 -0.128 -0.241
Recv:
Recv: [ 0.141] -0.145 -0.357
Recv: (50,50) (250,50)
Recv: (0,0) (2,0)
Recv: ok

Whats wrong?

Add support for G32 in Smoothieware?

Looks like an excellent little addition to Octoprint! I'd really like to make use of this on my delta, but Smoothie uses G31 instead of G29. Any chance we can get that support added as an option? Thank you!

Error: Unknown Command ""

I'm having a problem, here is the log:

Recv: ok
[...]
Send: M155 S0
[...]
Recv: ok
Send: G28
Recv: echo:busy: processing
Printer seems to support the busy protocol, adjusting timeouts and setting busy interval accordingly
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: X:105.00 Y:118.00 Z:11.48 E:0.00 Count X:8400 Y:9440 Z:4592
Recv: ok
Send: G29 T
Recv: echo:Unknown command: ""
Recv: ok
Send: M113 S2
Recv: ok

My config have the following commands:

G28
G29 T

If I put just G29 there, it complains that I must home first, so I put them together. As you can see in the above log, the G28 is executed correctly (and the printer does home) and then it gives an error on the second command.

(I'm using Bilinear ABL as noted on other issue, but nevertheless it should get past this point and get stuck with the matrix report syntax instead).

Bed level graphic wont display in Pi 7" screen

Hi Guys,
I've installed a BLTouch probe with Marlin 1.1.8 and Octoprint 1.3.8. I've calibrated the BLTouch and set the Z offset, and all is working ok.

When I connect to Octoprint from the my PC runing Windows10 and Chrome browser, the Bed Visualizer works fine, completes and I see the graphical display that represents/shows the level of the print bed surface.

On my Pi connected to the printer I have a 7" touch screen and TouchUI running. I believe TouchUI is using Chromium browser, but not 100% sure and dont know how to check. When I do a bed visualization in the Pi via the 7" touch screen, it completes the probing and then displays an error and does not show the graphical (picture) display that represents/shows the level of the print bed surface.

The error I receive on the Pi 7" screen is:
Bed Visualizer Error
Looks like your settings are not correct or there was an error. Please see the readme for config hints.
TypeError: Cannot read property 'canvas' of undefined

Behind the error message is another error on what looks like the white screen where it was getting ready to display the graphical display that represents/shows the level of the print bed surface:
Webgl is not supported by your browser - visit http://get webgl.org for more info
When you visit this URL it does a test and tells me that the browser seems to support WebGL and it is disabled or unavailable.

Not sure how to fault find this issue and where to start. Any info or tips would be greatly appreciated.

Many thanks

Mark R

Plotly graph not displaying

Hello,

Plotlyjs doesn't display on my Octoprint instance, and I can't figure out how to get it working. The stored mesh data is okay, and the Bed Visualizer tab only show the Update button.
Anyone having this issue too?

Bed Visualizer Error

Hello,
I, upgrade to v 0.0.8 and I got this error:

Bed Visualizer Error
Looks like your settings are not correct or there was an error. Please see the Readme for configuration hints.

TypeError: Plotly.react is not a function

I set all the plug-in parameters as in Readme but I still have this error and no graph display.
Best regards.
Laurent

BedLevel 0.0.8 error

image
This error is occuring every time I'm clicking on the BedLevel tab.
Octoprint is on the latest version

Home First

Looks like you forgot a case where G29 T1 won't work unless you home the bed first:

Send: G29 T1
Recv: echo:Home XYZ first

There should be a pop-up that happens to ask if you want to home to bed (Latest Marlin)

[0.0.8] TypeError: Plotly.react is not a function

Hey,
I'm getting the following error message, when trying to use your plugin:
TypeError: Plotly.react is not a function

This is the serial output through the OctoPrint terminal:

Recv: Bilinear Leveling Grid:
Recv: 0 1 2 3
Recv: 0 -0.102 -0.046 +0.053 +0.138
Recv: 1 -0.132 -0.047 +0.036 +0.127
Recv: 2 -0.194 -0.105 -0.010 +0.106
Recv: 3 -0.295 -0.200 -0.096 +0.032

I'm running the latest Marlin Firmware from the bugfix-2.0.x branch on a cartesian printer.
The Data Collector Flag has been set to "Bilinear Leveling Grid:" and I'm using your suggested GCODE:

M155 S30
G28
G29 T1
M155 S3

Data collection seem to work just fine, as the acquired data in the settings tab of your plugin shows exactly what is displayed in the terminal.

I haven't been looking through your code but the error message to seems to be some what related to a typo or am I using just to few probing points?

Unknown in install popup

Just installed this today (likely 0.1.0) and saw this in the octoprint.log although it may be nothing:

2018-05-02 13:43:21,550 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py:1643: UserWarning: No PKG-INFO found for package: octoprint_bedlevelvisualizer

...as accompanied by this popup during the install:

screen shot 2018-05-02 at 1 43 29 pm

I really don't know much about egg-info and packaging, unfortunately.

TypeError: Plotly.react is not a function

Hi,

I'm getting the above error when I go to the Bed Visualizer page. In settings things look allright and I even get stored mesh date. I'm using Bilinear Leveling on Marlin 1.1.8.

Stored Mesh Data:
+0.103 -0.005 -0.010 +0.108
+0.095 -0.027 +0.048 +0.205
+0.075 +0.070 +0.118 +0.210
+0.048 +0.172 +0.162 +0.095

Erroneous values in plot

After obtaining data from my 10x10 pattern, the plot that comes up shows X0, Y9 to have a Z value of 9 as well. The actual matrix data isn't showing anything near that value in Z.

Recv: Bilinear Leveling Grid:
Recv: 0 1 2 3 4 5 6 7 8 9
Recv: 0 +0.582 +0.472 +0.382 +0.292 +0.227 +0.152 +0.087 +0.025 -0.025 -0.083
Recv: 1 +0.552 +0.427 +0.307 +0.225 +0.155 +0.082 +0.012 -0.053 -0.098 -0.128
Recv: 2 +0.482 +0.377 +0.262 +0.185 +0.115 +0.052 -0.013 -0.068 -0.120 -0.173
Recv: 3 +0.445 +0.315 +0.192 +0.112 +0.042 -0.023 -0.085 -0.133 -0.173 -0.193
Recv: 4 +0.410 +0.300 +0.187 +0.115 +0.042 -0.023 -0.080 -0.118 -0.155 -0.205
Recv: 5 +0.400 +0.270 +0.157 +0.067 -0.003 -0.063 -0.120 -0.158 -0.185 -0.208
Recv: 6 +0.420 +0.295 +0.190 +0.090 +0.032 -0.025 -0.073 -0.108 -0.143 -0.198
Recv: 7 +0.435 +0.300 +0.172 +0.077 +0.010 -0.040 -0.085 -0.115 -0.153 -0.183
Recv: 8 +0.465 +0.357 +0.237 +0.150 +0.075 +0.025 -0.018 -0.058 -0.100 -0.170
Recv: 9 +0.490 +0.305 +0.260 +0.140 +0.072 +0.045 -0.013 -0.068 -0.105 -0.138

newplot

Let users customise "Data Collector Flag"

Many printers, many flags.
Just let people define totally custom flag message instead of pre-defined drop-down.

I can workaround this limitation by manually injecting one more option via dev tools in my browser, but that's a hassle. And supporting all the flags that exist out there in the plugin is not an option, i guess (pardon the pun).

Example of the flag, for Monoprice Mini Delta:
G29 Auto Bed Leveling

Plugin version installed: 0.0.3

Thank you for the plugin.

Cannot install plugin

I get this when trying to install the plugin using the plugin manager:

Installing plugin "Bed Level Visualizer" from https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip.../home/pi/oprint/bin/python -m pip install https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zipException:Traceback (most recent call last):File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in mainstatus = self.run(options, args)File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 272, in runwith self._build_session(options) as session:File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 72, in _build_sessioninsecure_hosts=options.trusted_hosts,File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 329, in __init__self.headers["User-Agent"] = user_agent()File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 93, in user_agentfrom pip._vendor import distroFile "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 1050, in _distro = LinuxDistribution()File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 594, in __init__if include_lsb else {}File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_inforaise subprocess.CalledProcessError(code, cmd, stdout)CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1Traceback (most recent call last):File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main"main", fname, loader, pkg_name)File "/usr/lib/python2.7/runpy.py", line 72, in _run_codeexec code in run_globalsFile "/home/pi/oprint/lib/python2.7/site-packages/pip/main.py", line 19, in sys.exit(pip.main())File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/init.py", line 233, in mainreturn command.main(cmd_args)File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 251, in maintimeout=min(5, options.timeout)) as session:File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 72, in _build_sessioninsecure_hosts=options.trusted_hosts,File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 329, in __init__self.headers["User-Agent"] = user_agent()File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 93, in user_agentfrom pip._vendor import distroFile "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 1050, in _distro = LinuxDistribution()File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 594, in __init__if include_lsb else {}File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_inforaise subprocess.CalledProcessError(code, cmd, stdout)subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1Error!Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

I can't seem to get the plug in running?

When I click on the plugin I get this error, do i need to install Plotly.js? if so do I install it on the raspberry pi? or the PC I am using to view? or is it a completely different issue? I am new to this but reading as much as I can find.
Thank you very much.
Tony
Bed Visualizer Error
Looks like your settings are not correct or there was an error. Please see the Readme for configuration hints.

TypeError: s[0] is undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.