51
Share Your GCode / Re: Laser Crosshair on CNC Complete How To For Under $40
« Last post by momofr83 on February 07, 2026, 10:59:47 AM »Yes, just did it two weeks ago.
function m334()
local inst = mc.mcGetInstance()
local topic = "mach4_momo"
local message = "Job's done ! Wake up !"
-- curl command
local cmd = string.format('curl -d "%s" http://ntfy.sh/%s', message, topic)
mc.mcCntlSetLastError(inst, "Execution : " .. cmd)
local success, reason, code = os.execute(cmd)
if success then
mc.mcCntlSetLastError(inst, "NTFY : Success (Code " .. tostring(code) .. ")")
else
mc.mcCntlSetLastError(inst, "NTFY : Error (" .. tostring(reason) .. ")")
end
end
if (mc.mcInEditor() == 1) then
m334()
end