PROBLEM with sending g code program from repetier server from cmd console to biobot using curl -X..

I have a problem sending gcode program to biobot printer repetier server from cmd console using commands 
from bash script file : 

#!/bin/bash

API_KEY="b4b6dbb4-2f1c-4afb-82ba-e7a02f41afb9"
PRINTER_NAME="printer"
GCODE_COMMAND="G1 X10 Y10"

curl -X POST "http://localhost:3344/printer/send" \
-H "Content-Type: application/json" \
-H "apikey: $API_KEY" \
-d "{\"printer\":\"$PRINTER_NAME\", \"data\":\"$GCODE_COMMAND\"}"

I get a message : 

"The requested feature requires a user session with adequate permissions."

I had a message on the older version of the repetier server before

"error printer offline or usage error"

Can I ask for help ?


Comments

Sign In or Register to comment.