szech / mmm-uk-pollen-forecast

A module for MagicMirror that displays pollen data for your area in the UK.
MIT License
1 stars 1 forks source link

[Idea] Icons only #3

Closed carlywarly closed 4 years ago

carlywarly commented 4 years ago

I would also like to add the option to display the coloured icons only and not the forecast text. My wife just wants to know how miserable it's going to be and not really "bothered" why :)

I added the below to mmm-uk-pollen-forecast.js defaults: { IconsOnly: false, // only display icons ... },

and changed the line const html_dump = forecast_heading + forecast_table + forecast_text + forecast_issued ; to if (payload.config.IconsOnly) { var html_dump = forecast_heading + forecast_table + forecast_issued;
} else { var html_dump = forecast_heading + forecast_table + forecast_text + forecast_issued ; }

in node_helper.js

image

Again, thanks @szech for an awesome module.

Carl

szech commented 4 years ago

Agreed, it's good to have options.

szech commented 4 years ago

hi @carlywarly, the latest update addresses this. please update your local installation and config and report back. (the mirror may need to be restarted to pick up the changes)

carlywarly commented 4 years ago

perfect, again many thanks :)

Carl