Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/pebble-my-data.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbahbka <bahbka@bahbka.com>2014-07-06 17:20:31 +0400
committerbahbka <bahbka@bahbka.com>2014-07-06 17:20:31 +0400
commita956d97d0688a39bd60ca5fc44d4b40ef225c2a0 (patch)
tree6b4aefe8a4ba7406b7685b82b47562a172838b72
parent73ccf7ca72926a0c11482a13baeb070a51260121 (diff)
Send config when JS app is ready.
-rw-r--r--appinfo.json4
-rw-r--r--resources/configuration.html2
-rw-r--r--src/js/pebble-js-app.src.js2
-rw-r--r--stuff/pebble-my-data.pbwbin27352 -> 27522 bytes
4 files changed, 5 insertions, 3 deletions
diff --git a/appinfo.json b/appinfo.json
index 82847dd..38c6a1a 100644
--- a/appinfo.json
+++ b/appinfo.json
@@ -3,8 +3,8 @@
"shortName": "My Data",
"longName": "My Data",
"companyName": "bahbka",
- "versionCode": 201,
- "versionLabel": "2.0.1",
+ "versionCode": 202,
+ "versionLabel": "2.0.2",
"watchapp": {
"watchface": false
},
diff --git a/resources/configuration.html b/resources/configuration.html
index a2ac4a9..4d5379e 100644
--- a/resources/configuration.html
+++ b/resources/configuration.html
@@ -54,7 +54,7 @@ vim: sw=2 ts=2 expandtab ai -->
</head>
<body onload="put_config();">
<h1>My Data</h1>
- <small>v2.0.1, by bahbka</small>
+ <small>v2.0.2, by bahbka</small>
<hr size="1" />
<form action="javascript: get_config();" id="config_form">
diff --git a/src/js/pebble-js-app.src.js b/src/js/pebble-js-app.src.js
index 8a40b8c..730a179 100644
--- a/src/js/pebble-js-app.src.js
+++ b/src/js/pebble-js-app.src.js
@@ -84,6 +84,8 @@ Pebble.addEventListener("ready",
try {
config = JSON.parse(json);
//console.log("loaded config = " + JSON.stringify(config));
+ config["msg_type"] = MSG.CONFIG;
+ Pebble.sendAppMessage(config); // send current config to pebble
} catch(e) {
console.log("stored config json parse error");
diff --git a/stuff/pebble-my-data.pbw b/stuff/pebble-my-data.pbw
index 5bc7e59..424da09 100644
--- a/stuff/pebble-my-data.pbw
+++ b/stuff/pebble-my-data.pbw
Binary files differ