Community news, upcoming events and general discussions
Threads: 31 Posts: 81
Get technical support from the community
Threads: 1048 Posts: 5780
Threads: 15 Posts: 54
Tell us how to make XDK better!
Threads: 35 Posts: 117
Share and discuss community member projects
Threads: 49 Posts: 237
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 !
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
I had read the sensor data using Python and HTTP API with request lib successful.I declared headers dict like this :
Everything was good in about 30-45 mins and I received response code 401.The authorization maybe expired and I had to get a new one. How could I fix this error ? Or any solution to get new Authorization automatically ?
Because I want to monitoring data from XDK and visualize it.I put request into the Python loop so it can get realtime data from XDK and visualize, I am using BoschConnectivity example and this HTTP API (https://things.s-apps.de1.bosch-iot-cloud.com/documentation/rest/#!/Things/get_things) but I could only monitoring for about 30 mins and I have to refesh HTTP API page to get new authorization.It's inconvinience !