From f18e103144a71f5d60cfe4bb902ff82772985648 Mon Sep 17 00:00:00 2001 From: smallsolar Date: Tue, 3 Dec 2024 20:00:39 +0000 Subject: [PATCH] Add custom_50x/readme.MD --- custom_50x/readme.MD | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 custom_50x/readme.MD diff --git a/custom_50x/readme.MD b/custom_50x/readme.MD new file mode 100644 index 0000000..f831493 --- /dev/null +++ b/custom_50x/readme.MD @@ -0,0 +1,7 @@ +## Introduction + +When the main solarcene.community server is offline a custom 50x html error page is served by the gateway NanoPi so that a visitor doesn't just get an error page. The custom page is generated by the solar monitoring script (`solar_monitor.py`) and is written every 10 minutes. The page itself contains some general stats and a bit of information to explain the situation. + +## Design + +The `write_html()` function grabs the latest solar data (from the vedirect serial connection to the Victron SmartSolar MPPT Charger) which are stored in the redis database. It then simply overwrites the custom file with hardcoded html. I've got a scheduler that just runs this job every 10 minutes \ No newline at end of file