You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use node-red and I need to update section definition, maxvalue and minvalue of my gauge radial.
I set new value but nothing happend.
To update my gaugeradial with new configurations I must change tab and return to the tab where is my gauge,
now I can see a correct visualization of section, maxvalue and minvalue.
Any ideas?
Best Regards,
This is my code in an edit template node:
<script src="/myjs/tween-min.js"></script>
<script src="/myjs/steelseries-min.js"></script>
<script>
var min_value_in;
var max_value_in;
var allarme_inf_in;
var allarme_sup_in;
var sections_p_in;
var P_in;
(function(scope){
scope.$watch('msg', function(msg) {
if (typeof(msg.minvalue_in) != "undefined") min_value_in = msg.minvalue_in;
if (typeof(msg.maxvalue_in) != "undefined") max_value_in = msg.maxvalue_in;
if (typeof(msg.allarme_inf_in) != "undefined") allarme_inf_in = msg.allarme_inf_in;
if (typeof(msg.allarme_sup_in) != "undefined") allarme_sup_in = msg.allarme_sup_in;
if (typeof(msg.value_in) != "undefined") P_in.setValueAnimated(msg.value_in);
});
})(scope);
P_in = new steelseries.Radial('P_in', {
gaugeType: steelseries.GaugeType.TYPE5,
size: 190,
section: [steelseries.Section(min_value_in, allarme_inf_in, 'red'),
steelseries.Section(allarme_inf_in, allarme_sup_in, 'green'),
steelseries.Section(allarme_sup_in, max_value_in, 'red') ],
// area: areas_p_in,
titleString: "P_in",
unitString: "bar",
threshold: allarme_inf_in,
minValue: min_value_in,
maxValue: max_value_in,
thresholdRising: false,
lcdVisible: true,
});
P_in.setFrameDesign(steelseries.FrameDesign.STEEL);
P_in.setPointerType(steelseries.PointerType.TYPE6);
P_in.setForegroundType(steelseries.ForegroundType.TYPE4);
P_in.setValueAnimated(0);
</script>
The text was updated successfully, but these errors were encountered:
Hi,
I use node-red and I need to update section definition, maxvalue and minvalue of my gauge radial.
I set new value but nothing happend.
To update my gaugeradial with new configurations I must change tab and return to the tab where is my gauge,
now I can see a correct visualization of section, maxvalue and minvalue.
Any ideas?
Best Regards,
This is my code in an edit template node:
<script src="/myjs/tween-min.js"></script> <script src="/myjs/steelseries-min.js"></script> <script> var min_value_in; var max_value_in; var allarme_inf_in; var allarme_sup_in; var sections_p_in; var P_in; (function(scope){ scope.$watch('msg', function(msg) { if (typeof(msg.minvalue_in) != "undefined") min_value_in = msg.minvalue_in; if (typeof(msg.maxvalue_in) != "undefined") max_value_in = msg.maxvalue_in; if (typeof(msg.allarme_inf_in) != "undefined") allarme_inf_in = msg.allarme_inf_in; if (typeof(msg.allarme_sup_in) != "undefined") allarme_sup_in = msg.allarme_sup_in; if (typeof(msg.value_in) != "undefined") P_in.setValueAnimated(msg.value_in); }); })(scope); P_in = new steelseries.Radial('P_in', { gaugeType: steelseries.GaugeType.TYPE5, size: 190, section: [steelseries.Section(min_value_in, allarme_inf_in, 'red'), steelseries.Section(allarme_inf_in, allarme_sup_in, 'green'), steelseries.Section(allarme_sup_in, max_value_in, 'red') ], // area: areas_p_in, titleString: "P_in", unitString: "bar", threshold: allarme_inf_in, minValue: min_value_in, maxValue: max_value_in, thresholdRising: false, lcdVisible: true, }); P_in.setFrameDesign(steelseries.FrameDesign.STEEL); P_in.setPointerType(steelseries.PointerType.TYPE6); P_in.setForegroundType(steelseries.ForegroundType.TYPE4); P_in.setValueAnimated(0); </script>The text was updated successfully, but these errors were encountered: