Repository navigation
Plugin Barometer
| Name: | Barometer plugin |
|---|---|
| Type: | read |
| Callbacks: | init, config, read, shutdown |
| Status: | supported |
| FirstVersion: | 5.5 |
| Copyright: | 2014 Tomas Menzl |
| License: | GPLv2 |
| Manpage: | collectd.conf(5) |
| See also: | List of Plugins |
This plugin reads absolute air pressure using digital barometer sensor on a I2C bus. Supported sensors are:
- MPL115A2 from Freescale.
- MPL3115 from Freescale.
- BMP085 from Bosch Sensortec
The sensor type - one of the above - is detected automatically by the plugin and indicated in the plugin_instance (you will see subdirectory barometer-mpl115 or barometer-mpl3115 or barometer-bmp085). The order of detection is BMP085 -> MPL3115 -> MPL115A2, the first one found will be used (only one sensor can be used by the plugin).
The plugin provides absolute barometric pressure, air pressure reduced to sea level (several possible approximations) and as an auxiliary value also internal sensor temperature. It uses (expects/provides) typical metric units - pressure in [hPa], temperature in [C], altitude in [m].
The reduction or normalization to mean sea level pressure requires (depending on selected method/approximation) also altitude and reference to temperature sensor(s). When multiple temperature sensors are configured the minimum of their values is always used (expecting that the warmer ones are affected by e.g. direct sun light at that moment).
<Plugin "barometer">
Device "/dev/i2c-0";
Oversampling 512
PressureOffset 0.0
TemperatureOffset 0.0
Normalization 2
Altitude 238.0
TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
</Plugin>
None yet. Add one now!
- Linux
- Linux i2c-dev interface
- libi2c-dev
The sensor type - one of the above - is detected automatically by the plugin and indicated in the plugin_instance (you will see subdirectory barometer-mpl115 or barometer-mpl3115 or barometer-bmp085). The order of detection is BMP085 -> MPL3115 -> MPL115A2, the first one found will be used (only one sensor can be used by the plugin).