I have implemented an accelerometer Reader in python and I want to execute a function in a javascript file when a new value is read that will:
1 - update the value in a database
2 - broadcast the new value to all connected client ( via Socket.io)
I was wondering how to do it? I checked PyV8 but it seems not maintained and only working with Python 2.7. My files structure looks like
--JScode
----MyJSCode
--PythonCode
----MyPythonCode
我设法使用PythonShell
从javascript文件执行python脚本( 链接到npm页面 )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.