Module:Weather box/colors can be used to produce a background color in a table cell, based off a given number. Insert {{#invoke:Weather box/colors|color_s|0}}, with a number from the hours in a 30-day month table above as the first parameter, into a style statement.

Example
{| class="wikitable"
|-
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|37}}"|450
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|279}}"|3,400
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|522}}"|6,350
|}

Will produce

450 3,400 6,350
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Weather_box/samples/sunshine&oldid=713898" වෙතින් සම්ප්‍රවේශනය කෙරිණි