From 3244806de2fceaf2ea6d28168abfffe51bc19da8 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Fri, 4 Dec 2026 17:51:52 +0100 Subject: [PATCH] Docs: power calculator scales the solar yield to what a real installation delivers (45 %) Changelog: - Co-Authored-By: Claude Opus 5.5 --- docs/_js/power-calculator.js | 9 +++++---- docs/power-calculator.md | 4 +++- docs/power-data.json | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/_js/power-calculator.js b/docs/_js/power-calculator.js index de34ee1d8..cc68fafef 100644 --- a/docs/_js/power-calculator.js +++ b/docs/_js/power-calculator.js @@ -22,7 +22,7 @@ preamble: 'preamble (symbols)', tx_dbm: 'TX power (dBm)', tx_ma: 'TX current (mA), estimate', rx_extra: 'extra current while receiving (mA), estimate', usable_pct: 'usable capacity (%)', voltage: 'battery voltage (V)', - charge_eff_pct: 'charging efficiency (%), estimate', month: 'Month', orient: 'Panel faces', + charge_eff_pct: 'charging efficiency (%), estimate', site_pct: 'real installation (% of the model)', month: 'Month', orient: 'Panel faces', charger: 'charger', chem: 'battery chemistry', dark_days: 'days without sun', dark_ok: '{d} days without sun: the battery carries them ({p} % left)', dark_bad: '{d} days without sun: the battery lasts only {n}', @@ -56,7 +56,7 @@ preamble: 'preambule (symboly)', tx_dbm: 'vysílací výkon (dBm)', tx_ma: 'proud při vysílání (mA), odhad', rx_extra: 'proud navíc při příjmu (mA), odhad', usable_pct: 'využitelná kapacita (%)', voltage: 'napětí baterie (V)', - charge_eff_pct: 'účinnost nabíjení (%), odhad', month: 'Měsíc', orient: 'Panel míří na', + charge_eff_pct: 'účinnost nabíjení (%), odhad', site_pct: 'reálná instalace (% modelu)', month: 'Měsíc', orient: 'Panel míří na', charger: 'nabíječ', chem: 'chemie článku', dark_days: 'dny bez slunce', dark_ok: 'po {d} dnech bez slunce zbude v baterii {p} %', dark_bad: 'bez slunce vydrží baterie jen {n} (zadáno {d})', @@ -120,7 +120,7 @@ sf: td.sf, bw: td.bw, cr: td.cr, preamble: td.preamble, tx_dbm: td.tx_dbm, rx_extra: d.traffic.rx_extra.value, mah: b.mah, usable_pct: b.usable_pct, voltage: b.voltage, - panel_w: b.panel_w, charge_eff_pct: b.charge_eff_pct, + panel_w: b.panel_w, charge_eff_pct: b.charge_eff_pct, site_pct: d.battery.site_pct, month: d.solar.default_month, orient: d.solar.orientation[0].id, sensors: {}, charger: d.solar.chargers[0].id, chem: d.solar.chemistries[0].id, dark_days: d.solar.dark_days }; @@ -229,7 +229,7 @@ var s = this.s, so = this.d.solar; var o = so.orientation.filter(function (x) { return x.id === s.orient; })[0]; var f = o.factor_month ? o.factor_month[m - 1] : o.factor; - return s.panel_w * so.sun_h[m - 1] * f * (s.charge_eff_pct / 100) / s.voltage * 1000; + return s.panel_w * so.sun_h[m - 1] * f * (s.charge_eff_pct / 100) * (s.site_pct / 100) / s.voltage * 1000; }; P.monthName = function (m) { return new Date(2026, m - 1, 15).toLocaleString(this.lang === 'cs' ? 'cs-CZ' : 'en-GB', { month: 'long' }); @@ -490,6 +490,7 @@ grid.appendChild(this.field(this.t('voltage'), this.num('voltage', { step: 0.1 }))); grid.appendChild(this.field(this.t('charger'), this.select('charger', d.solar.chargers.map(function (c) { return { v: c.id, t: self.n(c) + ' ' + c.eff_pct + ' %' }; })))); grid.appendChild(this.field(this.t('charge_eff_pct'), this.num('charge_eff_pct', { step: 5 }))); + grid.appendChild(this.field(this.t('site_pct'), this.num('site_pct', { step: 5 }))); adv.appendChild(grid); adv.appendChild(el('p', { 'class': 'pc-hint', text: this.t('override_hint') })); form.appendChild(adv); diff --git a/docs/power-calculator.md b/docs/power-calculator.md index 91d946ad9..8c8eb4ae2 100644 --- a/docs/power-calculator.md +++ b/docs/power-calculator.md @@ -42,7 +42,9 @@ power.md. for Prague at the optimal tilt (December 1.5 h, June 5.6 h a day); the calculator opens on December, the worst month, and shows the balance of all twelve. East/west is taken as 60 %, heavy shade 30 %, a flat panel that -snow covers 20-30 % in winter (estimates). +snow covers 20-30 % in winter (estimates). A real installation delivers about + 45 % of that model (calibrated on two of our solar nodes, November 2026; + under *Advanced*). **rxps:** saves about 2 mA and hears fewer weak packets (13-28 % below 0 dB SNR, [details](power.md#rx-duty-cycle-rxps)). With other repeaters around that diff --git a/docs/power-data.json b/docs/power-data.json index a25591dce..2f1c2356d 100644 --- a/docs/power-data.json +++ b/docs/power-data.json @@ -306,7 +306,9 @@ "battery": { "_comment": "defaults of the battery inputs (a board's defaults win); efficiency and voltage are assumptions", "mah": 3000, "usable_pct": 80, "voltage": 3.7, - "panel_w": 0, "charge_eff_pct": 50 + "panel_w": 0, "charge_eff_pct": 50, + "site_pct": 45, + "_site_pct": "share of the modelled panel yield a real installation delivers (dirt, horizon, panel temperature, fog/rime, full-cell cut-off): calibrated on two of our solar repeaters in November 2026 (south and east panel, frost days excluded), both about 0.45 of this model" }, "solar": { "_comment": [