I've installed the Steel series Gauges and they seem to be working fine,
I'd like to customise my default page to have the temperature gauge load
with the inside temperature loaded as default
the examples show the temperature gauge with a radio option to be able to
change between either gauges, I have tried changing the checked option and
it does not seem to make a difference,
it always shows the outdoor temperature by default
<div class="gauge">
<div id="tip_0">
<canvas id="canvas_temp" class="gaugeSizeSml"
></canvas>
<input id="rad_temp1" type="radio"
name="rad_temp" value="out" onclick="gauges.doTemp(this);"><label
id="lab_temp1" for="rad_temp1">Outside</label>
<input id="rad_temp2" type="radio"
name="rad_temp" value="in" *checked *onclick="gauges.doTemp(this);"><label
id="lab_temp2" for="rad_temp2">Inside</label>
</div>
</div>
or is there another easy way like something like this?
<canvas id="canvas_temp" class="gaugeSizeSml" onload="Inside" ></canvas>
in the gauge.js file I have found this section
// temperature
if (gaugeTemp) {
if ($('#rad_temp1').is(':checked')) {
gaugeTemp.data.title = strings.temp_title_out;
} else {
gaugeTemp.data.title = strings.temp_title_in;
}
gaugeTemp.gauge.setTitleString(gaugeTemp.data.title);
if (data.ver) {gaugeTemp.update();}
}
any help will be much appreciated
Riccardo
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.