0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

get gcode-server url from config

This commit is contained in:
Simon Voordouw 2017-04-11 12:50:49 +02:00
parent a3468b85ce
commit fe5b2ec306
3 changed files with 4 additions and 2 deletions

View File

@ -190,7 +190,8 @@ function M.fetch_POST(request, response)
if not printer or not printer:hasSocket() then return end
local socket = printer:getId()
io.popen("print-fetch.lua " .. socket)
local remote = settings.get('gcode_server')
io.popen("print-fetch.lua " .. socket .. " " .. remote)
end
--requires: gcode(string) (the gcode to be appended)

View File

@ -6,7 +6,7 @@ local p3d = require("print3d")
local printer = p3d.getPrinter(arg[1])
local remote = "10.0.0.212:8080"
local remote = arg[2]
local finished = false

View File

@ -10,3 +10,4 @@ config settings 'system'
config settings 'general'
option printer_type 'ultimaker'
option gcode_server 'tranquil-meadow-94621.herokuapp.com'