diff --git a/web/calibrate/Light9Calibrate.ts b/web/calibrate/Light9Calibrate.ts --- a/web/calibrate/Light9Calibrate.ts +++ b/web/calibrate/Light9Calibrate.ts @@ -7,6 +7,8 @@ import { SyncedGraph } from "../SyncedGr import { FindSafeExposure } from "./FindSafeExposure"; import { Light9Camera } from "./Light9Camera"; import { XyPlot } from "./XyPlot"; +import { NamedNode } from "n3"; +import { showRoot } from "../show_specific"; export { RdfdbSyncedGraph } from "../RdfdbSyncedGraph"; export { Light9Camera } from "./Light9Camera"; export { XyPlot } from "./XyPlot"; @@ -32,12 +34,16 @@ export class Light9Calibrate extends Lit collector: CollectorClient = new CollectorClient("calibrate"); @query("light9-camera", true) cam?: Light9Camera; @query("xy-plot", true) plot?: XyPlot; - @state() device: string; + @state() device?: NamedNode; + @state() calibrationSession?: NamedNode; constructor() { super(); - this.device = "http://light9.bigasterisk.com/theater/vet/device/parR3"; getTopGraph().then((g) => { this.graph = g; + const U = this.graph.U(); + this.calibrationSession = U(showRoot + "/calibration/session1"); + this.device = U("dev:parR3"); + this.graph.patchObject(this.calibrationSession, U("rdf:type"), U(":CalibrationSession"), this.calibrationSession); }); } @@ -46,7 +52,8 @@ export class Light9Calibrate extends Lit
Device to calibrate: [ ${this.device} ]
+Calibration session; [ ${this.calibrationSession?.value} ]
+Device to calibrate: [ ${this.device?.value} ]