Reading XDK Value
Answer
7/11/18 5:39 AM

Hello guys,

I'm a newbie in Python and I have a question:

Is it possible to read data values of XDK using HTTP API with Python script ? Could you please give me some examples or documents ? Thanks you !

0 (0 Votes)
RE: Reading XDK Value
Answer
7/11/18 2:35 PM as a reply to Nhan Tran Dinh.
Hello Nhan,

First, I would like to welcome you to the XDK community.

In general, it is possible to transmit the sensor data from the XDK over a serial or wireless transmission to any destination and then fetch the data over a python script.

On the XDK side, you could use the StreamSensorDataOverUsb example, send the data over USB and then fetch the data over a python script, which listens on the serial port.

Otherwise, you could also use the BoschXDKCloudConnectivity example, send the data to the Bosch IoT cloud and then fetch this data with an in python implemented HTTP API on your own server.

Alternatively, you could also build your own XDK application from the scratch by using the XDK guides from the Learning section as starting point to suit your use case best.

In regards to learning python, I recommend that you go through some tutorials, for example, this here to get familiar with the language.

For specific python implementations, for example a HTTP server, I recommend taking a look at the free available implementations at GitHub .

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: Reading XDK Value
Answer
7/13/18 3:40 PM as a reply to Franjo Stjepandic.

Hi!

On this link there is and example of reading temperature over USB and a python script that graph the data on screen and send a Twitter notification.

Link: XDK and Python over serial port

0 (0 Votes)
RE: Reading XDK Value
Answer
7/16/18 3:48 PM as a reply to Rolando Gonzalez.
Hello Rolando,

thank you for the input on this graphical representation.

I'm sure that a lot of our community members will benefit from the project you found.

Kind regards,
Franjo
0 (0 Votes)