Skip to content
Plugin for nymea. This plugin contains a DIY sensorstation using different sensors.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian
docs
plot-sensordata
sensors
translations
.gitignore
LICENSE
README.md
airqualitymonitor.cpp
airqualitymonitor.h
devicepluginsensorstation.cpp
devicepluginsensorstation.h
devicepluginsensorstation.json
i2cport.cpp
i2cport.h
i2cport_p.h
sensordatafilter.cpp
sensordatafilter.h
sensorstation.pro

README.md

Sensor station


This nymea plugin contains the implementation of a DIY sensor station containing:

  • temperature and humitidy sensor
  • light intensity sensor
  • pressure
  • air quality

SensorStation

Build the plugin

This plugin was designed to run on a Raspberry Pi. For building this plugin the libnymea1-dev package has to be installed. How to get the nymea repository can be found in here. If starting from scratch the already finished image from the Quick setup Raspberry Pi can also be done.

Assuming you are logged in using ssh to the Raspberry Pi and the nymea repository is available you can build the plugin using following steps

apt update
apt upgrade
apt install git libnymea1-dev

Get the source code and build the plugin:

git clone https://github.com/t-mon/nymea-sensorstation-plugin.git
cd nymea-sensorstation-plugin
mkdir build
cd build
qmake ../
make -j$(nproc)

Finally you can install the plugin and restart nymead to make it available to the system.

sudo make install
sudo systemctrl restart nymead

Schematics

SensorStation schematics

I²C registers

  i2cdetect -y 1

         0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    00:          -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- --
    40: -- -- -- -- 44 -- -- -- 48 -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- 77

Note: following devices can be found on folowing addresses:

  • 0x39: The light sensor TSL2561
  • 0x44: The temperature/humidity sensor SHT30
  • 0x48: The ADC ADS 1115 (where the MQ-135 is connected to AI0)
  • 0x77: The pressure sensor BMP180
You can’t perform that action at this time.