You like the Dashing Hotness Widget and you like the text widget ? You will love the Dashing Hot Status Widget !
This widget is heavily inspired by the hotness widget except it will change its color based on the text displayed instead of the status text displayed (OK, WARNING, CRITICAL or UNKNOWN)
It is designed to create simple green/orange/red monitoring dashboards.
From your Dashing Dashboard's directory, use the command:
dashing install 796fe74d4cbf0cf42f47
Just include a widget with a data-view
of HotStatus
and you're nearly done !
Now you just have to send the that contains the status
and optionnally a message
.
If you want to create tiny HotStatus widget, you can set data-lightmode
to 1 in
the widget configuration so that the fields message
and updatedAt
are never shown.
As a bonus, this widget can also play a sound when status is modified.
Just add one or more data-*status*sound
attributes with the value set to an absolute
or relative url pointing to an audio file.
status must be one of ok, critical, warning or unknown.
Each time the status will change, the widget will play the audio file associated to the new status.
Example:
<div data-id="hotstatus" data-view="HotStatus" data-title="Hot Status widget" data-criticalsound="/mp3/critical.mp3"><
Special thanks to the Dashing Hotness Widget author as this widget is nearly forked from the Hotness widget.
The colour schemes and this widget are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.
My hot status does not change color on data
it does show the value though.