Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 643 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 643 Bytes

Socket/OSC/Device Sample

  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

  1. replace the key and cert in index.js with your file names (make sure they are in the root project folder)
  2. run npm install
  3. access https://<your-hostname>.local:3333 on a web browser on your mobile phone
  4. click the Get Accelerometer Permissions button
  5. watch the device orientation data come in on your node.js server!