mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-28 01:01:12 -07:00
New recipe installing /usr/sbin/gfhome.py and /etc/gfhome.conf.sample (copied to /data/etc/gfhome.conf on first run). The runner signs the machine in with its fused identity, opens the WSS control channel with a held client reference (a clean disconnect is impossible through ws_connect), and drives the GFUIService dispatch table itself - minus print - so the service's camera homing sequence (settings -> hunt -> lid image -> corner move -> lid image) runs against the real hardware Machine. The service ends the sequence silently, so completion is a hunt plus at least one motion followed by a configurable quiet window; the lens is then re-referenced against the hall sensor for a deterministic Z. Lid/e-stop are checked before the session, print actions are refused, and exit codes distinguish configuration and connection failures from an incomplete homing. Installed in both images; invoked by the grblHAL controller for $H when homing_mode = gfcloud in /data/forgefirm.conf.
22 lines
578 B
BlitzBasic
22 lines
578 B
BlitzBasic
DESCRIPTION = "One-shot Glowforge web-service homing for ForgeFIRM"
|
|
HOMEPAGE = "https://github.com/ScottW514/forgefirm"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
PV = "0.1.0"
|
|
|
|
SRC_URI = " \
|
|
file://gfhome.py \
|
|
file://gfhome.conf.sample \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_install() {
|
|
install -Dm 0755 ${WORKDIR}/gfhome.py ${D}${sbindir}/gfhome.py
|
|
install -Dm 0600 ${WORKDIR}/gfhome.conf.sample ${D}${sysconfdir}/gfhome.conf.sample
|
|
}
|
|
|
|
RDEPENDS:${PN} += "python3-core python3-gfhardware python3-gfutilities"
|