delay between rf433ctl commands that works
authorBernhard Tittelbach <xro@realraum.at>
Fri, 30 Apr 2010 20:43:06 +0000 (20:43 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Fri, 30 Apr 2010 20:43:06 +0000 (20:43 +0000)
temp correction moved from firmware to cgi

rf433ctl/rf433ctl.pde
sensor_graph/sensor-temp.cgi
sensor_graph/sensors.cgi

index cc6e917..7c327d3 100644 (file)
@@ -23,7 +23,7 @@
 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;
@@ -192,7 +192,7 @@ void send_frame(const word_t w)
     for(;;)
       if (frame_finished)
       {
-        delay(10);
+        delay(150);
         break;
       }
   word_cnt = 0;
index 3f2a7fd..f891a40 100755 (executable)
@@ -11,7 +11,8 @@
    --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>
index da45018..1fb368c 100755 (executable)
@@ -28,8 +28,9 @@ Current Light Value: <RRD::INCLUDE /home/sensorlight.txt>
    --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>