Commit Graph

61 Commits (597ee4c08bc185bb41fa7db173bb7c6061466280)

Author SHA1 Message Date
Gordon Williams 4ff35f0787 minor tweaks after #2889 2023-08-09 09:16:33 +01:00
José Rebelo 89737153a0 Implement API for activity fetching 2023-08-09 08:50:49 +01:00
Gordon Williams 0ba8cef33c Convert Yes/No On/Off in settings to checkboxes, add /*LANG*/ to some more text strings 2023-02-23 11:46:49 +00:00
Alessandro Cocco 42c2b5c8a2 Use default Bangle formatter for booleans 2022-06-18 22:08:51 +02:00
Gordon Williams e0937a942b messages 0.25: Fix widget memory usage issues if message received and watch repeatedly calls Bangle.drawWidgets (fix #1550) 2022-03-09 13:39:19 +00:00
Richard de Boer f131426976
gbridge: Include charging state in battery updates to phone 2022-02-02 20:34:06 +01:00
Adam Schmalhofer 01d3615663 Let apps.json be generated by jekyll
Reading

https://github.com/espruino/BangleApps/issues/1020
https://github.com/espruino/BangleApps/issues/46

My understanding is that the requirement for a splitt apps.json solution
is:

  - work seemlessly with github pages (no manually calling a script)

  - single (or at most a few) apps.json for the browser to load for the
    store so the store page is fast

As the github pages already use jekyll to build the store page this can
be solved by a minimal jekyll plugin. This is a proof of concept of
that. If the concept is accepted in a next step, I will create the
splitt files for mmore that just the two here.
2022-01-05 21:39:45 +01:00
Adam Schmalhofer 8ef3a6a1a6 Updated gbride changelog 2021-12-11 10:18:34 +01:00
Adam Schmalhofer b99024f9ca Fix gbridge inflating steps 2021-12-11 10:16:34 +01:00
Adam Schmalhofer c88121daf8 Bumbed gbridge version 2021-12-08 21:05:21 +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 5f5ca64cb4 android 0.04: Android icon now goes to settings page with 'find phone' 2021-11-25 15:21:59 +00:00
Richard de Boer 5cb930a1e4 weather: Bangle.js 2 support
- use g.fillPoly when device doesn't support g.fillPolyAA
- use (mostly) 3-bit colors instead of dithering
- crash a bit less on incomplete weather data
2021-11-20 18:56:45 +01:00
hughbarney d55417d90f Gbridge added troubleshooting section to README 2021-10-01 13:35:58 +01:00
Gordon Williams c7be79530b typo 2021-09-15 16:40:50 +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
Richard de Boer 427fd49fa3 gbridge: fix HRM setting
The settings menu didn't handle `undefined` value for `hrm` properly, so
you were unable to toggle it.
Fixed by forcing the value to a boolean.
2021-02-28 21:55:29 +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 8df352cca9 Add some sample GB() messages, for testing purposes 2020-07-19 21:54:25 +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
Richard de Boer 27c02f05e4 Gadgetbridge: move config to settings menu
gbridge: remove `gbridge.app.js` from `apps.json`

This file no longer exists, so don't mention it anymore.
2020-04-06 21:52:56 +02:00
Gordon Williams 86ab3706ea Gadgetbridge App 'Connected' state is no longer toggleable 2020-04-03 13:42:31 +01:00
Gordon Williams 155270f668
Merge branch 'master' into call-notifications 2020-04-03 13:25:38 +01:00
Michael Werner 9692204ce0 Bump Gadgetbridge version to 0.05 2020-04-02 21:20:56 +02: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