Axons let you visualise and manipulate your phones sensor data using the nervousnet Android or iOS apps. You can get Axons from the nervousnet Space accessible within the apps. Axons are not standalone applications and only run within the nervousnet Android or iOS app, giving developers easy access to sensor data but also to a future computational infrastructure.
Take a look at the example axon, fork and modify it:
- Fork Example Axon.
- Modify your axon by changing
axon.html
andaxon.js
to do what you like.- A UI framework is included for your convenience.
- You may use a local browser to test the Axon, although the special URLs below and the included libs.js will only be available on your phone at this time.
- Testing Axons on the phone is easy, as your code is redownloaded from your GitHub repo when you press the special refresh button (this is why step 1 is important).
- Submit
package.json
here and it will be added to the nervousnet Space in the Android and iOS apps by us. - Download and install your Axon from the nervousnet Space in the Android and iOS apps.
Call these local URLs from within the Axon code to get real time sensor data of your phone
- http://localhost:8080/nervousnet-api/raw-sensor-data/GPS
- http://localhost:8080/nervousnet-api/raw-sensor-data/Accelerometer
- http://localhost:8080/nervousnet-api/raw-sensor-data/Magnetometer
- http://localhost:8080/nervousnet-api/raw-sensor-data/Gyroscope
- http://localhost:8080/nervousnet-api/raw-sensor-data/BLE
- more methods that allow saving data to phone and more coming in future releases
## Documentation
- Fork this repository.
- Add your axon's
package.json
under a new name in thecontrib
ortesting
directory. Note: Axons added to thetesting
directory are immediately available on the Testflight version of the app. - Send us a pull request and your axon will be available shortly.
- Open the Axon in the nervousnet app on your phone or simulator.
- Open Safari and enable the develop menu.
- Go to "Develop" and select your phone or simulator (see screenshot), then the axon.html page.
- An inspector will open, with which you have full debugging access (editing code, breakpoints, network analysis, etc). This is also where you'll see console.log messages.