You've already forked intuiclock
Closes #2
This commit is contained in:
@@ -24,19 +24,20 @@
|
||||
// });
|
||||
|
||||
Pebble.addEventListener('showConfiguration', function(e) {
|
||||
Pebble.openURL('http://127.0.0.1/u/bilbo/pebble/iclock/index.html');
|
||||
Pebble.openURL('http://192.168.1.113/u/bilbo/pebble/iclock/index.html');
|
||||
// Pebble.openURL('https://pconf.bthlabs.pl/intuiclock/index.html');
|
||||
});
|
||||
|
||||
Pebble.addEventListener('webviewclosed', function(e) {
|
||||
var config_data = JSON.parse(decodeURIComponent(e.response));
|
||||
// console.log('Configuration page returned: ' + JSON.stringify(config_data));
|
||||
console.log('Configuration page returned: ' + JSON.stringify(config_data));
|
||||
|
||||
var dict = {};
|
||||
dict['KEY_SECONDS_HAND'] = config_data['seconds_hand'];
|
||||
dict['KEY_BATTERY_INDICATOR'] = config_data['battery_indicator'];
|
||||
dict['KEY_DATE_FORMAT'] = config_data['date_format'];
|
||||
dict['KEY_WIDE_LAYOUT'] = config_data['wide_layout'];
|
||||
dict['KEY_XEN_STYLE'] = config_data['xen_style'];
|
||||
|
||||
Pebble.sendAppMessage(dict, function() {
|
||||
// console.log('Send successful!');
|
||||
|
||||
Reference in New Issue
Block a user