OneWire onewire(ONE_WIRE_PIN);
DallasTemperature dallas_sensors(&onewire);
DeviceAddress onShieldTemp = { 0x10, 0xE7, 0x77, 0xD3, 0x01, 0x08, 0x00, 0x3F };
-#define TEMPC_OFFSET_ARDUINO_GENEREATED_HEAT -4.0
+#define TEMPC_OFFSET_ARDUINO_GENEREATED_HEAT
typedef struct {
byte offset;
for(;;)
if (frame_finished)
{
- delay(10);
+ delay(150);
break;
}
word_cnt = 0;
--title="Room Temperature" --lazy
--start=now-36h --end=now --width=490
--slope-mode
- DEF:cel=/home/sensortemp.rrd:temp:LAST VDEF:lv=cel,LAST
- LINE2:cel#e21407:"°C (±0.5)," GPRINT:lv:"Current Temperature\: %1.2lf °C">
+ DEF:cel=/home/sensortemp.rrd:temp:LAST
+ CDEF:corrcel=cel,6,- VDEF:lv=corrcel,LAST
+ LINE2:corrcel#e21407:"°C (±0.5)," GPRINT:lv:"Current Temperature\: %1.2lf °C">
</BODY>
</HTML>
--title="Room Temperature"
--start=now-36h --end=now --width=490
--slope-mode
- DEF:cel=/home/sensortemp.rrd:temp:LAST VDEF:lv=cel,LAST
- LINE2:cel#e21407:"°C (±0.5)," GPRINT:lv:"Current Temperature\: %1.2lf °C">
+ DEF:cel=/home/sensortemp.rrd:temp:LAST
+ CDEF:corrcel=cel,6,- VDEF:lv=corrcel,LAST
+ LINE2:corrcel#e21407:"°C (±0.5)," GPRINT:lv:"Current Temperature\: %1.2lf °C">
</P>
Current Temperature: <RRD::INCLUDE /home/sensortemp.txt> °C
<P>