Hobby-board barometer DS2438 recognised as "Solar Radiation"

Post Reply
tparvais
Posts: 12
Joined: Saturday 01 February 2014 15:34
Target OS: Raspberry Pi
Domoticz version:
Contact:

Hobby-board barometer DS2438 recognised as "Solar Radiation"

Post by tparvais » Tuesday 13 June 2017 21:30

Hello

I connected a DS2438 hobby board barometer. It is recognised by Domoticz 3.7679 as "solar radiation" and not barometer.


Address is 26.775CB5000000

109 1-Wire 43 1 Solar Radiation General Solar Radiation 1000.0 Watt/m2 - - Ajouter un dispositifRenommer le dispositif Log 2017-06-13 21:16:55
108 1-Wire 775C 92 Temperature Temp LaCrosse TX3 31.8 C - - Ajouter un dispositifRenommer le dispositif Log 2017-06-13 21:16:55

-Temperature measurement is correct. but I wonder why the domoticz "ID" is always truncated to 775C and not the complete 1-wire address ?
-Solar radiation is crazy: it is supposed to be pressure

1WireByOWFS.cpp:

Code: Select all

float C1WireByOWFS::GetPressure(const _t1WireDevice& device) const
{
   std::string realFilename = device.filename + nameHelper(device.filename, device.family); // for family 26 (DS2438) + pressure + HobbyBoards

   std::string readValue=readRawData(std::string(realFilename+"/pressure"));
   if (readValue.empty())
	   return -1000.0;
   return static_cast<float>(atof(readValue.c_str()));
I suspect the owfs path is wrong. Unfortunately, there is is no debug info.

My full path (including master hub) is /mnt/1wire/1F.313104000000/main/26.775CB5000000/B1-R1-A/pressure

Any idea ?

Thank you

tparvais
Posts: 12
Joined: Saturday 01 February 2014 15:34
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Hobby-board barometer DS2438 recognised as "Solar Radiation"

Post by tparvais » Friday 16 June 2017 23:36

Hello

Nobody has the same problem with hobby board barometer ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest