From: Bernhard Tittelbach Date: Fri, 30 Apr 2010 20:43:06 +0000 (+0000) Subject: delay between rf433ctl commands that works X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=528ccc3814ff79b0e028cbc9f9452e6a1e50d765;p=svn42.git delay between rf433ctl commands that works temp correction moved from firmware to cgi --- diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index cc6e917..7c327d3 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -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; diff --git a/sensor_graph/sensor-temp.cgi b/sensor_graph/sensor-temp.cgi index 3f2a7fd..f891a40 100755 --- a/sensor_graph/sensor-temp.cgi +++ b/sensor_graph/sensor-temp.cgi @@ -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"> diff --git a/sensor_graph/sensors.cgi b/sensor_graph/sensors.cgi index da45018..1fb368c 100755 --- a/sensor_graph/sensors.cgi +++ b/sensor_graph/sensors.cgi @@ -28,8 +28,9 @@ Current Light Value: --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">

Current Temperature: °C