Automation (UDP)
bernie Command
The bernie command checks, estimates, exports and engraves a project from a terminal or a script, on a USB or network laser, Bernie Link, OctoPrint or Duet.
Bernie without a window: from a terminal or a script, the bernie command checks, estimates, exports and engraves a .bernie project with the same preparation as the app (device, check before sending, no-go zones, variable text). It ships with Bernie Link (installed as /usr/local/bin/bernie by the installer, bernie.exe in the Windows archive).
bernie verifier project.bernie: check before sending — blocking problems (✗), warnings (⚠); exits with an error if there is a blocking problem.bernie estimer project.bernie: duration, laser-on time, lengths, bounds.bernie gcode project.bernie -o job.gcode: the job’s G-code (on the output without-o).bernie graver project.bernie --ouiand a target:--port /dev/ttyUSB0(GRBL laser over USB,--debitfor the speed),--reseau 192.168.1.50(networked GRBL),--hub bernie-link.local --code CODE(shared laser: a project is prepared by Bernie Link with the device it keeps),--octoprint http://octopi.local --cle KEY,--duet http://duet.local [--mot-de-passe PASSWORD]. A.gcodefile goes as is.--ouiis required: without it, nothing is sent. The command follows the progress to the end; Ctrl-C stops the job. English option names also work (--yes,--device,--serial,--network,--key,--password).- Device:
--appareil(name in the library,.jsonfile of a device, or catalog identifier —bernie machines), otherwise the one kept by the project, looked up in the Mac app’s library or in--bibliotheque devices.json|bundle.bernielot(a settings bundle exported from Bernie Studio or the desktop app). - Variable text:
--serie 42(counter, serial numbers),--csv data.csv;--nomgives the job name. --json: results in JSON (one line per progress update); exit codes 0 (done), 1 (refused), 2 (malformed command).bernie appareils,bernie machines,bernie portslist the devices, the catalog machines and the serial ports.
Projects sent to Bernie Link
POST /hub/v1/project (.bernie file as the body, ?serial= for the variable text counter) has Bernie Link prepare the job with the device it keeps; the job then waits for its confirmation like the others. Details and examples: docs/API.md.
This manual is also built into Bernie: press F1, or open the Help menu, to read the topic for what you are doing. A mistake, a missing answer? Tell us
Try it in Bernie, for free.
Free laser engraving and cutting software for diode, CO2, fiber and galvo lasers. Windows, Mac, Linux, iPad, iPhone and in the browser.