Upload files to "/"
This commit is contained in:
43
jshintrc
Normal file
43
jshintrc
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
/*
|
||||
* Example jshint configuration file for Pebble development.
|
||||
*
|
||||
* Check out the full documentation at http://www.jshint.com/docs/options/
|
||||
*/
|
||||
{
|
||||
// Declares the existence of the globals available in PebbleKit JS.
|
||||
"globals": {"Int32Array": true, "require": true, "Pebble": true, "WebSocket": true, "exports": true, "navigator": true, "Float64Array": true, "module": true, "localStorage": true, "XMLHttpRequest": true, "Uint8Array": true, "Uint32Array": true, "Int8Array": true, "console": true, "Uint16Array": true, "Int16Array": true, "setInterval": true, "Float32Array": true, "setTimeout": true, "Uint8ClampedArray": true},
|
||||
|
||||
// Do not mess with standard JavaScript objects (Array, Date, etc)
|
||||
"freeze": true,
|
||||
|
||||
// Do not use eval! Keep this warning turned on (ie: false)
|
||||
"evil": false,
|
||||
|
||||
/*
|
||||
* The options below are more style/developer dependent.
|
||||
* Customize to your liking.
|
||||
*/
|
||||
|
||||
// All variables should be in camelcase - too specific for CloudPebble builds to fail
|
||||
// "camelcase": true,
|
||||
|
||||
// Do not allow blocks without { } - too specific for CloudPebble builds to fail.
|
||||
// "curly": true,
|
||||
|
||||
// Prohibits the use of immediate function invocations without wrapping them in parentheses
|
||||
"immed": true,
|
||||
|
||||
// Don't enforce indentation, because it's not worth failing builds over
|
||||
// (especially given our somewhat lacklustre support for it)
|
||||
"indent": false,
|
||||
|
||||
// Do not use a variable before it's defined
|
||||
"latedef": "nofunc",
|
||||
|
||||
// Spot undefined variables
|
||||
"undef": "true",
|
||||
|
||||
// Spot unused variables
|
||||
"unused": "true"
|
||||
}
|
||||
511
package.json
Normal file
511
package.json
Normal file
@@ -0,0 +1,511 @@
|
||||
{
|
||||
"author": "singleserveapps",
|
||||
"dependencies": {},
|
||||
"keywords": [],
|
||||
"name": "91-dub-weather",
|
||||
"pebble": {
|
||||
"capabilities": [
|
||||
"location",
|
||||
"configurable"
|
||||
],
|
||||
"displayName": "91 Dub Weather",
|
||||
"enableMultiJS": true,
|
||||
"messageKeys": {
|
||||
"DEBUG": 999,
|
||||
"KEY_BACKGROUND_COLOR": 8,
|
||||
"KEY_BLINK_COLON": 1,
|
||||
"KEY_CONDITIONS": 7,
|
||||
"KEY_CONDITION_CODE": 20,
|
||||
"KEY_DISPLAY_SECONDS": 5,
|
||||
"KEY_DISPLAY_WEATHER": 12,
|
||||
"KEY_GET_WEATHER": 13,
|
||||
"KEY_HIDE_BATTERY": 4,
|
||||
"KEY_HOURLY_VIBRATE": 3,
|
||||
"KEY_INVERT": 27,
|
||||
"KEY_JS_READY": 24,
|
||||
"KEY_MIN_SINCE_WEATHER_UPDATE": 26,
|
||||
"KEY_OPTIONS": 99,
|
||||
"KEY_SHAKE_FOR_LOHI": 21,
|
||||
"KEY_TEMPERATURE": 14,
|
||||
"KEY_TEMPERATURE_HI": 17,
|
||||
"KEY_TEMPERATURE_IN_C": 6,
|
||||
"KEY_TEMPERATURE_IN_C_HI": 19,
|
||||
"KEY_TEMPERATURE_IN_C_LO": 18,
|
||||
"KEY_TEMPERATURE_LO": 16,
|
||||
"KEY_TIME_COLOR": 9,
|
||||
"KEY_USE_CELSIUS": 11,
|
||||
"KEY_VIBBRATE_BT_STATUS": 2,
|
||||
"KEY_WD_COLOR": 25,
|
||||
"KEY_WEATHER_FREQUENCY": 10,
|
||||
"KEY_WEATHER_LOCATION": 23,
|
||||
"KEY_WEATHER_READABILITY": 15,
|
||||
"KEY_WEATHER_USE_GPS": 22
|
||||
},
|
||||
"projectType": "native",
|
||||
"resources": {
|
||||
"media": [
|
||||
{
|
||||
"file": "images/tiny_9.png",
|
||||
"name": "IMAGE_TINY_9",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_8.png",
|
||||
"name": "IMAGE_TINY_8",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_7.png",
|
||||
"name": "IMAGE_TINY_7",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_6.png",
|
||||
"name": "IMAGE_TINY_6",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_5.png",
|
||||
"name": "IMAGE_TINY_5",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_4.png",
|
||||
"name": "IMAGE_TINY_4",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_3.png",
|
||||
"name": "IMAGE_TINY_3",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_2.png",
|
||||
"name": "IMAGE_TINY_2",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_1.png",
|
||||
"name": "IMAGE_TINY_1",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_0.png",
|
||||
"name": "IMAGE_TINY_0",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-9.png",
|
||||
"name": "IMAGE_SM_9",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-8.png",
|
||||
"name": "IMAGE_SM_8",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-7.png",
|
||||
"name": "IMAGE_SM_7",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-6.png",
|
||||
"name": "IMAGE_SM_6",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-5.png",
|
||||
"name": "IMAGE_SM_5",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-4.png",
|
||||
"name": "IMAGE_SM_4",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-3.png",
|
||||
"name": "IMAGE_SM_3",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-2.png",
|
||||
"name": "IMAGE_SM_2",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-1.png",
|
||||
"name": "IMAGE_SM_1",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/time_format_PM.png",
|
||||
"name": "IMAGE_PM_MODE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/time_format_AM.png",
|
||||
"name": "IMAGE_AM_MODE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/time_format_24H.png",
|
||||
"name": "IMAGE_24_HOUR_MODE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/sm-0.png",
|
||||
"name": "IMAGE_SM_0",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/separator.png",
|
||||
"name": "IMAGE_SEPARATOR",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_9.png",
|
||||
"name": "IMAGE_NUM_9",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_8.png",
|
||||
"name": "IMAGE_NUM_8",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_7.png",
|
||||
"name": "IMAGE_NUM_7",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_6.png",
|
||||
"name": "IMAGE_NUM_6",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_5.png",
|
||||
"name": "IMAGE_NUM_5",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_4.png",
|
||||
"name": "IMAGE_NUM_4",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_3.png",
|
||||
"name": "IMAGE_NUM_3",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_2.png",
|
||||
"name": "IMAGE_NUM_2",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_1.png",
|
||||
"name": "IMAGE_NUM_1",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/tiny_percent.png",
|
||||
"name": "IMAGE_TINY_PERCENT",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/num_0.png",
|
||||
"name": "IMAGE_NUM_0",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/menu_icon_91w.png",
|
||||
"name": "IMAGE_MENU_ICON",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-separator.png",
|
||||
"name": "IMAGE_MED_SEPARATOR",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-9.png",
|
||||
"name": "IMAGE_MED_9",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-8.png",
|
||||
"name": "IMAGE_MED_8",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-7.png",
|
||||
"name": "IMAGE_MED_7",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-6.png",
|
||||
"name": "IMAGE_MED_6",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-5.png",
|
||||
"name": "IMAGE_MED_5",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-4.png",
|
||||
"name": "IMAGE_MED_4",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-3.png",
|
||||
"name": "IMAGE_MED_3",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-2.png",
|
||||
"name": "IMAGE_MED_2",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-1.png",
|
||||
"name": "IMAGE_MED_1",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/med-0.png",
|
||||
"name": "IMAGE_MED_0",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/icon_meter.png",
|
||||
"name": "IMAGE_METER_BAR",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/icon_mail.png",
|
||||
"name": "IMAGE_EMAIL",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/icon_bluetooth.png",
|
||||
"name": "IMAGE_BLUETOOTH",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/icon_battery.png",
|
||||
"name": "IMAGE_BATTERY",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/icon_battery_charge.png",
|
||||
"name": "IMAGE_BATTERY_CHARGE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_wed.png",
|
||||
"name": "IMAGE_DAY_NAME_WED",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_tue.png",
|
||||
"name": "IMAGE_DAY_NAME_TUE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_thu.png",
|
||||
"name": "IMAGE_DAY_NAME_THU",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_sun.png",
|
||||
"name": "IMAGE_DAY_NAME_SUN",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_sat.png",
|
||||
"name": "IMAGE_DAY_NAME_SAT",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_mon.png",
|
||||
"name": "IMAGE_DAY_NAME_MON",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/day_fri.png",
|
||||
"name": "IMAGE_DAY_NAME_FRI",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_9.png",
|
||||
"name": "IMAGE_DATENUM_9",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_8.png",
|
||||
"name": "IMAGE_DATENUM_8",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_7.png",
|
||||
"name": "IMAGE_DATENUM_7",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_5.png",
|
||||
"name": "IMAGE_DATENUM_5",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_6.png",
|
||||
"name": "IMAGE_DATENUM_6",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_4.png",
|
||||
"name": "IMAGE_DATENUM_4",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_3.png",
|
||||
"name": "IMAGE_DATENUM_3",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_2.png",
|
||||
"name": "IMAGE_DATENUM_2",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_1.png",
|
||||
"name": "IMAGE_DATENUM_1",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/datenum_0.png",
|
||||
"name": "IMAGE_DATENUM_0",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/branding-mask.png",
|
||||
"name": "IMAGE_BRANDING_MASK",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/branding-mask-invert.png",
|
||||
"name": "IMAGE_BRANDING_MASK_INVERT",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/background-invert.png",
|
||||
"name": "IMAGE_BACKGROUND_INVERT",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/background.png",
|
||||
"name": "IMAGE_BACKGROUND",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/background-invert_wide.png",
|
||||
"name": "IMAGE_BACKGROUND_INVERT_WIDE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
},
|
||||
{
|
||||
"file": "images/background_wide.png",
|
||||
"name": "IMAGE_BACKGROUND_WIDE",
|
||||
"targetPlatforms": null,
|
||||
"type": "bitmap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sdkVersion": "3",
|
||||
"targetPlatforms": [
|
||||
"aplite",
|
||||
"basalt",
|
||||
"diorite"
|
||||
],
|
||||
"uuid": "8a9924a3-347a-477a-9d9c-15182e732da5",
|
||||
"watchapp": {
|
||||
"watchface": true
|
||||
}
|
||||
},
|
||||
"version": "1.5.0"
|
||||
}
|
||||
52
wscript
Normal file
52
wscript
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# This file is the default set of rules to compile a Pebble project.
|
||||
#
|
||||
# Feel free to customize this to your needs.
|
||||
#
|
||||
|
||||
import os.path
|
||||
try:
|
||||
from sh import CommandNotFound, jshint, cat, ErrorReturnCode_2
|
||||
hint = jshint
|
||||
except (ImportError, CommandNotFound):
|
||||
hint = None
|
||||
|
||||
top = '.'
|
||||
out = 'build'
|
||||
|
||||
|
||||
def options(ctx):
|
||||
ctx.load('pebble_sdk')
|
||||
|
||||
|
||||
def configure(ctx):
|
||||
ctx.load('pebble_sdk')
|
||||
|
||||
|
||||
def build(ctx):
|
||||
if False and hint is not None:
|
||||
try:
|
||||
hint([node.abspath() for node in ctx.path.ant_glob("src/**/*.js")], _tty_out=False) # no tty because there are none in the cloudpebble sandbox.
|
||||
except ErrorReturnCode_2 as e:
|
||||
ctx.fatal("\nJavaScript linting failed (you can disable this in Project Settings):\n" + e.stdout)
|
||||
|
||||
ctx.load('pebble_sdk')
|
||||
|
||||
build_worker = os.path.exists('worker_src')
|
||||
binaries = []
|
||||
|
||||
for p in ctx.env.TARGET_PLATFORMS:
|
||||
ctx.set_env(ctx.all_envs[p])
|
||||
ctx.set_group(ctx.env.PLATFORM_NAME)
|
||||
app_elf = '{}/pebble-app.elf'.format(ctx.env.BUILD_DIR)
|
||||
ctx.pbl_program(source=ctx.path.ant_glob('src/c/**/*.c'), target=app_elf)
|
||||
|
||||
if build_worker:
|
||||
worker_elf = '{}/pebble-worker.elf'.format(ctx.env.BUILD_DIR)
|
||||
binaries.append({'platform': p, 'app_elf': app_elf, 'worker_elf': worker_elf})
|
||||
ctx.pbl_worker(source=ctx.path.ant_glob('worker_src/c/**/*.c'), target=worker_elf)
|
||||
else:
|
||||
binaries.append({'platform': p, 'app_elf': app_elf})
|
||||
|
||||
ctx.set_group('bundle')
|
||||
ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob(['src/pkjs/**/*.js', 'src/pkjs/**/*.json']), js_entry_file='src/pkjs/app.js')
|
||||
Reference in New Issue
Block a user