Commit Graph

19 Commits

Author SHA1 Message Date
0eeea7390e Update funtion def read_and_publish_cwt_co2 to only read CO2 value 2025-06-30 09:38:16 +00:00
fc370fe9c6 Add status offline 2025-06-24 09:31:26 +00:00
001b21faf8 Update tracker for status offline dont publish string or number 2025-06-24 09:29:40 +00:00
7ce3ff2d5b Refactor 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. 2025-06-24 13:23:09 +07:00
6824f81290 Change the publish format to mqtt serverserver 2025-06-24 11:43:29 +07:00
8dc518ce28 Refactor 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. 2025-06-24 11:32:38 +07:00
e83f614182 Update 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. 2025-06-24 10:42:24 +07:00
84e7babf7e Add 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. 2025-06-24 09:26:08 +07:00
7b8934b1d0 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. 2025-06-24 09:03:10 +07:00
d171066bbd Update 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. 2025-06-24 08:33:22 +07:00
9f8ac5b5c2 Refactor 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. 2025-06-24 08:27:29 +07:00
9b0f4f6236 Refactor 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. 2025-06-23 13:46:59 +07:00
8991a02bf5 Refactor 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. 2025-06-23 13:42:58 +07:00
c515b6d2e9 Update nomad job using new key 2025-06-23 06:28:38 +00:00
cb0ab4c4d3 Enhance 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. 2025-06-23 10:00:08 +07:00
b1e111e3f4 Refactor 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. 2025-06-23 09:39:32 +07:00
81ab6191da Enhance 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. 2025-06-23 09:14:40 +07:00
ad87c01f34 Push POE project 2025-05-29 11:06:22 +07:00
286ef3e7fe first commit 2025-05-29 11:05:45 +07:00