Skip to content
No description, website, or topics provided.
Branch: master
Clone or download

About this Project

The Koubachi Sensor is a small battery powered device, that measures soil moisture, light intensity and temperature, measurements are then transmitted via W-LAN to a server. Koubachi Sensors were sold until 2015 and the original Koubachi servers are about to be retired soon.

This project aims to replace the original Koubachi server with a bridge, that forwards measurements to a custom MQTT or REST end point, such that the Koubachi Sensors can still be operated when the original servers got shut down.


Using Dependencies from Debian

koubachi-pyserver can be run using only dependencies available in Debian buster. Run the following commands to install all the required packages and clone the repository:


sudo apt install git python3 python3-yaml python3-flask python3-paho-mqtt python3-cryptography
git clone
cd koubachi-pyserver


First read about configuration below, then to launch the server, run the following command:


Using Pipenv


Running the koubachi-pyserver requires Python 3.7. On a Raspberry Pi running Raspbian Buster this comes pre-installed but git won't be available by default:

sudo apt install git

koubachi-pyserver can use pipenv for dependency management and virtual environments. Make sure that pip and pipenv are installed. Note: the following does a user installation to prevent breaking any system-wide packages. If pipenv isn't available in your shell after installation, you’ll need to add the user base's binary directory to your PATH:

sudo apt install python3-pip
pip3 install -U pipenv

Download the latest release or clone the master branch with Git as shown below. Then, create a virtual environment with pipenv and install all project dependencies:

git clone
cd koubachi-pyserver
pipenv install


First read about configuration below, then to launch the server, run the following command:

pipenv run python -m


Now you need a config.yml that contains the encryption key and calibration settings for your Koubachi Sensors. This information can be downloaded from Koubachi Labs.

Configuration is work in progress. Please refer to the issues page if you would like to help contributing.

Reconfiguring the Koubachi Sensor

Read in the API documentation how to reconfigure your Koubachi sensor to connect to your own server.


Install development dependencies:

pipenv install --dev

Static Type Checking and Tests

Perform static type checking:

pipenv run mypy --strict src

Run tests:

pipenv run pytest
You can’t perform that action at this time.