Fellow Swedes and more specifically, you who suffer from the yearly ailment of pollen allergies and thus might also be using JohNan’s excellent pollenprognos-integration,
@krissen Nice work.
It looks nice but there is a couple of glitches.
First it doesn’t seem to handle the value -1 which is “Ingen information”.
The second is that it hides all allergens with the value 0, Inga pollen. It should be selectable in the configuration.
First it doesn’t seem to handle the value -1 which is “Ingen information”.
Rudimentary fix implemented in the latest release. Hope it works for you; it did in my own testing. “-1” is really a NA value, I think. The latest release filters these to “0”. A proper way would be to add text and image for NA. Feel free open an issue to remind me. Also, PR:s are welcomed!
The second is that it hides all allergens with the value 0, Inga pollen. It should be selectable in the configuration.
Rudimentary support has been added, use variable pollen_threshold. Default value is 1, for the same behaviour as before. Set to 0 to show all, or any other number to filter. Currently, it checks if there is higher value than pollen_threshold in any coming days (1-4), regardless of days_to_show variable. Better support would be if it would only check days_to_show. Feel free open an issue to remind me. Also, PR:s are welcomed!
Better support for -1 has been added in the most recent release (v1.0.3). It now tells you there is no information rather than fooling you into believing that there wouldn’t be any.
Also considered implementing a threshold according to days to show, but I kind of prefer it as it is. Just let me know if anyone would prefer it otherwise.
Great card! Thanks a bunch! How would I go about changing the font-weight of the header “Idag”, “Imorgon”, “Övermorgon”? I’m using card mod, and can’t seem to find the element to style. Kind regards.