This document is a reference for all available configuration options.
- Contents
- Example configuration
- Available options
- Defining mappings
[WeatherLinkLive]
# Driver module
driver = user.weatherlink_live_driver
# Host name or IP address of WeatherLink Live
host = weatherlinklive
# Mapping of transmitter ids to WeeWX records
mapping = th:1, rain:1, wind:1, windchill:1, solar:1, uv:1, thw:1, thsw:1:appTemp, th_indoor, baro, battery:1:outTemp:rain:wind
# Whether to log successful operations. Overrides top-level setting.
#log_success = False
# Whether to log unsuccessful operations. Overrides top-level setting.
#log_failure = True
Required: Yes
Type: String
Specifies the hostname or IP address of the WeatherLink Live.
Do not specify an URL or a port; just the host name is enough.
Required: Yes
Type: List of Strings
Minimum: At least 1 element
Defines all used mappings and their configuration.
List items are separated by a colon character. For readability reasons, whitespace can also be added in between elements.
For more information on defining mappings, see the Mapping reference.
Required: No
Type: Integer
Default: 10
seconds
Minimum: 10
seconds
The interval in seconds to wait between retrieving a full data update from the WeatherLink Live.
Required: No
Type: Integer
Default: 5
Minimum: 1
Count of iterations without any data to tolerate before raising an error.
The driver checks for the availability of new data at least every 5 seconds. If no data is available for the specified number of iterations, an error is raised.
Required: No
Type: Boolean
Default: Global value, False
Enables or disables the logging of successful operations specific to the driver.
Overrides the global option.
Required: No
Type: Boolean
Default: Global value, True
Enables or disables the logging of erroneous operations specific to the driver.
Overrides the global option.
The following chapter explains the concept of mappings detailed and in-depth.
Mappings are required because the WeatherLink Live is extremely flexible with regards to the possible combinations of transmitters and sensors. WeeWX however uses a strictly defined database schema to store the recorded data. Unfortunately, there is no way to automatically detect the sensors connected to a WeatherLink Live.
Therefore, sensors have to be manually selected. This is the purpose of mappings.
Mappings are specified in the mapping
configuration option. Multiple mapping definitions are separated by a comma (,
).
Be careful when changing the order of the mappings! This case cause the data to be mixed up.
Note that the order in which the mappings are defined does matter. The assignment of sensors to database columns happens in the defined order.
It is recommended to only ever add mappings to the end.
Each mapping definition starts with the mapping type. Most mappings require additional options to function property, such as the corresponding transmitter id for the sensor. These additional options are specified after the mapping type and are separated by colons (:
).
Usually the mapping type correspond to the sensor type. There are however some exceptions: compound metrics such as wind chill. These are calculated by the transmitter internally, which is only possible if all sensors that are required for the calculation are connected to that transmitter.
E.g. to calculate wind chill both the wind sensor and the thermometer have to be connected to the same transmitter.
Example:
mapping = th_indoor, baro, th:1, rain:1, wind:1
The above example defines 5 mappings:
- Indoor temperature and humidity: No options necessary because it's an internal sensor.
- Barometer: No options necessary because it's an internal sensor.
- Thermometer/hygrometer: Option
1
means transmitter id1
. - Rain sensor: Option
1
means transmitter id1
. - Wind sensor: Option
1
means transmitter id1
.
Mapping type: t
Required options: Transmitter id
Temperature sensor without a hygrometer
Maps only the temperature value
Mapping type: th
Required options: Transmitter id
Temperature sensor with a hygrometer
Maps temperature, humidity, dew point, heat index and wet bulb.
Mapping type: wind
Required options: Transmitter id
Wind sensor
Maps current wind speed and direction as well as gust peak speed and direction.
Mapping type: rain
Required options: Transmitter id
Rain sensor
Rain mapping is more complicated because WeeWX stores the differential rain amount (rain between packets). The driver calculates this from the daily rain sum. Additionally, the "raw" values (number of times the rain spoon tripped).
All in all, the following values are mapped:
- Differential rain amount
- Rain rate
- Size of rain measurement spoon
- Differential number of times the rain spoon tripped
- Rate of rain spoon trippings
Mapping type: solar
Required options: Transmitter id
Solar irradiation sensor
Maps solar irradiation value.
Mapping type: uv
Required options: Transmitter id
UV sensor
Maps UV index value.
Mapping type: windchill
Required options: Transmitter id
Optional options: appTemp
Wind chill compound metric
Maps wind chill temperature value.
Requires both temperature and wind sensor to be connected to the same transmitter.
The optional appTemp
option also maps the wind chill to the appearant temperature metric.
Mapping type: thw
Required options: Transmitter id
Optional options: appTemp
THW index compound metric
Maps THW (temperature, humidity, wind) index temperature value.
Requires temperature, humidity and wind sensor to be connected to the same transmitter.
The optional appTemp
option also maps the wind chill to the appearant temperature metric.
Mapping type: thsw
Required options: Transmitter id
Optional options: appTemp
THSW index compound metric
Maps THSW (temperature, humidity, solar, wind) index temperature value.
Requires temperature, humidity, solar irradiation and wind sensor to be connected to the same transmitter.
The optional appTemp
option also maps the wind chill to the appearant temperature metric.
Mapping type: soil_temp
Required options: Transmitter id, Sensor number
Soil temperature sensor
Maps soil temperature value.
The second option specifies the port to which the sensor is connected (1 - 4).
Mapping type: soil_moist
Required options: Transmitter id, Sensor number
Soil moisture sensor
Maps soil moisture value.
The second option specifies the port to which the sensor is connected (1 - 4).
Mapping type: leaf_wet
Required options: Transmitter id, Sensor number
Leaf wetness sensor
Maps leaf wetness value.
The second option specifies the port to which the sensor is connected (1 or 2).
Mapping type: battery
Required options: Transmitter id
Optional options: Additional mapping targets (outTemp
, rain
, tx
, uv
, wind
)
Status of the transmitter backup battery
Maps battery status value (0
or 1
).
Optionally, further mapping options can be specified. These will lead to the status being mapped to additional metrics provided by WeeWX.
Mapping type: th_indoor
Required options: None
Internal temperature/humidity sensor of WeatherLink Live
Maps temperature, humidity, dew point and heat index.
Mapping type: baro
Required options: None
Internal barometric sensor of WeatherLink Live
Maps sea-level and absolute barometric pressure.
If you wish to inspect the configured mappings, you can run the following command to display a table of assignments from sensors to WeeWX metrics.
> weectl device --print-mapping
Note: These examples correspond to the templates provided by the interactive setup assistant.
This example is a valid mapping for a factory-default Vantage2 Pro. All sensors are connected to the main ISS transmitter set to id 1.
mapping = th:1, rain:1, wind:1, windchill:1, thw:1:appTemp, battery:1, th_indoor, baro
This example is a valid mapping for a factory-default Vantage2 Pro Plus. All sensors are connected to the main ISS transmitter set to id 1.
mapping = th:1, rain:1, wind:1, uv:1, solar:1, windchill:1, thw:1, thsw:1:appTemp, th_indoor, baro, battery:1
Same as above, except the wind sensor is connected to a separate transmitter with id 2.
Note that there is a configuration option on WeatherLink.com to import the wind measurement into the measurements of the main transmitter. If you enable this, the wind chill, THW and THSW values will still be calculated. Otherwise they should be removed from the mapping.
mapping = th:1, rain:1, wind:2, uv:1, solar:1, windchill:1, thw:1, thsw:1:appTemp, th_indoor, baro, battery:1, battery:2
Same as the second example with an additional (fully equipped) soil/leaf station. The agriculture station has the transmitter id 2.
mapping = th:1, rain:1, wind:1, uv:1, solar:1, windchill:1, thw:1, thsw:1:appTemp, soil_temp:2:1, soil_temp:2:2, soil_temp:2:3, soil_temp:2:4, soil_moist:2:1, soil_moist:2:2, soil_moist:2:3, soil_moist:2:4, leaf_wet:2:1, leaf_wet:2:2, th_indoor, baro, battery:1, battery:2