Skip to content

Instantly share code, notes, and snippets.

@bwhite
Last active August 29, 2015 13:56
Show Gist options
  • Save bwhite/9200432 to your computer and use it in GitHub Desktop.
Save bwhite/9200432 to your computer and use it in GitHub Desktop.
[wearscript] Sensor/camera log
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function main() {
if (WSRAW.scriptVersion(1)) return;
WSRAW.say('Logging');
var sensors = ['gps', 'accelerometer', 'magneticField', 'orientation', 'gyroscope',
'light', 'gravity', 'linearAcceleration', 'rotationVector'];
for (var i = 0; i < sensors.length; i++)
WSRAW.sensorOn(WSRAW.sensor(sensors[i]), .15);
WSRAW.cameraOn(1, 360, 640);
WSRAW.dataLog(true, false, 1.);
}
window.onload = main;
</script>
</body>
</html>
{"name": "Logging"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment