demeter
Autonomous Hydroponic Intelligencegit clone https://github.com/maydayv7/demeter
agent/Sentinel/Test.py (501B)
1# sentinel/test_sentinel.py
2from agent import SentinelAgent
3
4agent = SentinelAgent()
5
6sensor_window = {
7 "pH": [5.8, 5.9, 6.0],
8 "EC": [1.2, 1.3, 1.25],
9 "temp": [24, 25, 24.5],
10 "humidity": [70, 72, 71]
11}
12
13metadata = {
14 "crop": "lettuce",
15 "stage": "vegetative",
16 "rack": "A3"
17}
18
19fmu = agent.create_fmu("sample_plant.jpg", sensor_window, metadata)
20
21print("FMU ID:", fmu.id)
22print("Vector length:", len(fmu.vector))
23print("Quality:", fmu.quality)
24print("Metadata:", fmu.metadata)