1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-08 15:35:24 +02:00
Commit Graph

257 Commits

Author SHA1 Message Date
Daniele Gobbetti
df741e9571 Install app on watch directly instead of telling the user to do so. 2016-02-26 15:29:26 +01:00
cpfeiffer
0b568df8de Extra byte indeed appears to be heartrate value #205 2016-02-26 00:04:33 +01:00
cpfeiffer
095ef56c14 Initial support for activity data sync with Mi 1S #205
Looks like the activity type is somehow wrong though, or I'm sleeping
all day ;-)
2016-02-25 23:52:34 +01:00
cpfeiffer
109146c8c1 Attempt at fixing a (re-) connection issue
Sometimes reconnection lead only to "Connected" state, but not "Initialized".
This probably happened when the device got disconnected earlier and then was
automatically reconnected. The reconnection closed the previous connection,
which caused the dispatch-thread to wake up and think the connection is
actually establish. Then, when the first action is invoked, it would fail
with an NPE because mBluetoothGatt passed to the action is actually null.
2016-02-18 23:44:01 +01:00
cpfeiffer
c86365ee2e Some more Mi Band pairing improvements #180
- listen to notifications early -- the band then actually tells us that
  authentication is required
- check for this after sending user info
- add authentication states to GBDevice
- workaround for event problems in pairing activity (delivered although
  already unregistered)
- BtLEQueue now deals with gatt events coming *before* connectGatt()
  actually returned (namely the connection event)
2016-02-13 00:15:16 +01:00
Daniele Gobbetti
8294921de7 Do not ack the sleep data until we can actually store them
Added helper method to fetch the latest timestamp stored in the DB, needed for the aforementioned feature.
Update changelog

