XavierBerger / RPi-Monitor

Real time monitoring for embedded devices
https://xavierberger.github.io/RPi-Monitor-docs/index.html
GNU General Public License v3.0
1.16k stars 176 forks source link

Why does Badge not work? #394

Closed racedowling closed 2 years ago

racedowling commented 2 years ago

I want to display a badge only when data.throttled is equal to the string danger but I cannot get it to work.

I've tried various ways of getting this. the latest is Badge(data.throttled,"==danger", "WARNING","danger") It just displays that as text instead of evaulating.

racedowling commented 2 years ago

The syntax that eventually worked was "='danger'"