-
Notifications
You must be signed in to change notification settings - Fork 14
Quick Start
In this 🚀 quick start, we show how to connect an IoT device (Raspberry Pi) and a temperature sensor to the MBP, in order to visualize temperature values in the MBP dashboard. The following steps will be executed:
Registration of the operator that extracts temperature sensor values and send it to the MBP
(As an alternative, it is possible to register an operator that simulates the extraction of temperature values)
Installation of the operator on the Raspberry Pi to visualize temperature values in the MPB
Hardware setup:
a Raspberry Pi 3. To enable the MBP to access the Raspberry Pi, it must be configured to be accessed by SSH through a private key or login
a LK base board or an arbitrary AD converter
(not required in case a simulation operator is used in step 2)
a LK temperature sensor plugged to the
A0 analog input
of the LK base board or to the corresponding pins of an arbitrary AD converter(not required in case a simulation operator is used in step 2)
Once you installed the MBP, please register a new user and log in the MBP (see How to create users).
After logging in the MBP, press the Devices
button in the dashboard to go the devices view. Alternatively, you can reach the devices view also through the navigation on the left: Main Navigation > IoT Hardware > Devices
.
In the devices view, press the ➕ button (2) to add a new device. Fill the properties (inclusive private key or credentials) of the Raspberry Pi and press Register
(3).
After registering your device, the Raspberry Pi should be visible in the list of devices with the state `Connected` (4). This means the Raspberry Pi can be found in the network and the MBP can connect to it with the provided private key or credentials. If the device has other state, take a look in the [device states](https://github.com/IPVS-AS/MBP/wiki/How-to-register-devices#device-state) documentation to find out more about it.
Here a short demonstration video summarizing the above instructions for you:
For more details, please see How to register devices.
An extraction operator is the required software (for example, python scripts) to bind sensors to the MBP. Ready-to-use examples of such operators can be found in the MBP Operators Repository.
In this example we use the operator provided in the repository, which contains the software to read sensor values measured by the LK temperature sensor and to send these values to the MBP.
In the MBP, go to Main Navigation > Operators > Extraction/Control Operators
(1). Then, press the ➕ button
(2) to add the new operator. Fill the properties (inclusive example operator files) and press Register
(3). After registration, the new operator should be visible in the list of registered operators.
Here a short demonstration video summarizing the above instructions for you:
For more details, please see How to register operators.
In the MBP, press the Sensors
button in the dashboard to reach the sensors view. Alternatively, you can reach the sensors view through: Main Navigation > IoT Hardware > Sensors
.
In the sensors view, press the ➕ button
(2) to add a new sensor. Fill the properties, choose the previously created Operator
(3) and Device
(4), and press Register
(5).
After registration, the sensor should be visible in the list of registered sensors and have the state Ready
. If the sensor has other state, take a look in the sensor states documentation to find out more about it.
Here a short demonstration video summarizing the above instructions for you:
For more details, please see How to register sensors.
We are almost done 💪 ! In this step we install the operator on device and start it, in order to receive temperature values in the MBP and visualize them.
In the sensors view, click on the registered sensor
(6), to go to the sensor detailed view. Then, press the Install operator button
(7). After this, the sensor should have the state Installed
. If the sensor has other state, take a look in the sensor states documentation to find out more about it.
To start the operator installed on the Raspberry Pi, in the sensor details view, press the Start operator button
(8).
Once the operator has started, it will send temperature values to the MBP. The values can be visualized in the diagrams live values
and historical values
in the sensor details view. The MBP also provide some value statistics, for example the average value from all received temperature values.
🎉 That's it!
Universität Stuttgart - MBP Team 🔧