I'd like to know whether or not it is possible to send data from JavaScript to a Python script that is running and if anyone has any concrete examples. This all on the same host.
More specific:
All on RPi:
-
Python script listening for keys/input which it then responds to (sending it to Arduino via serial connection).
-
Web page listening for key presses, key releases, a slider, ... JS has to send this data to python.
Is it possible to send small things like a symbol (WASD) or a key code? It's also important that this doesn't have a lot of delay.
The only thing I found so far is this: Return data from html/js to python
Aucun commentaire:
Enregistrer un commentaire