You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,7 +382,10 @@ Returns the current config for a device. A default config is created if none exi
382
382
"beecounter_night_start_minute": 1200,
383
383
"beecounter_night_end_minute": 360,
384
384
"beecounter_night_max_traffic": 0,
385
-
"timezone": ""
385
+
"timezone": "",
386
+
"beecounter_bank1_enabled": true,
387
+
"beecounter_bank2_enabled": true,
388
+
"beecounter_bank3_enabled": true
386
389
}
387
390
```
388
391
@@ -400,6 +403,33 @@ next cycle rather than waiting for an unrelated edit to bump the version.
400
403
|`beecounter_night_max_traffic`| Crossings (in + out) in the last upload cycle above which night mode is postponed to the next cycle. `0` disables the check. |
401
404
|`timezone`| POSIX TZ string, e.g. `CET-1CEST,M3.5.0,M10.5.0/3`. Empty means UTC. |
402
405
406
+
The `beecounter_bank*_enabled` fields configure **HiveTraffic emitter banks** —
407
+
see [hivetraffic-bee-counter.md](hivetraffic-bee-counter.md#emitter-banks).
408
+
Applied on every config fetch for the same reason the night-mode fields are.
409
+
410
+
| Field | Meaning |
411
+
| --- | --- |
412
+
|`beecounter_bank1_enabled`| Emitter MOSFET for gates 00–07. `true` by default. |
413
+
|`beecounter_bank2_enabled`| Emitter MOSFET for gates 10–17. `true` by default. |
414
+
|`beecounter_bank3_enabled`| Emitter MOSFET for gates 20–27. `true` by default. |
415
+
416
+
A counter's 48 IR emitters sit behind three MOSFETs, one per group of eight
417
+
gates, and they dominate its power draw. Measured on the counter's 3.3 V rail:
418
+
one bank ~0.14 A, two ~0.22 A, three ~0.30 A — roughly 80 mA per bank on top of
419
+
a ~60 mA floor. Switching one off stops its eight gates being counted at all, so
420
+
the totals drop in proportion; the counter reports the mask back as
421
+
`hives[].bee_counter.banks` so a deliberately dark bank is distinguishable from
422
+
a failed one.
423
+
424
+
A PATCH that would leave **all three** disabled is rejected with `400`. The
425
+
counter refuses a mask of zero outright — it keeps the mask it had — so storing
426
+
one would only leave the dashboard and the hardware permanently disagreeing. A
427
+
counter that should count nothing is unpaired instead.
428
+
429
+
The device requires HiveTraffic firmware 0.3.0 (wire revision 5) or newer to
430
+
apply the mask; on an older counter the write is skipped and all three banks
431
+
stay on.
432
+
403
433
`timezone` is load-bearing rather than cosmetic. The device clock is UTC, so
404
434
without it a window entered as 20:00 fires at 21:00 local in summer — discarding
405
435
an hour of foraging on exactly the long evenings that have most of it. It is a
0 commit comments