Creation a simple restAPI in which a GET request to the below URL returns some data points coordinates (in JSON format) that changes over time.
http://127.0.0.1:5300/api/points
Install python 2.7 and pip
sudo apt install python2.7 python-pip
Install the python libraries flask and flask-cors
pip install flask=0.12.2
pip install flask-cors
Additional python libraries needed
pip install json
pip install numpy
cd {path_to_directory}/createAPI
export FLASK_APP=restapi.py
flask run --port 5300
A simple chart to show the motion of three dynamic points read by an API.
Launch API by Flask (See createAPI) before opening the web page.
firefox visualize_points.html