Skip to content

Instantly share code, notes, and snippets.

@cat-haines
Last active January 4, 2016 19:42
Show Gist options
  • Save cat-haines/d7eebaa05fcfd3bbd6e4 to your computer and use it in GitHub Desktop.
Save cat-haines/d7eebaa05fcfd3bbd6e4 to your computer and use it in GitHub Desktop.
Pebble.js Tutorial Part 1 - 1
var UI = require('ui');
// Create a Card with title and subtitle
var card = new UI.Card({
title:'Weather',
subtitle:'Fetching...'
});
// Display the Card
card.show();
{
"appKeys": {},
"capabilities": [
""
],
"companyName": "Pebble",
"sdkVersion": "3",
"shortName": "P.js Tut 1-1",
"longName": "Pebble.js Tutorial 1-1",
"projectType": "pebblejs",
"resources": {
"media": [
{
"file": "images/menu_icon.png",
"menuIcon": true,
"name": "IMAGE_MENU_ICON",
"type": "png"
},
{
"file": "images/logo_splash.png",
"name": "IMAGE_LOGO_SPLASH",
"type": "png"
},
{
"file": "images/tile_splash.png",
"name": "IMAGE_TILE_SPLASH",
"type": "png"
},
{
"file": "fonts/UbuntuMono-Regular.ttf",
"name": "MONO_FONT_14",
"type": "font"
}
]
},
"uuid": "3586cf15-cc83-47d6-9541-48f0afd2deef",
"versionCode": 1,
"versionLabel": "1.0",
"watchapp": {
"watchface": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment