Run Python scripts from JavaScript functions
问题 We need to run a Python code which will control the GPIO of Raspberry Pi 3 from within the JavaScript. (JavaScript is listening for changes on database and when changes are made, function gets triggered and it should run the Python Code. (This code is not working, like the alert message will pop-up but the python code isn't running which otherwise should turn the LED on. What am i doing wrong?) index.html file function runPython() { $.ajax({ type: "POST", url: "/home/pi/Desktop/Web/led.py",