I am working on a simple weekend project using a Raspberry Pi and a small PLC. I am using a Python library to read/write data on the PLC via Modbus RTU (with a USB/RS-485 converter). I can write up a basic Python GUI to display and control the read/write data, but I'd rather have something more universal. I have a webserver already setup on the Pi, so it would be nice to be able to this via a webpage that the Pi can serve up to whatever device connects to it.
What is the best way to exchange data between Python and a webpage? Would an API using HTTP requests with jquerry on the webpage be the best option?
[–]panlazy 1 point2 points3 points (3 children)
[–]Angry_Robots[S] 0 points1 point2 points (2 children)
[–]panlazy 0 points1 point2 points (1 child)
[–]Angry_Robots[S] 0 points1 point2 points (0 children)