timdows / MMM-JsonTable

A module for the MagicMirror project which creates a table filled with a list gathered from a json request.
MIT License
25 stars 31 forks source link

Colors #57

Closed spookytheripper closed 2 months ago

spookytheripper commented 2 years ago

Hi,

First, thank you for creating this module, as a hobby programmer it made it very easy to implement my project into the MM without knowing anything about js.

I saw how enthusiastically you implemented the Font Awesome idea and I was hoping maybe you could help out with some basic colors.

I made a table to display Air quality information from a co2 sensor and i'd like to color code it so that if the CO2 levels are high the row is then displayed in yellow and red (depending on the levels). the other rows that display temperature and humidity should ideally stay white.

would it be possible to had a simple "color"-key to the json so that it is then changed in the table... "color":"yellow"

If not is there any other way i could implement this?

thank you

timdows commented 2 months ago

Quite late, but @SirStepheno has created this feature