kantlivelong / OctoPrint-GCodeSystemCommands

Define G-Code commands that execute local system commands.
GNU Affero General Public License v3.0
37 stars 20 forks source link

wont work #19

Closed 00ihsan closed 4 years ago

00ihsan commented 4 years ago

What were you doing?

i made a OCTO100 GCODE command and linked it to /home/pi/Power_on.sh in that file i have this : curl -X POST https://someLink.com after saving and rebooting the gcode command wont work. but when i run the script it sends a post request. so it is somewhere in this application.

  1. ...
  2. ...
  3. ...

What did you expect to happen?

the smart plug to be turned on.

What happened instead?

nothing

Version of OctoPrint-GCodeSystemCommands

1.0.1

Operating System running OctoPrint

raspbian latest from octoprint website OctoPrint version : 1.4.0 OctoPi version : 0.17.0

Printer model & used firmware incl. version

Ender 3 Pro motherboard v1.4.4 firmware 1.1.6.2

Link to octoprint.log with octoprnt.plugins.gcodesystemcommands set to DEBUG

i cant set it to debug

kantlivelong commented 4 years ago

What's preventing you from sending debug logs?

00ihsan commented 4 years ago

I don’t know how to set it in debug mode.

Op 10 mei 2020 om 19:15 heeft Shawn Bruce notifications@github.com het volgende geschreven:

 What's preventing you from sending debug logs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

kantlivelong commented 4 years ago

https://docs.octoprint.org/en/master/bundledplugins/logging.html

00ihsan commented 4 years ago

~REMOVED~

kantlivelong commented 4 years ago

Removed the log as it seemed to contain some sensitive info. After looking at the logfile supplied it seems like it is executing the commands and returning success. Cannot say if the desired outcome is achieved but seems like the plugin is working as intended.

2020-05-10 16:14:44,742 - octoprint.plugins.gcodesystemcommands - INFO - Add command definition OCTO100 = curl -X POST https://REMOVED
...
2020-05-10 16:19:34,589 - octoprint.plugins.gcodesystemcommands - INFO - Executing command ID: 100
2020-05-10 16:19:35,026 - octoprint.plugins.gcodesystemcommands - INFO - Command ID 100 returned: 0
kantlivelong commented 4 years ago

I'll also note that debug logging was not enabled OR nothing was run after enabling debug logging.

00ihsan commented 4 years ago

Later in the log i make a script. Doesnt seem to run that script tho?

kantlivelong commented 4 years ago

Later in the log i make a script. Doesnt seem to run that script tho?

Returns success.

2020-05-10 16:46:16,847 - octoprint.plugins.gcodesystemcommands - INFO - Add command definition OCTO100 = /home/pi/Power_on.sh
...
2020-05-10 17:12:12,787 - octoprint.plugins.gcodesystemcommands - INFO - Executing command ID: 100
2020-05-10 17:12:13,235 - octoprint.plugins.gcodesystemcommands - INFO - Command ID 100 returned: 0
00ihsan commented 4 years ago

Strange. Script works. This works. What doesn’t work?

kantlivelong commented 4 years ago

Not sure but the discussion doesn't really belong here. Try the OctoPrint Forums or Discord

Closing.

00ihsan commented 4 years ago

When i send OCTO100 in cura monitor tab, it works! Great plugin btw! But when its in the gcode it wont detect the OCTO100 command. I think octoprint sends it then to the printer.

kantlivelong commented 4 years ago

Would need octoprint.log and serial.log showing the issue.

00ihsan commented 4 years ago

serial (2).log

00ihsan commented 4 years ago

test STL: https://we.tl/t-0vYXWHhsWZ

00ihsan commented 4 years ago

i have found the problem. it's cura related. i have to manualy insert the gcode before the bed heads up. the start gcode runs after that.

00ihsan commented 4 years ago

solved it. tnx for your help!