I am running the attached (very basic) sketch that reads the temp from a DS18B20 and PSI from a pressure transducer.
I am seeing data arriving via the radio:
2016-06-26 01:43:10,057 DEBUG RFM2Pi 149 NEW FRAME : OK 27 51 51 161 66 45 0 (-80)
2016-06-26 01:43:10,059 DEBUG RFM2Pi 149 Timestamp : 1466905390.06
2016-06-26 01:43:10,060 DEBUG RFM2Pi 149 From Node : 27
2016-06-26 01:43:10,061 DEBUG RFM2Pi 149 Values : [13107, 17057, 45]
2016-06-26 01:43:10,061 DEBUG RFM2Pi 149 RSSI : -80
2016-06-26 01:43:10,062 INFO RFM2Pi Publishing: emon/pool_water_meter/box_temp 13107
2016-06-26 01:43:10,063 INFO RFM2Pi Publishing: emon/pool_water_meter/filter_psi 17057
2016-06-26 01:43:10,065 INFO RFM2Pi Publishing: emon/pool_water_meter/3 45
2016-06-26 01:43:10,066 INFO RFM2Pi Publishing: emon/pool_water_meter/rssi -80
2016-06-26 01:43:10,067 INFO RFM2Pi Publishing: emonhub/rx/27/values 13107,17057,45
2016-06-26 01:43:10,069 INFO RFM2Pi Publishing: emonhub/rx/27/rssi -80
2016-06-26 01:43:10,070 DEBUG RFM2Pi 149 adding frame to buffer => [1466905390, 27, 13107, 17057, 45, -80]
2016-06-26 01:43:10,071 DEBUG RFM2Pi 149 Sent to channel' : ToEmonCMS
but none of the values are correct with the exception of the rssi which is sent automatically.
First, I am only transmitting two values from my sketch (box_temp and filter_psi, but according to my emonhub.log there are four values getting sent and the numbers make no sense to me. I have no idea why more than two numbers and the rssi are getting sent.
box_temp 13107 (this should be a temp in F)
filter_psi 17057 (should be a 1 to 2 digit number 0 to 60)
It looks like whatever: emon/pool_water_meter/3 45
is is actually my filter_psi
This is my enonhub.conf entry:
[[27]]
nodename = pool_water_meter
firmware = emon
hardware = ds18b20_psi_transducer
[[[rx]]]
names = box_temp, filter_psi
datacode = h
scales = 1,1
units = F,P
Under datacode I have tried f,i as that is what they are, but then I get an error in enomhub.log starting that 6 is not valid for datacodes f , i.
2016-06-26 02:02:36,644 WARNING RFM2Pi 449 RX data length: 6 is not valid for datacodes ['f', 'i']
Also, none of the values except the rssi show up in my inputs on my emonpi.
In my sketch I am debugging the values I am sending:
Serial.print("TEMP: "); Serial.print(pool_sensors.box_temp);
Serial.print(", Filter PSI: "); Serial.println(pool_sensors.filter_psi);
The values are correct. Here is the serial output:
Dallas Temperature IC Control Library
Locating devices...Found 1 devices.
Parasite power is: ON
Device 0 Resolution:9
TEMP: 80.60, Filter PSI: 46
TEMP: 80.60, Filter PSI: 44
TEMP: 81.50, Filter PSI: 44
DS18B20_PSI_RFM69HW-TESTING.ino (6.1 KB)