Ok here it is
first step is connecting two DS18B20 temperature sensors to the same terminals on the EmonTH, this can be really fiddly, stripping back the black cable sheathing and tinning the wires with a bit of solder makes connecting multiple sensors like this much easier!
I’ve uploaded the modified firmware that supports multiple DS18B20 temperature sensors as a feature branch on github here: GitHub - openenergymonitor/emonth2 at multiple_ds18b20_external
If you are confident using git, you can clone the repository and checkout to the multiple_ds18b20_external branch using git. Alternatively here’s the zip download for this specific version of the modified code: https://github.com/openenergymonitor/emonth2/archive/multiple_ds18b20_external.zip
Modify this line at the top of the sketch to specify the number of DS18B20 temperature sensors that you have connected: https://github.com/openenergymonitor/emonth2/blob/multiple_ds18b20_external/firmware/src/src.ino#L65
It’s possible to either compile this using the Arduino IDE or with platformIO. Let me know if you need any more detail on this @ramcq?
Once the firmware is uploaded the next step is to modify the EmonHub decoder to be able to read the radio packet sent from the EmonTH. This can be done from Emoncms > Setup > EmonHub > Edit Config.
Here’s an example for two temperature sensors, assuming that the nodeid is 23, you will need to replace the existing node decoder with this one for this to work:
[[23]]
nodename = emonth_2ext
[[[rx]]]
names = temperature, ext1,ext2, humidity, battery, pulsecount
datacodes = h,h,h,h,h,L
scales = 0.1,0.1,0.1,0.1,0.1,1
units = C,C,C,%,V,p