Update configuration and health check response structure in POE project. Modified config.py to replace IP addresses for Modbus hosts, ensuring accurate sensor location mapping. Refactored health_check.py to standardize response formatting for sensor data, enhancing clarity in health and sensor status reporting. Updated README.md to reflect changes in MQTT topic structure, aligning with new data point definitions for temperature, humidity, and CO2 sensors.
This commit is contained in:
@ -7,9 +7,9 @@ MODBUS_HOSTS = [
|
||||
{"ip": "10.84.60.32", "location": "Warehouse-C", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.60.33", "location": "Dyeing-Kitchen", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.60.34", "location": "Second-Floor", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.60.35", "location": "Warehouse-A", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.60.36", "location": "Lab-Room", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.60.37", "location": "Office", "type": "cwt_co2"},
|
||||
{"ip": "10.84.48.100", "location": "Warehouse-A", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.48.101", "location": "Lab-Room", "type": "temperature_humidity"},
|
||||
{"ip": "10.84.48.102", "location": "Office", "type": "cwt_co2"},
|
||||
]
|
||||
MODBUS_PORT = 505
|
||||
UNIT_ID = 1
|
||||
|
Reference in New Issue
Block a user