Git Product home page Git Product logo

octoprint-multicolors's Introduction

octoprint-multicolors's People

Contributors

moonshinesg avatar timpuri avatar

Stargazers

 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

octoprint-multicolors's Issues

Blank line above inserted code

Hi there,

if I insert a multi line code block with my own regular expression (to match my gcode) everything runs well except there is a blank line directly above the inserted code:

`M117 INDICATOR-Layer28

; multi color
;------------------------------
; PAUSE & PRESENT BED
;------------------------------
;`

I don't know what causes this and I don't have a clue how printers deal with blank lines in gcode. Maybe it's not an issue at all or dependent on FW?

Plugin not showing up in Octoprint?

Hello,
I can't actually "find" the UI that you show in your README after installation.
Where is it supposed to be found?
I have OctoPi 0.13.0 and OctoPrint 1.3.6

Print fails at color change

I'm using the filament change plugin not to change filament but to pause the print so I can insert a nut into the print.
I just use the z up button to move the print head out of the way and after move it back down the same amount of button clicks. I've tried with and without filament retraction and the print still easily snaps apart at that layer.
It's got me baffled. I'm wondering if the z buttons are slightly inaccurate? Do I need to hand write a retraction distance and then return?

MultiColors not working anymore

Hey, so I downloaded MultiColors and I was using it perfectly for about a week. I just used M300 at certain layers to have the printer emit a tone so I know when its time to change my color. But yesterday I got a new pi3 and reinstalled octopi. I did everything the same. I am on Version: 1.3.0rc1 (rc/devel branch). I have the plugin installed. Now when I run the process it says the gcode was injected. But I get no tones during my print as if the mulitcolor didnt inject the code. What can I do to fix this?

P.S. I already tried updated back to stable and then updated back to devel branch and reinstalled the plugin. Thanks

\r required for multi line injection.

Injected gcode doesn't seem to apply newlines. Using regex "LAYER:{layer}" and layer 36 with the injected code:

G28 Y0 X0 ; home the X and Y axis
G1 Y120; move plate forward
M300 ; ring the buzzer 
M25 ; pause the print so you can change the filament 
G92 E0 ; reset the extruder origin 
G28 Y0 X ; home the X and Y axis 
; end multi-color

results in

;LAYER:36
; multi colorG28 Y0 X0 ; home the X and Y axis G1 Y120; move plate forward M300 ; ring the buzzer M25 ; pause the print so you can change the filament G92 E0 ; reset the extruder origin G28 Y0 X ; home the X and Y axis ; end multi-color 

Adding /n to the code to be injected didn't seem to work, but /r did, so the new code:

\r
G28 Y0 X0 ; home the X and Y axis \r
G1 Y120; move plate forward \r
M300 ; ring the buzzer \r
M25 ; pause the print so you can change the filament \r
G92 E0 ; reset the extruder origin \r
G28 Y0 X ; home the X and Y axis \r
; end multi-color \r

Results in:

;LAYER:36
; multi color
G28 Y0 X0 ; home the X and Y axis 
G1 Y120; move plate forward 
M300 ; ring the buzzer 
M25 ; pause the print so you can change the filament 
G92 E0 ; reset the extruder origin 
G28 Y0 X ; home the X and Y axis 
; end multi-color 

Thanks.

ERROR: Injecting GCODE failed. Replaced 0 out of 1 needed.

Not sure what i'm doing wrong

Layers: "254" (Also tried "254,")

Duplicate File: Enabled

All options under "Advanced" have been left as default as i have no idea what im doing.

whenever i click "Process" it give me the error: "Injecting GCODE failed. Replaced 0 out of 1 needed."

I also tried adding 2 layers seperated by a comma or a space n still wouldn't work.

