Troubleshooting Laumas scale readings, RS485 serial communication, and calibrating gravimetric dosing.
Check USB-RS485 adapter:
ssh -i siloos_key [email protected] "ls -la /dev/ttyUSB*"
ssh -i siloos_key [email protected] "python3 diag_serial.py"
Connect to the bridge and observe weight updates:
const ws = new WebSocket('ws://10.0.124.90:8765/?auth=silo-secret');
ws.onmessage = (e) => {
const data = JSON.parse(e.data);
if (data.weight !== undefined) console.log('Weight:', data.weight, 'kg');
};
In DoseController.ts (precision dosing engine):
targetKg: Desired dose in kg (set via DrinkCustomizer stepper)tareWeightKg: Weight when brewing starts (auto-captured)flowRateKgPerS, valveDelayS, recentOvershootsKg[]