Gas meters are read in raw volume (ft3 on our imperial meter, m3 on newer metric ones), never kWh — but tariff rates and CCL/RAB levy are all p/kWh. Add gas_volume_unit + gas_calorific_value to meters, and convert reading deltas to kWh in cost-calc.js using the standard UK gas-billing formula (matches the exact calculation printed on supplier invoices) before any cost math runs. Also fixes meter/readings pages showing raw gas dial readings mislabeled as "kWh" — they now show the actual physical unit (ft³/m³) via a new reading_unit_label, while computed consumption stays correctly labeled kWh. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public/icons | ||
| src | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||