config: wire TempSensor section from config.json to TempSensorSim

PlantFactory.create() now accepts sensor_config dict; extracts type and
kwargs, falls back to sigma=0.05/temp_offset=-0.15 defaults. brewpi.py
passes config.get('TempSensor', {}). Templates updated with full
TempSensor sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 19:27:04 +02:00
co-authored by Claude Sonnet 4.6
parent ca1953c9ee
commit 0156e689ca
4 changed files with 24 additions and 6 deletions
+6 -1
View File
@@ -1,7 +1,6 @@
{
"ambient_temperature": 20,
"Controller" : {
"stirrer_name": "pololu1376",
"plant_name": "real",
"pid_type": "Smith"
},
@@ -35,11 +34,17 @@
}
},
"Heater": {
"type": "hendi",
"port": "/dev/ttyUSB0",
"speed": "115200"
},
"Stirrer": {
"type": "pololu1376",
"port": "/dev/ttyACM0",
"speed": "115200"
},
"TempSensor": {
"type": "max31865",
"temp_offset": -0.15
}
}