-
Notifications
You must be signed in to change notification settings - Fork 1
Module thc_WavePlusBridge
Andreas Drollinger edited this page Jan 3, 2020
·
1 revision
The thc_WavePlusBridge module implements THC devices that get data from Airthings Wave Plus Bridges provided at the following URL : https://github.com/Drolla/WavePlus_Bridge.
The following Wave Plus sensor data is available :
- temperature: Temperature in °C
- humidity: Relative humidity in %
- pressure: Air pressure in
- radon_st: Radon short-term averaged, in Bq/m3
- radon_lt: Radon long-term averaged, in Bq/m3
- co2: CO2 level
- voc: VOC level
To connect to a Wave Plus Bridge it needs to be declared with thc::WavePlusBridge::Init :
thc::WavePlusBridge::Init AirCellarOffice 2930014021 http://192.168.1.132:80
Then, each THC device linked to a Wave Plus Bridge has to be declared with thc::DefineDevice :
thc::DefineDevice CellarOffice,temp \
-name "Cellar Office Temp" -group Environment -format "%.1f°C" -update 1m \
-get {thc_WavePlusBridge {"AirCellarOffice" "temperature"}}
Defines general configurations related to the Wave Plus Bridge connections.
| Parameters | Description |
|---|---|
| [-data_validity_time <DataValidityTime> | Data validity time in seconds, default=300 |
| [-min_update_period <MinUpdatePeriod> | Minimum update period in seconds (more recent update requests are ignored), default=60 |
| [-nbrtrials <NbrTrials>] | Defines the number of trials in case of connection timeouts. Default is 1. |
| [-timeout <TimeoutMS>] | Option forwarded to http::geturl. Default is 500. Allows defining the timeout in milliseconds. |
-
thc::WavePlusBridge::Configure \
-data_validity_time 600 -min_update_period 120
| Parameters | Description |
|---|---|
| Name | Wave Plus device name |
| SR | Wave Plus serial number, or the device nickname exposed by the Wave Plus Bridge |
| URL | Full qualified URL to access the Wave Plus Bridge. The provided URL needs to be composed by the 'http://' prefix, the IP address as well as the port. |
-
thc::WavePlusBridge::Init AirCellarOffice 2930014021 http://192.168.1.132:80
THC, Tight Home Control - See THC index register - THC repository on github.com/Drolla/thc