On this page
Athéna Resident agent on a Raspberry Pi 5

Proof — Connected greenhouse kit

What is actually executed for this project, recalculated when this page is built.

Proof recalculated on 2026-11-21

What is tested

The kit is tested on logic, not on hardware: the SHT31 CRC, out-of-range rejection, the primary key of the database, and the watering decision conditions. These tests run on any machine.

What is executed

The commands below are executed when this page is built. They are not copied by hand: if the code changes, the proof changes or the build fails.

The limits

They are at the bottom of the page, under “What is not proven”. That is deliberately the last block, not a footnote in small print.

Tests

store/products/kit-serre/tests/test_kit.py

18 tests — OK

python3 -m unittest discover -s store/products/kit-serre/tests -q
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
<frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
rejeté (hors plage -10.0..60.0) : serre/air/temperature = 999.0
----------------------------------------------------------------------
Ran 18 tests in 0.141s

OK
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute

Counters

Countersvaleur
Mesures en base serre120

Commands

Chaîne complète — publication MQTT, collecteur, SQLite

python3 store/products/kit-serre/examples/preuve.py
publiées : 5 mesures valides, 2 cas limites (valeur hors plage, topic inconnu)
en base  : 5 mesure(s)
  serre/air/humidite           58.0
  serre/air/temperature        23.4
  serre/lux                    12430.0
  serre/sol/humidite           41.0
  serre/sol/temperature        18.9
rejets constatés :
  rejeté (hors plage -10.0..60.0) : serre/air/temperature = 999.0

Décision d'arrosage — sol sec, cuve pleine, midi

python3 store/products/kit-serre/examples/decision.py --sol 20 --cuve 1 --depuis 900 --heure 12
sol 20.0 % (seuil 25 %), cuve pleine, dernier cycle il y a 900 s
heure locale 12h00 (fenêtre 6h–21h)
conditions :
  sol < 25 %          : oui
  cuve pleine              : oui
  dans la fenêtre horaire  : oui
  délai >= 600 s      : oui
décision : POMPE ON

Décision d'arrosage — cuve vide

python3 store/products/kit-serre/examples/decision.py --sol 20 --cuve 0 --depuis 900 --heure 12
sol 20.0 % (seuil 25 %), cuve vide, dernier cycle il y a 900 s
heure locale 12h00 (fenêtre 6h–21h)
conditions :
  sol < 25 %          : oui
  cuve pleine              : non
  dans la fenêtre horaire  : oui
  délai >= 600 s      : oui
décision : POMPE OFF

Files

fichiersizechecksum
ressources/kit-serre-guide.pdf 61.7 Ko cd1133de5168
ressources/kit-serre-v1.0.tar.gz 72.7 Ko 5e36149467a8

Images

Relevé des dernières 24 h (base de démonstration)
Relevé des dernières 24 h (base de démonstration)

What is not proven