Selecting File
Closed this issue · 2 comments
Hi,
I want to select a GCODE file locally but I 'm getting like this.
Terminal
pi@octopi:~/octo-control $ pwd
/home/pi/octo-control
pi@octopi:~/octo-control $ ls
abs.gcode octo-control.py README.md settings-api-cors.png
pi@octopi:~/octo-control $ python3 octo-control.py --apikey 9DC66D773A15482C8D69A0E0E98DECEA --host 192.168.1.117 --port 80 --select-file abs.gcode
Error: 404 - File not found on 'local': abs.gcode
pi@octopi:~/octo-control $ python3 octo-control.py --apikey 9DC66D773A15482C8D69A0E0E98DECEA --host 192.168.1.117 --port 80 --select-file abs.gcode local
usage: octo-control.py [-h] --apikey APIKEY --host HOST --port PORT
[--printer-connected] [--printer-status] [--connect]
[--printer-port PRINTER_PORT] [--baudrate BAUDRATE]
[--profile PROFILE] [--save] [--autoconnect]
[--print-progress] [--total-time] [--left-time]
[--elapsed-time] [--printing-file]
[--send-gcode [GCODE [GCODE ...]]]
[--select-file FILE_NAME] [--print]
[--set-bed-temp BED_TEMP] [--get-bed-temp] [--ext-temp]
[--ext-target] [--pause] [--resume] [--start]
[--cancel] [--octo-version] [--version]
octo-control.py: error: unrecognized arguments: local
pi@octopi:~/octo-control $
By the way, I can use other functions (getting temps, sending gcodes, etc). Working on Pi 3 B+. What is wrong with my commands?
Thanks.
Hi @tarikcaliskan I don't have an octoprint instance right now to test but if I recall correctly the file has to be in the octoprint uploads
folder, that's where the file is searched for.
Hi @dragondgold,
As you said the GCODE file must be uploaded in Octoprint LOCAL
. So we can do this via web application with drag and drop the file or we can send the file via the terminal to Octoprint uploads
directory.
Octoprint uploads folder: /home/pi/.octoprint/uploads/
pi@octopi:~/octo-control $ mv abs.gcode ../.octoprint/uploads/
So that works for me, thank you so much for answering.
Happy printing.