I added a Dallas Temp sensor onto my Mote that also has the BME. When I read the values, this is what I get
Note 'Z' is my new test metric. Note that the screen shots were at slightly different times so the temp has changed over the course of capturing data below.
At the Mote serial port.
BAT:4.86v F:79.61 Z:81.5 H:40.45 P:29.73 (packet length:40)
In the serial console of the Pi
[06-10-19_12:50:08.708] [LOG] >: [40] BAT:4.86v F:79.61 Z:80.6 H:40.17 P:29.73 [RSSI:-26][ACK-sent]
[06-10-19_12:50:08.712] [LOG] post: /home/pi/gateway/data/db/0040_V.bin[1560185408,4.86]
But this is what I get in my display:
I've tried varying the number of decimal places but no change. I've tried jamming a null at the end of the string to make sure it was terminated.
Here is my new metric definition for Z which is an exact copy of 'F' except renamed to 'Z'
exports.metrics = {
Z : { name:'Z', regexp:/\bZ\:(-?\d+\.\d+)\b/i, value:'', duplicateInterval:3600, unit:'°', pin:1, graph:1, graphValSuff
fix:'Z', graphOptions:{ legendLbl:'Temperature', lines: { lineWidth:1 } }},
};
Any advice?
Thanks