Building API in Python
-
Hello everyone,
I need to create a REST API using the Python3 language, I'm trying to follow the tutorial (https://www.youtube.com/watch?v=4T5Gnrmzjak), however I have the following problem:
When the command is executed: docker-compose up
I am presented with the following message:
ERROR: Could not connect to Docker daemon. You might need to install Docker: https://docs.docker.com/engine/installation/
Does anyone know how to create a REST API on Onion Omega 2+?
-
@Luis-Rossi looks like this tutorial relies on using Docker for the REST API. While Docker is a great virtualization and container platform, it's not really needed on an embedded device like the Omega.
You're probably better off just running the Python code directly on the Omega without using Docker. Try to find a similar tutorial that doesn't rely on Docker.
-
I did a very simple api here http://community.onion.io/topic/3219/beginner-sensor-data-chart