BangleApps/apps/gbridge
Gordon Williams 4ff35f0787 minor tweaks after #2889 2023-08-09 09:16:33 +01:00
..
ChangeLog Use default Bangle formatter for booleans 2022-06-18 22:08:51 +02:00
PROTOCOL.md minor tweaks after #2889 2023-08-09 09:16:33 +01:00
README.md Gbridge added troubleshooting section to README 2021-10-01 13:35:58 +01:00
app-icon.js add gadgetbridge app, plus ad versions 2019-12-05 14:48:36 +00:00
app.png add gadgetbridge app, plus ad versions 2019-12-05 14:48:36 +00:00
metadata.json Use default Bangle formatter for booleans 2022-06-18 22:08:51 +02:00
sample_messages.js weather: Bangle.js 2 support 2021-11-20 18:56:45 +01:00
settings.js Convert Yes/No On/Off in settings to checkboxes, add /*LANG*/ to some more text strings 2023-02-23 11:46:49 +00:00
widget.js Implement API for activity fetching 2023-08-09 08:50:49 +01:00

README.md

Gadgetbridge

This widget allows your Bangle.js to communicate with the Gadgetbridge app on an Android phone.

Download the latest Gadgetbridge for Android here.

This app supports:

  • Displaying Notifications
  • Song display and control
  • Call answering
  • Find My Phone / Find My Bangle
  • Activity reporting

You can also add the weather widget

Notifications

By default a notification at the top of the screen is displayed. If you'd like a fullscreen notification (which will involve leaving the current app) then install Fullscreen Notifications

Song display and control

When the Song Display notification is showing on the screen and a song is playing, you can swipe left or right on the screen to go to the next or previous song.

Find My Phone

Go to Settings, App/Widget Settings, Gadgetbridge, Find Phone, On

If in range and connected your phone should start ringing.

Find My Bangle

Onyour phone Settings, App/Widget Settings, Gadgetbridge, Find Phone, On

If in range and connected your phone should start ringing.

Activity reporting

You'll need a Gadgetbridge release after version 0.50.0 for Actvity Reporting to be enabled.

By default heart rate isn't reported, but it can be enabled from Settings, App/Widget Settings, Gadgetbridge, Record HRM

Troubleshooting

  1. Switch to using one of the stock watch faces like s7clk or wave on a Bangle 2.

  2. Check that the battery charge level is being seen by the Gadgetbridge App on the phone. This proves that data is getting to your phone.

You can test the notifications on the Bangle

First disconnect from Gadgetbridge on your phone. Then connect through the IDE and enter the following code. You should get a pop up screen on your Bangle. This proves that the watch is correctly setup for notifications.

GB({"t":"notify","id":1575479849,"src":"Hangouts","title":"A Name","body":"message contents"})

NOTE: On a Bangle 2, this will fail if you have not installed 'Notifications Fullscreen'.

Check that notifications are getting through to your Bangle

  • Disconnect your Bangle from Gadgetbridge on your phone.

  • Connect through the IDE

  • Run the following bit of code

      var log = [];
      function GB(d) {
        log.push(JSON.stringify(d));
      }
    
  • Disconnect from the IDE

  • Connect your Bangle to Gadgetbridge

  • Call your phone to get a missed call

  • Disonnect your Bangle to Gadgetbridge

  • Connect through the IDE

  • Run the following bit of code

      log;
    

If notifications are getting through then you should see something like.

    >log
    =[
      "{\"t\":\"call\",\"cmd\"" ... "r\":\"0191xxxxxxx\"}",
      "{\"t\":\"call\",\"cmd\"" ... "r\":\"0191xxxxxxx\"}"
     ]

IMPORTANT: Now reset your Bangle using a BTN3 long press so that the GB() function is restored.

References

Bangle Gadgetbridge Page

Gadgetbridge Project Home