Hi

Taron Foxworth (Fox)

@anaptfox

Wearable Javascript in the Cloud

From Cloud Pebble to Modulus with Strap Metrics

What the heck does that mean?

The Story

Modulus API

  • Restart
  • View Logs
  • Scale Up
var modulus = require('modulus');

modulus.restart(project.id, function(err, data){
  console.log("Restarting Project");
});

CLOUDPEBBLE

+

Text

PEBBLE.JS

// Import the UI elements
var UI = require('ui');

// Create a simple Card
var card = new UI.Card({
  title: 'Hello World',
  body: 'This is your first Pebble app!'
});

// Display to the user
card.show();
static TextLayer *title_text_layer;

static void window_load(Window *window) {
  // Get the root layer
  Layer *window_layer = window_get_root_layer(window);

  // Get the bounds of the window for sizing the text layer
  GRect bounds = layer_get_bounds(window_layer);

  // Create and Add to layer hierarchy:
  title_text_layer = text_layer_create(GRect(5, 5, bounds.size.w, 30));
  text_layer_set_text(title_text_layer, "This is TextLayer");
  layer_add_child(window_layer, text_layer_get_layer(title_text_layer));
}

static void window_unload(Window *window) {
  // Destroy TextLayer
  text_layer_destroy(title_text_layer);

  // Destroy Window
  window_destroy(window);
}

VS

Cloud Pebble Demo

Track usage .. duh

var SM = require('strap-metrics');

var strapMetricsParms = {
  app_id: "Xku9rp7rwFvtZZ3QD",
  resolution: "144x168",
  useragent: "PEBBLE/2.0"
};

SM.Init(strapMetricsParms);

SM.Log('/event/name');

Demo

Use Cases

  • Android Users .. With Pebbles lol 
  • Keep Track Of Enterprise Customers

Future Considerations

  • Strap Kit
  • Pebble.js Beta

Questions?

Wearable Javascript in the Cloud

By Taron Foxworth

Wearable Javascript in the Cloud

  • 1,115
Loading comments...

More from Taron Foxworth