Dummy THB device as a "Weather Station" (baro in 0.1 hPa steps: sTypeTHBFloat)

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
FrankW
Posts: 1
Joined: Wednesday 07 May 2014 13:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dummy THB device as a "Weather Station" (baro in 0.1 hPa steps: sTypeTHBFloat)

Post by FrankW »

Would it be possible to change the Dummy hardware device "Temp + Humidity + Baro" to use the subtype 'sTypeTHBFloat' instead of 'sTypeTHB1'?
I.e., the device would be listed as a type "Weather Station"?

I would like the resolution of the barometric pressure to be in 0.1 hPa steps (sTypeTHBFloat would fix this, but I'm not sure if there need to be other modifications in the Domoticz code to facilitate this change).

In hardware/Dummy.cpp, near line 294:

Code: Select all

      case pTypeTEMP_HUM_BARO:
        // OLD // DeviceRowIdx=m_sql.UpdateValue(HwdID, ID, 1, pTypeTEMP_HUM_BARO, sTypeTHB1, 12, 255, 0, "0.0;50;1;1010;1", devname);
        DeviceRowIdx=m_sql.UpdateValue(HwdID, ID, 1, pTypeTEMP_HUM_BARO, sTypeTHBFloat, 12, 255, 0, "0.0;50;1;1010;1", devname);
        bCreated = true;
        break;
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest