Push data from Raspberry pi 4 B to Cumulocity

What product/components do you use and which version/fix level are you on?

We have a DT22 sensor connected to Raspberry pi and need to send the measurements to Cumulocity. The sensor provider gave us python code to read the measurements through terminal, and we have installed Cumulocty agent on the RaspPi and then registered it. How can we proceed to send data?
There are API scripts in cumulocity agent’s git hub repos, but we need to send data automatically/on schedule from RaspPi, doing it manually is not our use case.

Is your question related to the free trial, or to a production (customer) instance?

Our Cumulocity tenant is an education version, as our uni has cooperation with Software AG.

What are you trying to achieve? Please describe it in detail.

Do you get any error messages? Please provide a full error message screenshot and log file.

Have you installed all the latest fixes for the products and systems you are using?

The sensor is not shown in the Child Device menu

There is no OOTB solution for a raspberry pi with DT22 sensors, you have to build your own small agent or extend existing ones.

If you already got a python script you can extend it by connecting to Cumulocity and send a measurement. If you are looking for coding examples you can find them here:
https://github.com/Cumulocity-IoT/c8yMQTT
here:

or here:
https://cumulocity.com/guides/device-sdk/mqtt-examples/#hello-mqtt-python

Both are python agents reading data and forwarding them to Cumulocity.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.