Implement rain rate processing and website view#53
Open
cchwala wants to merge 1 commit into
Open
Conversation
Feature overview: - New /rain-rates page showing CML map with rain-rate-based coloring - Interactive time selector: Current, Last 1h, -2h to -1h, -3h to -2h, -4h to -3h, Last 1d (sum), -2d to -1d (sum) - Embedded Grafana dashboard for rain rate time series per CML - Multi-user support with Row-Level Security isolation Database changes: - Migration 010: Add cml_rain_data table for processed rain rates - Migration 011: Create cml_rain_stats aggregated view - Migration 012: Add cml_rain_data_1h continuous aggregate with compression - RLS policies applied to all rain data tables/views Processor service (new): - Modular workflow architecture with registry pattern - pycomlink-based processing: TL->wet/dry->baseline->WAA->rain rate - Configurable per-user settings (poll interval, data window) - State management for tracking last processed time - Backfill script for historical data processing in batches Webserver enhancements: - /api/rain-stats endpoint with offset parameter for time windows - /api/cml-map endpoint for CML metadata - /rain-rates route with Leaflet.js map visualization - Resizable Grafana iframe panel Grafana integration: - Provisioned dashboard (UID: cml-rain-rates) - Time series panel querying cml_rain_data_secure view - Auto-refresh every 10s, default range 6h Docker Compose updates: - Added processor service with persistent state volume - Archive generator/loader services for historical data - MNO simulators for demo_openmrg and demo_orange_cameroun Documentation: - RAIN_PROCESSING_IMPLEMENTATION.md with architecture details - Jupyter notebook for validation and debugging
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
==========================================
+ Coverage 85.42% 85.66% +0.24%
==========================================
Files 28 24 -4
Lines 3012 2693 -319
==========================================
- Hits 2573 2307 -266
+ Misses 439 386 -53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature overview:
Database changes:
Processor service (new):
Webserver enhancements:
Grafana integration:
Docker Compose updates:
Documentation: