node-wss-osc-deviceorientation:Node.js https websocket用于客户端设备方向数

  • h1_156919
    了解作者
  • 3.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-30 03:41
    上传日期
套接字/ OSC /设备示例-IMGD 5100 用您的IP或<your>.local替换vengeance.local 安装并运行mkcert(对于Windows,我使用Chocolatey)确保将<your>.local到cert 例如mkcert -key-file key.pem -cert-file cert.pem localhost 127.0.0.1 <your>.local 用您的文件名替换index.js中的key和cert (确保它们在根项目文件夹中) 运行npm install 在手机上的Web浏览器中访问https://<your>.local:3333 单击获取加速度计权限按钮 观看设备定向数据进入您的node.js服务器!
node-wss-osc-deviceorientation-main.zip
  • node-wss-osc-deviceorientation-main
  • index.js
    1.3KB
  • package.json
    441B
  • public
  • index.html
    1.3KB
  • README.md
    655B
  • .gitattributes
    66B
内容介绍
# Socket/OSC/Device Sample - IMGD 5100 1. replace `vengeance.local` with your ip or `<your-hostname>.local` 2. install and run mkcert (for Windows I used chocolatey) make sure you add `<your-hostname>.local` to the cert e.g. `mkcert -key-file key.pem -cert-file cert.pem localhost 127.0.0.1 <your-hostname>.local` 3. replace the `key` and `cert` in index.js with your file names (make sure they are in the root project folder) 3. run `npm install` 4. access `https://<your-hostname>.local:3333` on a web browser on your mobile phone 5. click the Get Accelerometer Permissions button 6. watch the device orientation data come in on your node.js server!
评论
    相关推荐