Slicer used to generate the original gCode file is Cura (Not at the computer right now but it's whatever version the latest is as i always keep it up to date and the gCode file was generated about an hour ago when i first started trying to get this plugin working to try).

Printer is Anet A6 baught mid last year. The firmware is the original default firmware it came with (I think it's marlin but i don't actually know as i've never checked). All settings on the printer itself have been left at factory defaults.

Thanks in advance for any help provided

--Jess--

op multicolor plugin error

Python 3 compatibility

The octoprint python 3 compatibility test says this plugin is not compliant. Any chance this can be fixed?

Layer index in GUI start at 1; in GCODE starts at 0

I'm using Slicer v1.2.8 to generate my GCODE in OctoPrint, and MultiColors v1.0.6 for adding pauses to swap filaments. When I use the built-in GCODE Viewer in OctoPrint to view each layer and figure out where to add pauses, the GUI reports N layers and shows them each as layers 1 through N. However, the GCODE starts with a layer index of 0, so it goes 0 through N-1.

This causes each injected layer to occur 1 layer too late. I realize the fix could be accomplished in OctoPrint (the GUI), Slicer (the GCODE), or MultiColors (modified GCODE). I'm not sure which makes the most sense to report this to, but thought I'd start here. Thanks!!

Update regex to support multi-line and use match in replacement

I use Slic3r and layer comments are on the line for moving to next layer's first position. To do layer change, need to be able to inject gcode before this line.

Example

G1 E574.34601 F1800.00000 ; retract
G92 E0 ; reset extrusion distance
G1 Z1.680 F9600.000 ; move to next layer (6)

Current plugin functionality:

G1 E574.34601 F1800.00000 ; retract
G92 E0 ; reset extrusion distance
G1 Z1.680 F9600.000 ; move to next layer (6)
G91            ;Set Relative Mode
G1 E-5.000000 F500   ;Retract 5mm
G1 Z15 F300         ;move Z up 15mm
G90            ;Set Absolute Mode
G1 X20 Y20 F9000      ;Move to hold position
G91            ;Set Relative Mode
G1 E-40 F500      ;Retract 40mm
M0            ;Idle Hold
G90            ;Set Absolute Mode
G1 F5000         ;Set speed limits
G28 X0 Y0         ;Home X Y
M82            ;Set extruder to Absolute Mode
G92 E0         ;Set Extruder to 0

Desired plugin functionality:

;G1 E574.34601 F1800.00000 ; retract
;G92 E0 ; reset extrusion distance
;Pause Code
G91            ;Set Relative Mode
G1 E-5.000000 F500   ;Retract 5mm
G1 Z15 F300         ;move Z up 15mm
G90            ;Set Absolute Mode
G1 X20 Y20 F9000      ;Move to hold position
G91            ;Set Relative Mode
G1 E-40 F500      ;Retract 40mm
M0            ;Idle Hold
G90            ;Set Absolute Mode
G1 F5000         ;Set speed limits
G28 X0 Y0         ;Home X Y
M82            ;Set extruder to Absolute Mode
G1 E574.34601 F1800.00000 ; retract
G92 E0         ;Set Extruder to 0
; unpaused
G1 Z1.680 F9600.000 ; move to next layer (6)

Note the retract and extrusion reset are commented out (could be deleted) and the retract is moved to just before last extrusion command.

Extra Pauses from Regex. Regex needs "\n"?

I set up the multi color plugin and tested it with a small 20mm XYZ cube. It seemed to work well after I updated the Regex to look for Cura 4.4's layer comments.

I then used it for a larger model and ran into the issue that it kept pausing unexpectedly ~10 times extra. I realized that having targeted line 13 it was pausing at 13 then 130, 131, 132 through to 139 as well.

I opened the GCode file and searched for '; multi color' and found there were in fact 11 instances of it at the aforementioned layers.

I popped into regex101.com to test some things and sure enough it found every instance of ";LAYER:13" even those followed by another digit.

The only thing I've found to alleviate this is to add a "\n" at the end Regex so it doesn't find other instances.

Screenshots:
image

image

image

image

Not injecting g-code Issue.

I am having the issue of it failing to inject. I am using S3D and the expression used in my gcode is "; layer 13, Z = 2.660" and in the plugin I am putting "; layer {layer}" I have tried most fixes i've found and no dice... any ideas?

Octoprint Analysis doesn't start

Hi again,

AFAIK some background analysis process is started as soon as you drag'n'drop (upload) a file to the Octoprint webpages. This results in some info, which can be accessed by a small dropdown menu in the file manager and is e.g. used for the Filament Manager plugin.

It seems, a file duplicated by Multi Colors does not trigger this analysis. Do you know how this can be achieved w/o downloading/uploading the GCode?

Thanks!

Failed to insert code for layer

I'm having an issue with the plugin, when trying to insert some layers.
I'm getting this error in the logs:

Failed to insert code for layer

Here is the entire portion, from the logs, regarding multicolors (the [=] are extra lines for debugging)

2017-03-05 09:00:12,413 - octoprint.plugins.multi_colors - INFO - on_api_command called: 'process' / '{u'layers': u'1 2 3', u'gcode': u'M117 Change filament\nM0', u'find_string': u'layer {layer},.?', u'command': u'process', u'file': u'mp_select_mini_magic_numbers_plaque.gcode'}'
2017-03-05 09:00:12,416 - octoprint.plugins.multi_colors - INFO - File to modify '/home/pi/.octoprint/uploads/mp_select_mini_magic_numbers_plaque.gcode'
2017-03-05 09:00:12,545 - octoprint.plugins.multi_colors - INFO - [=] IN INJECT CODE
2017-03-05 09:00:12,545 - octoprint.plugins.multi_colors - INFO - [=] 3
2017-03-05 09:00:12,546 - octoprint.plugins.multi_colors - INFO - Trying to insert multi color code for layer '1'...
2017-03-05 09:00:12,547 - octoprint.plugins.multi_colors - INFO - [=] Search pattern: (layer 1,.
?$)
2017-03-05 09:00:12,639 - octoprint.plugins.multi_colors - INFO - Failed to insert code for layer 1
2017-03-05 09:00:12,641 - octoprint.plugins.multi_colors - INFO - Trying to insert multi color code for layer '2'...
2017-03-05 09:00:12,642 - octoprint.plugins.multi_colors - INFO - [=] Search pattern: (layer 2,.?$)
2017-03-05 09:00:12,735 - octoprint.plugins.multi_colors - INFO - Failed to insert code for layer 2
2017-03-05 09:00:12,736 - octoprint.plugins.multi_colors - INFO - Trying to insert multi color code for layer '3'...
2017-03-05 09:00:12,737 - octoprint.plugins.multi_colors - INFO - [=] Search pattern: (layer 3,.
?$)
2017-03-05 09:00:12,830 - octoprint.plugins.multi_colors - INFO - Failed to insert code for layer 3

After investigating for a bit, looks like the problem is the regex not being found in the file, which is line 80 in init.py, respectively:

test = re.search(search, m)

I'm using the latest version of octoprint: Version 1.3.1 (master branch)
multicolor plugin was installed through plugin manager of octoprint.

PS: File was uploaded locally, not SD, through octoprint. File is located here: /home/pi/.octoprint/uploads/file.gcode

The GCODE file was generated with slic3r.

Thanks in advance !

Check if injected is present

Hello,
how I check if the injected change filament at layer xx is correctly present?
If I download the file and open it with text read, I can see it?
I have try but doesn't works. I need to check if the pause is present because the file are worked from many peaple.
Thanks a lot.

Example of gcode to pause and resume

Hey,
I am trying to understand how to use this plugin.

Would something like this work?
Should I change it in any way?

M83 ; turn on relative movement for extruder  
G1 E-5.000000 F6000 ; retract filament 5mm  
G1 X0.000000 Y0.000000 Z4.000000 F9000 ; home X and Y axis leave Z at current height  
M84 E ; release extruder stepper motor from 'holding' position  
@pause ; pause print!
G1 X0.000000 Y0.000000 F9000 ; upon resume, rehome X/Y in case position was bumped out  
G1 X69.080000 Y58.560000 F9000 ; move back to next layer starting position  
G1 E0 F6000 ; reset extruder, ready to push out plastic again  
G1 F9000  
M82 ; set extruder movement back to absolute ready for next layer

ERROR: Injecting GCODE failed. Replaced 0 out of 1 needed.

im using anet a8 stock firmware, blender then cura then octoprint with multicolors

gcode sample:

;LAYER:11
; multi color

M117 Change filament
M0
G0 X39.864 Y50.321 Z1.4

tried layer {layer},.*?
;LAYER: {layer}

and a few other variants with no success

thanks in advance

No layer reference in Slic3r gcode

I've output a gcode with Slic3r and noticed a difference in my gcode compared to the other examples I've seen.

My gcode output for between layers is as follows:

;BEFORE_LAYER_CHANGE
G92 E0.0
;1.2
G1 F8640
G1 X231.375 Y111.005 E-0.03360
G1 X231.375 Y109.366 E-0.37842
G1 X231.596 Y109.145 E-0.07214
G1 X231.667 Y107.953 E-0.27584
G1 E-0.04000 F2100.00000
G1 Z1.600 F10800.000
;AFTER_LAYER_CHANGE
;1.2

This refers to the layer height, rather than layer number which is what is being searched for in the regular expression.

I've tried the following:
image

I get an error because I'm searching for a non-integer (e.g. 0.4 2.2).

The plugin doesn't works

Hello,
I have installed the plugin.
I see the tab multicolor but if I click on it the windows doesn't show.
Do you can help me?
I use octoprint version 1.2.13.

v1.0.12 update loop

Just tried updating to v1.0.12 but after it says it successfully updated and reboots the server it says the v1.0.12 update is avilable in the toast bubble in the top right again.

I have checked the plugin manager and confirmed that the version running is v1.0.11

Here is the output from the update window:

Updating, please wait. Collecting https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip Downloading https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip (145kB) Requirement already satisfied (use --upgrade to upgrade): OctoPrint-MultiColors==1.0.11 from https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip in /home/pi/oprint/lib/python2.7/site-packages Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-MultiColors==1.0.11) Requirement already satisfied: flask<0.11,>=0.9 in /home/pi/oprint/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Jinja2<2.9,>=2.8 in /home/pi/oprint/lib/python2.7/site-packages/Jinja2-2.8.1-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: werkzeug<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: tornado==4.0.2 in /home/pi/oprint/lib/python2.7/site-packages/tornado-4.0.2-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: sockjs-tornado<1.1,>=1.0.3 in /home/pi/oprint/lib/python2.7/site-packages/sockjs_tornado-1.0.3-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: PyYAML<3.11,>=3.10 in /home/pi/oprint/lib/python2.7/site-packages/PyYAML-3.10-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Flask-Login<0.3,>=0.2.2 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Flask-Principal<0.4,>=0.3.5 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Principal-0.3.5-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Flask-Babel<0.10,>=0.9 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Babel-0.9-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Flask-Assets<0.11,>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/Flask_Assets-0.10-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: markdown<2.7,>=2.6.4 in /home/pi/oprint/lib/python2.7/site-packages/Markdown-2.6.8-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pyserial<3.5,>=2.7 in /home/pi/oprint/lib/python2.7/site-packages/pyserial-2.7-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: netaddr<0.8,>=0.7.17 in /home/pi/oprint/lib/python2.7/site-packages/netaddr-0.7.19-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: watchdog<0.9,>=0.8.3 in /home/pi/oprint/lib/python2.7/site-packages/watchdog-0.8.3-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: sarge<0.2,>=0.1.4 in /home/pi/oprint/lib/python2.7/site-packages/sarge-0.1.4-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: netifaces<0.11,>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/netifaces-0.10.6-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pylru<1.1,>=1.0.9 in /home/pi/oprint/lib/python2.7/site-packages/pylru-1.0.9-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: rsa<3.3,>=3.2 in /home/pi/oprint/lib/python2.7/site-packages/rsa-3.2.3-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pkginfo<1.3,>=1.2.1 in /home/pi/oprint/lib/python2.7/site-packages/pkginfo-1.2.1-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: requests<3,>=2.18.4 in /home/pi/oprint/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: semantic_version<2.5,>=2.4.2 in /home/pi/oprint/lib/python2.7/site-packages/semantic_version-2.4.2-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: psutil==5.4.3 in /home/pi/oprint/lib/python2.7/site-packages/psutil-5.4.3-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Click<6.3,>=6.2 in /home/pi/oprint/lib/python2.7/site-packages/click-6.2-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in /home/pi/oprint/lib/python2.7/site-packages/awesome_slugify-1.6.5-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: feedparser<5.3,>=5.2.1 in /home/pi/oprint/lib/python2.7/site-packages/feedparser-5.2.1-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: chainmap<1.1,>=1.0.2 in /home/pi/oprint/lib/python2.7/site-packages/chainmap-1.0.2-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: future<0.16,>=0.15 in /home/pi/oprint/lib/python2.7/site-packages/future-0.15.2-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: scandir<1.4,>=1.3 in /home/pi/oprint/lib/python2.7/site-packages/scandir-1.3-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: websocket-client<0.41,>=0.40 in /home/pi/oprint/lib/python2.7/site-packages/websocket_client-0.40.0-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: python-dateutil<2.7,>=2.6 in /home/pi/oprint/lib/python2.7/site-packages/python_dateutil-2.6.0-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: wrapt<1.11,>=1.10.10 in /home/pi/oprint/lib/python2.7/site-packages/wrapt-1.10.11-py2.7-linux-armv7l.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: futures<3.2,>=3.1.1 in /home/pi/oprint/lib/python2.7/site-packages/futures-3.1.1-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: emoji<0.5,>=0.4.5 in /home/pi/oprint/lib/python2.7/site-packages/emoji-0.4.5-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: monotonic<1.4,>=1.3 in /home/pi/oprint/lib/python2.7/site-packages/monotonic-1.3-py2.7.egg (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: frozendict<1.3,>=1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: itsdangerous>=0.21 in /home/pi/oprint/lib/python2.7/site-packages/itsdangerous-0.24-py2.7.egg (from flask<0.11,>=0.9->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: MarkupSafe in /home/pi/oprint/lib/python2.7/site-packages/MarkupSafe-1.0-py2.7-linux-armv7l.egg (from Jinja2<2.9,>=2.8->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: certifi in /home/pi/oprint/lib/python2.7/site-packages/certifi-2017.04.17-py2.7.egg (from tornado==4.0.2->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: backports.ssl_match_hostname in /home/pi/oprint/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1-py2.7.egg (from tornado==4.0.2->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: blinker in /home/pi/oprint/lib/python2.7/site-packages/blinker-1.4-py2.7.egg (from Flask-Principal<0.4,>=0.3.5->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Babel>=1.0 in /home/pi/oprint/lib/python2.7/site-packages/Babel-2.4.0-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: speaklater>=1.2 in /home/pi/oprint/lib/python2.7/site-packages/speaklater-1.3-py2.7.egg (from Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: webassets>=0.10 in /home/pi/oprint/lib/python2.7/site-packages/webassets-0.12.1-py2.7.egg (from Flask-Assets<0.11,>=0.10->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: argh>=0.24.1 in /home/pi/oprint/lib/python2.7/site-packages/argh-0.26.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pathtools>=0.1.1 in /home/pi/oprint/lib/python2.7/site-packages/pathtools-0.1.2-py2.7.egg (from watchdog<0.9,>=0.8.3->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pyasn1>=0.1.3 in /home/pi/oprint/lib/python2.7/site-packages/pyasn1-0.2.3-py2.7.egg (from rsa<3.3,>=3.2->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/pi/oprint/lib/python2.7/site-packages/chardet-3.0.4-py2.7.egg (from requests<3,>=2.18.4->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: idna<2.7,>=2.5 in /home/pi/oprint/lib/python2.7/site-packages/idna-2.6-py2.7.egg (from requests<3,>=2.18.4->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/pi/oprint/lib/python2.7/site-packages/urllib3-1.22-py2.7.egg (from requests<3,>=2.18.4->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: regex in /home/pi/oprint/lib/python2.7/site-packages/regex-2017.06.23-py2.7-linux-armv7l.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: Unidecode<0.05,>=0.04.14 in /home/pi/oprint/lib/python2.7/site-packages/Unidecode-0.04.20-py2.7.egg (from awesome-slugify<1.7,>=1.6.5->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: six in /home/pi/oprint/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from websocket-client<0.41,>=0.40->OctoPrint->OctoPrint-MultiColors==1.0.11) Requirement already satisfied: pytz>=0a in /home/pi/oprint/lib/python2.7/site-packages/pytz-2017.2-py2.7.egg (from Babel>=1.0->Flask-Babel<0.10,>=0.9->OctoPrint->OctoPrint-MultiColors==1.0.11) You are using pip version 9.0.3, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Looks like we were already installed in this version. Forcing a reinstall. /home/pi/oprint/bin/python -m pip install https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip --ignore-installed --force-reinstall --no-deps Collecting https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip Downloading https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/1.0.12.zip (145kB) Installing collected packages: OctoPrint-MultiColors Running setup.py install for OctoPrint-MultiColors: started Running setup.py install for OctoPrint-MultiColors: finished with status 'done' Successfully installed OctoPrint-MultiColors-1.0.11 You are using pip version 9.0.3, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. The update finished successfully and the server will now be restarted.

Let me know where to find other logs that may help with fixing the issue. thanks :)

Failed to inject gcode

Hello. I am running OctoPrint 1.3.2 and installed multi color through gui plugin manager. When I try to use it I get inject failure. Below is info from octoprint log file. Also note I uninstalled the plugin and tried installing it manually which failed.

2017-05-07 11:58:18,234 - octoprint.plugins.multi_colors - INFO - on_api_command called: 'settings' / '{u'command': u'settings'}'
2017-05-07 11:59:22,956 - octoprint.plugins.multi_colors - INFO - on_api_command called: 'process' / '{u'layers': u'2', u'gcode':
u'M117 Change filament\nM0', u'find_string': u'layer {layer},.*?', u'command': u'process', u'file': u'Main_Drain_Difuser.gcode'}'
2017-05-07 11:59:22,961 - octoprint.plugins.multi_colors - INFO - File to modify '/home/pi/.octoprint/uploads/Main_Drain_Difuser.g
code'
2017-05-07 11:59:23,006 - octoprint.plugins.multi_colors - INFO - Trying to insert multi color code for layer '2'...
2017-05-07 11:59:23,055 - octoprint.plugins.multi_colors - INFO - Failed to insert code for layer 2

Manual Install Fail Log:

pip install "https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/master.zip"
Downloading/unpacking https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/master.zip
Downloading master.zip (158Kb): 158Kb downloaded
Running setup.py egg_info for package from https://github.com/MoonshineSG/OctoPrint-MultiColors/archive/master.zip
Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?
Complete output from command python setup.py egg_info:
Could not import OctoPrint's setuptools, are you sure you are running that under the same python installation that OctoPrint is installed under?


Command python setup.py egg_info failed with error code 255 in /tmp/pip-dKUo1o-build
Storing complete log in /home/pi/.pip/pip.log

Not injecting GCode

I have tried Cura, MatterControl and S3D and have yet to get this plugin to inject the necessary gcode though the plugin says it did.... I download it from Octoprint and view in Notepad ++ and cannot find any injected code.

Using S3d to slice, need an example

I'm just getting started with using commands and gcode altering so this is still new to me but I want to start getting into color changing. I was wondering if I could get an example of what I would input into advanced options Find Line (regular expression) if I were using simplify3d and trying to pause at layer 14. Is this it:
; layer {layer},.*

Then I'm assuming I need to input m commands in the inject gcode. Are the base ones that are shown (M117 Change filament
M0) enough to get a basic color change?

I'm reading up on the commands now and see that m0 stops the printer and m117 displays the message. I'm guessing I would probably want to input commands that would move the hotend away from the print.

I'm using a anycubic Chiron. (Can't recall the exact Marlin its running at the moment until I get to it at home, buts its whatever comes stock). Thanks for any help!

Insert a space in the regular expression

Hi
I use s3d and the gcode example is

;G1 Z0.3 ; Raise and begin printing
G92 E0
G1 E-1.0000 F2400
G1 Z0.184 F900
; process Process1
; layer 1, Z = 0.184
T0
; tool H0.200 W0.450
; skirt

The regular expression is
;layer {layer},.*

but dont work!

what should I put in the middle of ; layer and {layer},. *

Thanks!

Is KiSSlicer supported?

Hi!
I wonder if KiSSlicer is supported by MultiColors plugin. Looks like KiSSlicer doesn't number the layers.
Below is the example of Gcode KiSSlicer produces at layer change. I need to insert @Pause before the start of the layer z=2.2 Which regular expression should I insert into the "look for" field? I wasn't able to enter layer heights because the layer number in "look for" field is an integer. Any ideas/ help/ plans?
Thank you!

===============================================
; END_LAYER_OBJECT z=2.000
; Reset extruder pos
G92 E0
; BEGIN_LAYER_OBJECT z=2.200 z_thickness=0.200
; *** Estimate 4.318418 [s], Slowing (0.603x) to 7.0 [s] ***
; Perimeter Length = 84.589874
; Fan set to Cool value 100%
;
; 'Perimeter Path', 1.0 [feed mm/s], 24.1 [head mm/s]
G1 X109.972 Y75.028 Z2.2 E0 F4200
; head speed 24.120003, filament speed 1.002795, preload 0.131134
G1 X110.015 Y75.073 E0.04379 F320.1

Trying to create a good Extrusion code(not an issue)

This isn't an issue with the plugin at all it works great and I love it!
I am trying to create a script to change filament without zeroing axis and ran in to an issue. I can get the extruder position with M114 but dont know how to cast that in to a variable to use. In the below example I have to manually input the E value from the last line in layer 1, which makes multiple colors a pain. Here is an example with how I do it now and with where I think I need help. Pay no attention to actual values as I need to tweak extrude lengths for a color change, retracts etc.

G1 X104.201 Y138.980 E374.79387
;LAYER:2

; multi color
<-----------------This is where I would load a variable with M114's E value
G91 ;Set to absolute positioning
G1 Z20 F200 E-3 ;retract 3mm of feed stock move 20
G90 ;Set to relative positioning
G1 Y-200 ;Move bed back
M117 Change Filament... ;Display message
G91 ;Set to absolute positioning
G1 F200 E-80 ;retract 80mm of feed stock
M0 ;Wait for buton press( is a resume in octoprint)
M117 Extruding... ;Display message
G1 F200 E100 ;extrude 100mm of feed stock
M117 Press to return to print.. ;Display message
M0 ;Wait for buton press( is a resume in octoprint)
G4 P3000 ;Wait 3 secounds
G1 F200 E3 ;extrude 3mm of feed stock
G92 E374.79387 ;Set E back to last reading <-----This is where I would need to use M114 variable
G4 P300 ;Wait 1/3 secound
G90 ;Set back to relative positioning

Can you run C alongside or is there a way in M/G code to save that data and point to it? Any help is appreciated from anyone, and THANKS for the great plugin!

Doesn't work with folders

I'm using the dev branch of Octoprint which supports organizing files in folders. The MultiColor plugin only works on files in the root of the storage. It fails when using a file in any folder below that.

Advanced Option doesn't show

Hello,
I work fine with last release.
I try to change the advanced option for put the extruder at home but this windows doesn't show.
I'm sure help to improve.
Have a nice day.

Multicolor gcode..;

Hi
i have marlin 1.1.8
and M600 is activate
I have install Multicolors: https://plugins.octoprint.org/plugins/multi_colors/
But in advanced option i 've write : Layer
and
Add Gcode
i 've write
M117 Change Filament
M600
M0
but when i program to actiavte changement to layer 26 it s not run..My gcode is correct?
Thanks for your answer

doesn't work with cura gcode

Hello,

i use cura in repetier-host for slicing.

layer in gcode are :

;LAYER:10

so i try to user this regexp :
.LAYER:{layer}.

but no luck :/

can you help me ?

Injecting gcode failed

I have the plugin with default config settings, after updating to 1.3.6 I have been getting the error "Injecting GCODE failed. Replaced 0 out of 2 needed." after attempting to inject into a file. I tried editing the original along with trying to duplicate the file.

Subfolder support

Hi there,

it's me again. It seems files in subfolders aren't processed ("duplicate file" enabled)? I tried with 2 different files, it works in the root directory but in subfolders I don't even get a status message "... replaced".

Could you please check? Thanks very much!

Running version 1.0.13

Request: Layer Numbers

Sorry, not familiar enough with github to be sure I'm posting this in the correct place, but:

You already optionally allow the adding of "_multi" to the filename. Please allow a further option to add the layer number(s) of the change(s) as well, something along the lines of:

filename_multi(212).gcode
or
filename_multi(212,274,390,416).gcode

This would enable the user to quickly scan the filename to see how soon an upcoming filament change is coming (especially if it's been a while since the file was last printed and you're an old fart who's afraid his memory might soon be faiing) and be prepared, instead of wandering off for a cup of coffee and a bagel :)

Printer pauses at 1, 10, 11 ,12, etc.

Hey,
first of all thanks for the great plugin!
Today I found out that if I inject a pause code at layer number 1 it will also inject it at every layer number starting with a 1, eg. 11, 12, 13, etc. stopping at layer number 20.

I guess the code is just looking at the first digit and stops reading thereafter...

Cura multicolor

Hello, I downloaded your Multicolor plugin today. I'm a complete beginner so I can't really work with him yet. I want to ask if this plugin works for slicer cura and what are the plugin settings for this slicer. I would like the plugin to pause printing at the specified height [Iayers] and go 10mm head up, then I can eject the filament, give a new one, clean the nozzle and continue ... Thank you for your reply

Injecting GCODE failed

I am using an Anet a8 with merlin and s3d for slicer My g code is
G1 X91.892 Y91.740 E18.9511
G1 X91.855 Y91.740 F2880
G1 X91.740 Y91.855 F2880
G92 E0
G1 E-10.0000 F3600
; layer 5, Z = 0.784
; inner perimeter
G1 X91.400 Y91.400 F4800
G1 Z0.784 F1002
G1 E0.4000 F3600
G92 E0
G1 X108.600 Y91.400 E0.4559 F2700
G1 X108.600 Y108.600 E0.911

image

I can not insert the layer.

Thanks for your help.

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.