Plugin:Barometer

From collectd Wiki
Revision as of 19:06, 12 March 2020 by Efoley (talk | contribs) (Adding Barometer plugin page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Barometer plugin
Type: read
Callbacks: {Callback
Status: {{{Status}}}
First version: {{{FirstVersion}}}
Copyright: {{{Copyright}}}
License: {{{License}}}
Manpage: {{{Manpage}}}
List of Plugins
, config, read, shutdown
 | Status=style="color: #006000; background: #e0ffe0;" | supported
 | FirstVersion=5.5
 | Copyright=2014 Tomas Menzl
 | License=GPLv2
 | Manpage=collectd.conf(5)

}}

This plugin reads absolute air pressure using digital barometer sensor on a I2C bus. Supported sensors are:

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).

Synopsis

 <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>

Example Graph

None yet. Add one now!

Dependencies

  • Linux
  • Linux i2c-dev interface
  • libi2c-dev

Caveats

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).


See also