Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
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 !