How good does Gps-Navigation on the bangle.js 2 work? #3257
Replies: 13 comments
-
Posted at 2022-01-19 by @gfwilliams On Bangle.js 1 there was a running app that let you upload a route and it'd point you along that route - so that could definitely be done. But the navigation in the video was sent from the phone via Google Maps (and the plan is also to support OpenStreetMap) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-01-24 by user139491 Thanks for the answer |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-08 by dukky @gfwilliams is there a specific app available for the Bangle.js 2 to send Google Maps navigation to the watch? I couldn't find anything in the App Loader |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-09 by @gfwilliams
Yes and no... It's built in to Messages already, but right now it requires a special build of Gadgetbridge which isn't public right now. It will come soon though, promise! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-02-28 by user139491 Awesome. Looking forward to :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-04-08 by edb I'm trying to add navigation to the lcars watch (using the bottom panel for next turn arrow, distance to next turn and eta/distance left) based on navigation info from OsmAnd and right now repurposing the pebblekit support in gadgetbridge for the communication. I wonder if I could/should use this built in notifications in Messages for it, or are you working on another way to communicate to the phone with gadgetbridge, I guess something like bangleKit could be added to gadgetbridge in the same way as pebble has pebblekit. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-04-08 by @gfwilliams
Do you have any examples of how you're doing this? I've heard people talk about this but never seen how it's done. The initial plan is to enable navigation in Messages direct from Gadgetbridge, using the notification system but tweaking it to allow 'local' notifications to get pushed through when they're enabled manually (per app). If you're interested the code for it in Gadgetbridge is now online at https://github.com/gfwilliams/Gadgetbridge/compare/master...gfwilliams:banglejs_and_local_notify?expand=1 However if you can actually handle the navigation messages straight from OsmAnd and push them to Bangle.js without going through local notifications that'd great (even better if it could work with Google Maps too ;). While I've been a bit iffy about merging the branch above (mainly because of the way it pushes images through by trying to encode them as base64), I think we could quite easily add the |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-04-08 by edb pebbleKit is not notification based, but intent based, it was made by pebble not so much for notifications, but for communication to companion apps running on the phone (e.g. using the watch as a camera viewer or adding pebble support to your existing apps) Basically gadgetbridge will listen to pebblekit broadcast intents which have an application specific payload and an UUID per app. On the watch the applications will listen to their own UUIDs. It also works the other way around, an app on the watch sends a message to gadgetbridge with its UUID and gadgetbridge will broadcast an intent and a android app will react on messages with its own UUID. https://developer.rebble.io/developer.pebble.com/guides/communication/index.html Basically what I did was modify the existing pebbleKitSupport in gadgetBridge to support bangle basically it does something like this (pebblekit always packs the data in a array, guess it can just as well be without it) For now I just implemented the send to bangle part
OsmAnd has pebbleKit support so that would work (though I want some more info as it provides) Google maps won't work as that doesn't have pebbleKit support OsmAnd doesn't add images for turns, it has a defined a set of 14 turn types you need to render yourself (it can also give the angle of the next turn) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-05-20 by edb I've made a first test version of navigation with the lcars app together with OsmAnd watch App @gfwilliams it uses your gadgetBridge commit to allow sending intents to the watch, I don't know if this is the intended use though. You can do whatever you want on the watch from intents now, which is nice, but might be a bit of a security issue. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-05-25 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-05-25 by edb I realized I didn't use much of the pebbleKit things, so once I saw your intent broadcast receiver I just used that instead, but with \u0010 so it would execute a javascript line. So I didn't change anything at the Gadgetbridge side.
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)
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-06 by user148837 How did you read the data in Bangle.js LCARS Clock end? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-03-23 by edb I've added the global.GB function to handle my type in the lcars app js:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-01-16 by user139491
Hey, I am new to bangle.js but follow the project for about 2 years. After seeing the Kickstarter Video for the bangle.js 2 i was surprised. Now to the question:
I know that there is the OSM app. But as far as I can tell without owning a bangle, the app is able to display on a small map where the watch is at the moment but not to navigate, at least yet. I know that the bangle is no Supercomputer but I ask myself if trough converting map excerpts and a very simple routing engine the bangle could navigate on it`s own. It would be a great feature.
I also saw in a video that there was like a navigation feature, but i think it looked like google maps? I would be thankful if you could enlighten me on if my guess is right.
Please let me know what you think. :)
Beta Was this translation helpful? Give feedback.
All reactions