José Rebelo
89737153a0
Implement API for activity fetching
2023-08-09 08:50:49 +01:00
Richard de Boer
f131426976
gbridge: Include charging state in battery updates to phone
2022-02-02 20:34:06 +01:00
Adam Schmalhofer
b99024f9ca
Fix gbridge inflating steps
2021-12-11 10:16:34 +01:00
Adam Schmalhofer
bf9f0e4db7
Workaround call notifications with gadgetbridge
...
I have missed a few calls as my watch didn't inform me about them. Using
gbdebug it turns out the cmd left empty.
2021-12-08 20:38:15 +01:00
Gordon Williams
9f68a24315
tag HRM power requests to allow this to work alongside other widgets/apps ( fix #799 )
2021-09-13 09:57:46 +01:00
Gordon Williams
04b7af4a6a
Tweaks to notify to allow Gadgetbridge to dismiss notifications on phone from watch
2021-07-28 09:41:27 +01:00
Eric Willisson
3e41465d64
Fix tabbing
2021-07-09 20:10:13 -04:00
Eric Willisson
c3e91b4a30
Adds support for dismissing Gadgetbridge notifications through notify app.
...
Most of the support was already there, so this is just a few small steps:
- notify.js gets a dismiss_and_hide() exported function that can send the "notify-" event to Gadgetbridge, if installed
- dismiss_and_hide() is called when the Bangle.js screen is touched, instead of just hide()
- Gadgetbridge's widget.js saves "notify"-type events to a variable
- Gadgetbridge's widget.js sends a DISMISS action back to the Android app on "notify-" events, using the saved event data
Note that this is a limited implementation. For example, only the most recent notfication is saved (when a new one comes in, the old one is overridden in the variable), so it will be dismissed on the phone. A more advanced implementation might make it possible to choose which notification to dismiss.
From my own testing, this does properly count as a "swipe-away" style dismiss event in Android, so apps that react to notifications being swiped away will be triggered as expected.
2021-07-09 14:56:19 -04:00
Richard de Boer
0b76f7848e
gbridge: respect Quiet Mode
2021-03-25 23:53:51 +01:00
Gordon Williams
b5c7ded4b5
gbridge 0.20: Reduce memory usage
2021-02-11 09:57:34 +00:00
Gordon Williams
0e2f33d656
gbridge: 0.19: Support for call incoming/start/end
2021-02-11 09:45:50 +00:00
Gordon Williams
23aa25dbef
tweaks - sort out activity handling when HRM=false (default), add README
2020-12-08 14:41:38 +00:00
Gordon Williams
9a3b203429
gadgetbridge: 0.18: Added reporting of step count and HRM (new Gadgetbridges can now log this)
2020-12-08 14:13:01 +00:00
Richard de Boer
6406788165
gbridge: Modified music notification for updated 'notify' library
2020-07-19 21:59:59 +02:00
Richard de Boer
1b2f8e7404
gbridge: Nicer display of alarm clock notifications
...
My phone generates these events for alarms (even labelled ones):
{"t":"notify","id":1592721702,"src":"ALARMCLOCKRECEIVER"}
{"t":"notify-","id":1592721702} // when dismissing the alarm
This commit shows a nice alarm-clock icon and friendlier title instead,
but preserves event title/body if it is provided after all.
Lifted the icon from apps/alarm/app-icon.js
2020-07-07 21:41:24 +02:00
Richard de Boer
a5f3118859
gbridge: Handle notify- events
...
So dismissing notifications on the phone also clears them on the watch
2020-07-07 20:53:00 +02:00
Richard de Boer
b172017f2e
gbridge: Don't keep LCD on while playing music
...
Looks like this fell through during the 'notify' upgrade.
Some apps can keep the LCD pretty much awake all the time with
"position" updates.
2020-06-30 22:48:00 +02:00
Gordon Williams
77de51dac4
gadgetbridge: Added 'find' event handling
2020-06-05 11:21:52 +01:00
Gordon Williams
519262793d
Added ability to specify dependencies (used for `notify` at the moment)
...
Gadgetbridge: Modified to use the 'notify' library
2020-06-04 15:19:37 +01:00
Richard de Boer
03246fdc85
gbridge: minor fixes
...
IDE kept complaining about unused constant & unsafe comparisons
2020-05-29 10:41:19 +02:00
Richard de Boer
855186f7c9
gbridge: improve settings handling
...
No need to keep them in memory after reload() is done
2020-05-29 10:37:44 +02:00
Richard de Boer
fa692c4d8e
gbridge: Fix setting to show/hide icon
...
Don't reload all widgets: just change this one and redraw
2020-05-29 00:05:26 +02:00
Richard de Boer
631abb812e
gbridge: Add setting to show/hide icon
2020-05-28 23:27:10 +02:00
Ben Whittaker
9ebb718cc2
gbridge: report battery status more often
...
Make the gbridge widget report battery status
- every 10 minutes
- 2 seconds after a new bluetooth connection is initiated
2020-05-17 19:12:31 -04:00
Ben Whittaker
31e56b23ed
Stop Gadgetbridge from ignoring initial message.
...
Gadgetbridge seems to ignore the first line sent to it after connecting.
This commit works around this by prepending each message with a blank line.
2020-05-17 19:12:31 -04:00
Gordon Williams
a4ec9965ba
Make widget play well with other Gadgetbridge widgets/apps
2020-04-16 10:31:59 +01:00
Gordon Williams
f890227b61
gbridge: 0.09: Update Bluetooth connection state automatically
2020-04-15 10:53:03 +01:00
Richard de Boer
1bea7a450e
gbridge: don't turn on screen at start of every song
...
Do draw the notification, so you can still look up what is playing.
2020-04-07 22:08:29 +02:00
Gordon Williams
155270f668
Merge branch 'master' into call-notifications
2020-04-03 13:25:38 +01:00
Michael Werner
792e79c3a8
Gbridge: Limit title length
...
Some group chats like in whatsapp have really long title as they consist of group chat name + person name
2020-04-02 21:20:56 +02:00
Michael Werner
8468899a80
Fix indention
2020-04-02 21:20:56 +02:00
Michael Werner
0af2cb7a6f
Gbridge: change animation timeout
...
a litte bit slower animation looks more fluent
2020-04-02 21:20:56 +02:00
Simon Weis
d60af1dabd
Remove lost break
2020-04-02 20:40:56 +02:00
Simon Weis
63d4dbb101
Inline variables and restore notification code
2020-04-02 20:36:58 +02:00
Simon Weis
33a88627d9
Fix music notifications
2020-03-28 13:30:13 +01:00
Simon Weis
b7b5d6764b
Adds gbridge call notification and refactor widget
2020-03-28 13:12:59 +01:00
Gordon Williams
e0d29c81f2
Big refactor #2 - variable width widgets
2020-03-05 13:15:27 +00:00
Gordon Williams
899579e1b1
gadgetbridge widget now shows connection state ( fix #77 )
2020-02-12 14:44:55 +00:00
ra100
65634ecccb
✨ gbridge: increase contrast
2020-02-10 12:44:22 +01:00
Gordon Williams
bcf0f80d29
add gadgetbridge app, plus ad versions
2019-12-05 14:48:36 +00:00