# piNail

Raspberry Pi e-nail temperature controller.

This repo contains:

- Legacy root-level scripts (`piNail.py`, `logging_piNail.py`, etc.)
- Active modern implementation in `piNail2/` (Flask web UI + systemd runtime)
- Project docs (`CONTEXT.md`, `RUNBOOK.md`, hardware/theme notes)

## Active Runtime

- Service: `pinail2.service`
- App path on Pi: `/home/pi/piNail2`
- UI:
  - LAN: `http://192.168.0.159:5000`
  - Reverse proxy: `https://nail.sethpc.xyz`

## Main Features (`piNail2/`)

- PID heater control loop
- Real-time dashboard and chart
- Setpoint + PID tuning controls
- Autotune mode
- Safety cutoffs and watchdog behavior

## Quick Ops

```bash
ssh pinail "sudo systemctl status pinail2"
ssh pinail "sudo systemctl restart pinail2"
ssh pinail "sudo journalctl -u pinail2 -f"
```

See `RUNBOOK.md` for troubleshooting and `CONTEXT.md` for full architecture notes.
