001b21faf8Update tracker for status offline dont publish string or numberBân Nguyễn Duy2025-06-24 09:29:40 +00:00
7ce3ff2d5bRefactor MQTT alert topic structure in sensor_tracker.py to simplify the format by removing sensor type differentiation. Updated offline status publishing to align with the new topic structure, ensuring consistency across sensor types and enhancing clarity in data representation.
Naab2k3
2025-06-24 13:23:09 +07:00
6824f81290Change the publish format to mqtt serverserver
Naab2k3
2025-06-24 11:43:29 +07:00
8dc518ce28Refactor MQTT topic structure in sensor_bridge.py to adopt a nested format for temperature, humidity, and CO2 data. Updated publishing methods to reflect the new tree structure, enhancing data organization and clarity in sensor reporting.
Naab2k3
2025-06-24 11:32:38 +07:00
e83f614182Update README.md and sensor_bridge.py to reflect changes in MQTT topic structure. Transitioned from a hierarchical to a flat topic structure for improved organization, simplifying the topic format for each location. Adjusted sensor publishing methods in sensor_bridge.py to align with the new topic structure, ensuring accurate data representation for temperature, humidity, and CO2 sensors.
Naab2k3
2025-06-24 10:42:24 +07:00
84e7babf7eAdd timezone configuration and update health check timestamps in POE project. Introduced LOCAL_TIMEZONE in config.py to support timezone offset configuration. Updated health_check.py, sensor_bridge.py, and sensor_tracker.py to utilize LOCAL_TIMEZONE for accurate timestamping in health responses and sensor data publishing. Enhanced README.md to document the new TIMEZONE_OFFSET environment variable, ensuring clarity for configuration options.
Naab2k3
2025-06-24 09:26:08 +07:00
7b8934b1d0Update 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.
Naab2k3
2025-06-24 09:03:10 +07:00
d171066bbdUpdate README.md to reflect enhancements in POE Sensor - Modbus to MQTT Bridge Service. Expanded project description to include support for CO2 sensors and comprehensive monitoring features. Revised project structure and configuration details, including multi-sensor support and environment variable configuration. Enhanced documentation on MQTT topic structure, health check responses, and deployment options, ensuring clarity for users and contributors.
Naab2k3
2025-06-24 08:33:22 +07:00
9f8ac5b5c2Refactor health check server implementation in POE project. Renamed HealthCheckHandler to SimpleHealthHandler for clarity, improved error handling in health response and sensor status retrieval, and added default health response for root path. Enhanced server startup process with retry logic and introduced a SimpleTCPHealthServer as a fallback. Updated main.py to initialize health server non-blocking and ensure graceful shutdown. Adjusted Nomad job configuration for health check parameters and removed unnecessary health check definitions to prevent unhealthy issues.
Naab2k3
2025-06-24 08:27:29 +07:00
9b0f4f6236Refactor health check functionality in POE project. Removed readiness endpoint from health_check.py and improved error handling for sensor status retrieval. Updated logging to reduce noise and adjusted health check server startup process in main.py. Modified Nomad job configuration for network mode and resource allocation, enhancing overall system performance and stability.
Naab2k3
2025-06-23 13:46:59 +07:00
8991a02bf5Refactor configuration and health check server in POE project. Updated config.py to use environment variables for MQTT and health check settings, enhancing flexibility. Improved health check server in health_check.py with readiness endpoint and better error handling. Main application in main.py now includes graceful shutdown handling and health server verification. Adjusted Nomad job configuration for improved resource allocation and health check parameters.
Naab2k3
2025-06-23 13:42:58 +07:00
cb0ab4c4d3Enhance health check functionality and logging in POE project. Added detailed sensor status reporting to health check response, improved error handling during server startup, and updated logging format for better visibility. Adjusted health check parameters in Nomad configuration for increased stability and monitoring accuracy.
Naab2k3
2025-06-23 10:00:08 +07:00
b1e111e3f4Refactor sensor data publishing and health check server configuration. Updated MQTT topic structure for individual data points, improved error handling, and added garbage collection to manage memory. Enhanced logging for health check server accessibility and sensor status updates.
Naab2k3
2025-06-23 09:39:32 +07:00
81ab6191daEnhance POE project with health check server, sensor tracking, and dynamic MQTT topic structure. Updated configuration for multiple Modbus hosts and added alerting system for sensor failures and recoveries. Improved logging and error handling throughout the application.
Naab2k3
2025-06-23 09:14:40 +07:00