# Workcell Dashboard

Live workcell management dashboard for the Adom platform. Renders in a Hydrogen webview tab and polls state every 300ms.

## Features

- **Workcell cards** — status badge, health bar, uptime, temp, last event for each workcell
- **Molecules table** — all molecules across all workcells with cycle counts and type tags
- **Camera control** — D-pad to move the gantry camera in mm, live X/Y position readout
- **Activity log** — timestamped event feed with info / warning / error / levels
- **Overview stats** — total cycles, online count, alert count, active molecule count

## Running

```bash
node server.js
```

Server runs on port 7420. Access via the Hydrogen proxy URL.

## API

All user actions are independently triggerable via HTTP:

```bash
# Get full state
curl http://localhost:7420/state

# Move camera
curl -X POST http://localhost:7420/camera/move \
  -H 'Content-Type: application/json' \
  -d '{"dx": 30, "dy": 0}'

# Return camera home
curl -X POST http://localhost:7420/camera/home

# Shutdown
curl -X POST http://localhost:7420/shutdown
```