This closes #188 \o/
2016-02-11 19:14:40 +01:00
Andreas Shimokawa
7436778700 Pebble: fix for recent morpheuz versions (maybe breaks old versions) 2016-02-11 12:49:01 +01:00
Daniele Gobbetti
20c4e49fe1 Refactoring of the Pebble Health steps data receiver.
Added logic to deal with pebble health sleep data.
Added database helper to change the type of a range of samples (needed for sleep data).
Fixes to the Pebble Health sample provider.
2016-02-09 17:52:21 +01:00
Andreas Shimokawa
d62946df63 Pebble: some minor code cleanups regarding health 2016-02-09 01:31:41 +01:00
Andreas Shimokawa
93db073538 Pebble: try to fix health code, might be broken, cant test 2016-02-09 00:56:16 +01:00
Andreas Shimokawa
12a5b53f00 Pebble: Merge DatalogHandler and DataLog session
Also:
- pass the length of the payload and not of the whole datalog buffer to handleMessage(), simplifying DatalogSessionHealth::handleMessage()
2016-02-09 00:49:42 +01:00
Andreas Shimokawa
b01a517813 Pebble: fix hexdump for health datalog 2016-02-08 23:33:05 +01:00
Andreas Shimokawa
0c4e606e74 Pebble: rename BLOBDB_HEALTH to BLOBDB_PREFERENCES and encodeSaneDistanceUnit to encodeSetSaneDistanceUnit
Also allow to set insane units in the method
2016-02-07 21:59:14 +01:00
danielegobbetti
10b5c571bb Use Kilometers as distance unit 2016-02-07 16:44:16 +01:00
danielegobbetti
2f8207abf9 Initial support for reading pebble health steps/activity data. 2016-02-07 09:27:51 +01:00
danielegobbetti
03ad7f5a24 Do not enable insights on the watch. Add notice about health activation to changelog. 2016-02-06 21:38:55 +01:00
Andreas Shimokawa
59d6553c54 Pebble: fix stupid bug that broke active reconnection 2016-02-06 19:35:49 +01:00
Andreas Shimokawa
85bad9abf5 Pebble: store information about datalog sessions (uuid, item type, length, tag)
... and log them if data comes in from a known id.
Also request open sessions on connect.
And last but not least hex dump data which might be from Health (the tags that I never see on Aplite but always on Basalt)
2016-02-03 23:27:35 +01:00
Andreas Shimokawa
493fcfc853 Pebble: improve datalog output 2016-02-03 20:23:56 +01:00
Daniele Gobbetti
baf5eee72f Refactored the User Activity-tracking related preferences.
Created a new device-independent class ActivityUser to hold the data
Moved the constants from the miband constant class to the ActivityUser class
Removed the miband-specific in favor of common-prefixed preferences (with upgrade support for legacy values)
Changed the way the gender is stored to an integer value
Removed the hardcoded default values for user data in favor of static fields of the ActivityUser class
2016-02-02 17:33:24 +01:00
Daniele Gobbetti
5b016e2577 WIP, read the miband user information for the time being. 2016-01-29 17:45:35 +01:00
Daniele Gobbetti
9f2a7f5448 actual deletetion of the Health app.
It brings the health watchapp back to the pristine state "you need pebble health in order to use this app". The data, however, is not deleted!
2016-01-28 11:59:23 +01:00
Andreas Shimokawa
33cf76172b Pebble: add hack to enable and maybe disable Health from the App Manager activity 2016-01-27 23:02:09 +01:00
Andreas Shimokawa
666c53a1e4 Pebble: make encodeBlobDB accept Strings and UUIDS as keys, use it for Heath activation 2016-01-26 10:48:50 +01:00
danielegobbetti
7ba3a874a2 Message to activate Pebble Health, possibly. 2016-01-25 23:15:19 +01:00
Andreas Shimokawa
a72373c17c move PebbleContentProvider.java 2016-01-22 20:38:44 +01:00
Andreas Shimokawa
b9c1332442 Testing content provdider 2016-01-22 20:21:18 +01:00
Andreas Shimokawa
de4ffe8fb0 allow to setup a common suffix for canned replies (defaults to " (canned reply)") 2016-01-11 15:29:12 +01:00
Andreas Shimokawa
0b53f60b0d Pebble: EXPERIMENTAL support for replying to wearable notifications
Tested with Signal, more could work.
2016-01-09 17:54:17 +01:00
Andreas Shimokawa
46bbab7df0 rename IDSenderLookup to LimitedQueue and store Object instead of String 2016-01-09 16:07:22 +01:00
cpfeiffer
ae5417b9cc Avoid NPEs when aborting an erroneous sync #205 2016-01-07 00:33:20 +01:00
Andreas Shimokawa
50cd5b2629 Pebble: Fix regression which freezes Gadgetbridge when disconnecting via long-press menu 2016-01-02 00:30:11 +01:00
Andreas Shimokawa
d358ed81d2 Pebble: Display a failure if we cannot map a notification id back to a Phone number when replying to an SMS 2015-12-31 01:43:00 +01:00
Andreas Shimokawa
890016d652 Pebble: Fix crash when turning off bluetooth when connected on Android 6.0 2015-12-31 01:13:48 +01:00
Daniele Gobbetti
1cbe965802 Add analog+digital settings 2015-12-29 10:45:14 +01:00
Daniele Gobbetti
f9122bc674 send the calendar events each time the time is sent to miband, until we have a common strategy (e.g. EventHandler). 2015-12-29 10:01:32 +01:00
Daniele Gobbetti
1d9e1d7caf Fix possible race condition when availableSlots == 3
(There are two difficult things...)
2015-12-29 09:18:02 +01:00
Andreas Shimokawa
e3d0c63676 fix PebStyle color 2015-12-27 21:39:46 +01:00
Andreas Shimokawa
2caef02309 fix typo :/ 2015-12-27 19:16:56 +01:00
Andreas Shimokawa
11e02fbf5f Pebble: add experimental reconnect support for standby-mode on firmware 3.x
- You should also set reconnect attempts to 0 in preferences when using this.
- It also works when you set flight mode on the pebble, then wait for about 5 minutes and turn BT back on
- Pebble FW 2.x support ist completely untested.
2015-12-27 19:11:40 +01:00
Daniele Gobbetti
3ee418a45b Implement pushing messages upon watchapp start.
This watchface is used as example: https://github.com/ygalanter/PebStyle because it doesn't initiate a connection like others do.

At the moment this is more a proof of concept^W^W^Wdirty hack then anything else.
2015-12-23 14:22:28 +01:00
Daniele Gobbetti
5f189aedbd Add support for some configuration options of TimeStylePebble watchface ( https://github.com/freakified/TimeStylePebble ) 2015-12-23 09:04:01 +01:00
Andreas Shimokawa
87739d94db Pebble: unify FW 2.x and 3.x action decoding 2015-12-20 21:23:39 +01:00
danielegobbetti
a71c27d25e Added subtitle to timeline pins 2015-12-20 19:50:48 +01:00
Andreas Shimokawa
96e21dbf21 Pebble: fix "[Action]" being displayed as SMS action when no canned replies are defined 2015-12-20 00:58:14 +01:00
Andreas Shimokawa
35c7ab6dde PEbble: add database parameter to encodeBlobDBClear(), minor cleanups 2015-12-20 00:40:38 +01:00
danielegobbetti
5026cf269f Added command to clear the DB on pebble. 2015-12-19 20:52:44 +01:00
Andreas Shimokawa
4b29d63d4e Pebble: more debugging 2015-12-19 20:30:46 +01:00
danielegobbetti
9fb2e1620e Rename misnamed file. 2015-12-19 14:36:28 +01:00
danielegobbetti
6582ead01c Add pebble health uuid. 2015-12-19 09:43:55 +01:00