Skip to content

Instantly share code, notes, and snippets.

@orviwan
Last active December 29, 2015 00:42
Show Gist options
  • Save orviwan/539c6e1e09a1170315bd to your computer and use it in GitHub Desktop.
Save orviwan/539c6e1e09a1170315bd 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",
"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
},
"sdkVersion": "3",
"targetPlatforms": [
"aplite",
"basalt"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment