Are you dashing? Are you hot? Then you need the Dashing Hotness Widget!
See the blog post for more details.
This widget is similar to the basic Number widget, except that the entire widget changes colour based on the value displayed. It is designed to draw attention to metrics which need attention.
Good for metrics which are monitored for their 'good' (cold) or 'bad' (hot) status.
Not good for metrics which don't have a pre-determined range, or aren't that important.
From your Dashing Dashboard's directory, use the command:
dashing install 6246149
Include a widget with a data-view
of Hotness
. The widget must include a
data-cool
and data-warm
value to work properly.
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="synergy" data-view="Hotness" data-title="Synergy Hotness" data-cool="20" data-warm="90"></div>
</li>
See below for a full list of fields this widget uses.
- data-id: Like all widgets, you must include an identifier so that your jobs can update the value.
- data-cool: Anything below this value will show the 'cold' colour. It should be set high enough to include all the 'good' range of value for this metric.
- data-warm: Anything above this value will show the 'hot' colour. It should be set just below the 'bad' range of value for this metric - ie. those that need attention!
- data-title: Optional title to show in the widget box (above the value).
- data-prefix: Optional prefix to the value.
- data-suffix: Optional suffix to the value.
The default colour scheme is Sweet Lolly by nekyo.
The file SCSS file has an alternative colour scheme which should (I hope!) be colour-blindness friendly (going from blue to yellow) called 400 Lovers by Tzadkiel.
To use this scheme, just uncomment the last 5 lines of the SCSS file
The colour schemes and this widget are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.
Hmm I tried that and I can't seem to get it to work. I tried both of those but it doesn't seem like it's binding or using the values I send to calculate the warm and cool values.
For testing, I add this to the .html file so the widgets will display their warm and cool values
If I have a value of say 15 in my widget and initially set my cool to 10 and warm to 25, it displays green and also shows the warm and cool values on my widget.
In my job file, I then use the following
send_event('test', cool:0, warm:5)
This changes the values for warm and cool displayed on my widget to 0 and 5. However the widget goes black for a second but then simply returns to green but the warm and cool values stay the same.