mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +01:00
get gcode-server url from config
This commit is contained in:
parent
a3468b85ce
commit
fe5b2ec306
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -10,3 +10,4 @@ config settings 'system'
|
||||
|
||||
config settings 'general'
|
||||
option printer_type 'ultimaker'
|
||||
option gcode_server 'tranquil-meadow-94621.herokuapp.com'
|
||||
|
Loading…
Reference in New Issue
Block a user