add a setpoint indicator

This commit is contained in:
2026-04-02 19:13:35 +02:00
parent 80b66be4fc
commit 22d750e3ab
7 changed files with 250 additions and 148 deletions
+7
View File
@@ -89,10 +89,17 @@ export default class RotClient {
return this.bands.includes(band);
}
getBands(): number[] {
return this.bands;
}
turn(az: number): void {
fetch(`http://${this.ip}:88/`, {
body: `ROT=${az}`,
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
},
}).catch(() => {});
console.log(`Turning ${this.label} to ${az}°...`);
}