And here is the next version!
This version is different from previous versions!
I modified the main setup. You can now choose in main setup to enable/disable if the rain rate from local database should affect the interactive banner.
You need to enter several values:
yes/no for enabling/disabling the interaction with banner.
The count of entries in database to calculate the average rain rate. This value depends to the interval, your data is written to database. Usually the interval I know is 5 minutes. If you write in any other interval, you need to set this value according your needs.
As an example (5 min interval) if you set this value to 3: last entry was 04:05pm, so the entries 04:05pm, 04:00pm and 03:55pm are used for calculation. If you set the value to 5 entries from 04:05pm, 04:00pm, 03:55pm, 03:50pm, 03:45pm are used for the calculation.
But: this means if rains stops at 04:05pm, it will last until 04:25pm that rain disappears from banner (last 5 entries: 04:25pm, 04:20pm, 04:15pm, 04:10pm, 04:05pm (all values must be 0)!
Using a value of 3 the rain stops at 04:15pm at banner.
Conclusion: the more entries you use, the more is the delay at banner.
Drizzle rate: up to this value rain is shown at banner as drizzle (few drops).
Lightrain rate: up to this value rain is shown at banner as light rain (more drops).
Every average rain rate higher will be shown as rain in banner (highest count of drops).
This is individual to the region you live. But this modification allows you to change the values as needed.
The archive contains 3 files:
header.php -> to be placed in /template
setup.php and createConfig.php -> to be placed in /template/install
Do a backup of your current files prior installing the new ones!
As always: use at your own risk

.
Thank you for feedback.
Regards