You are reading a single comment by @edb and its replies. Click here to read the full conversation.
val jsonData = JSONObject(data) logger.info(jsonData.toString()) jsonData.put("t", "bangleOSM") sendDataIntent.putExtra("line", "\u0010GB($jsonData)\n") sendBroadcast(sendDataIntent)
and indeed the app loading also works (created an android app to load the tasks from OpenTasks into the todolist watch app and open it)
sendDataIntent = new Intent("com.banglejs.uart.tx"); sendDataIntent.putExtra("line", "\u0010load(\"todolist.app.js\");\n"); sendBroadcast(sendDataIntent);
That looks great! Sorry for the lack of replies - been a bit busy lately.
Any chance of committing your PebbleKit changes back into Gadgetbridge? That seems like it'd be a great way to use existing functionality. Perhaps use the 'allow intents' setting in Gadgetbridge to 'gate' it :)
Yes! That's the idea. The intents are disabled by default now so I think it's ok. Honestly, I think nowadays if you have code you don't trust running on your phone, you've got all kinds of problems - and access to your wristwatch probably isn't one of them :)
Not sure I understand. You mean the pebblekit code?
Could do, but I guess you can just send
load("messages.app.js")now and you'll be ok...