1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-06 18:27:02 +01:00
Commit Graph

959 Commits

Author SHA1 Message Date
cpfeiffer
dc162a9ac8 Only add column if it doesn't exist yet
Column can exist if there down- and upgrades
2016-03-04 23:25:11 +01:00
cpfeiffer
3b3458e196 Show the heart rate measurement tooltip a little longer 2016-03-04 23:08:13 +01:00
Andreas Shimokawa
652c5575b3 user ckChangeLog to display the Changelog
There were other fancier libraries, but this one was so simple to integrate, that I could not resist ;)
2016-03-02 00:37:43 +01:00
Andreas Shimokawa
5eb525ee44 Merge pull request #239 from 0nse/sleepAlarmWidget
Add widget to quickly set an alarm according to the user's preferred sleep length (in hours)
2016-03-02 00:36:13 +01:00
0nse
ba35679690 / Pad the alarm time with zeroes when toasting. 2016-03-02 00:15:31 +01:00
0nse
7651c080c2 / Only execute setAlarmViaAlarmManager when we are running Lollipop+. 2016-03-02 00:05:58 +01:00
0nse
6e7abecb17 / Use GB.toast instead of Android Toast. 2016-03-02 00:01:41 +01:00
cpfeiffer
2cdeecb39c 0.8.1 2016-02-29 23:24:35 +01:00
Andreas Shimokawa
fc464d112d change some more short and byte to int regarding Morpheuz 2016-02-29 23:13:07 +01:00
Andreas Shimokawa
9adae3b538 bump version, update CHANGELOG.md 2016-02-29 23:06:30 +01:00
cpfeiffer
cbe73f71a1 Fix some typos (thanks!) #178 2016-02-29 22:08:34 +01:00
0nse
3babedf936 + Add Widget which allows quickly creating an alarm depending on the user's preferred sleep length (in hours). 2016-02-29 21:36:39 +01:00
Andreas Shimokawa
ed85fd5011 convert byte and short values related to activity tracking to int
This avoids a lot of problems because java
- does not know unsigned values
- jvm and dalvic do not internally support byte and short
- sqlite does not know them either
2016-02-29 20:54:39 +01:00
cpfeiffer
1c9be79c67 Add onHeartRateTest() method 2016-02-28 14:52:17 +01:00
cpfeiffer
ddde25e5df Initial firmware update support for Mi1S #234 2016-02-28 02:46:48 +01:00
cpfeiffer
d7822d07a6 Show the measured heart rate as a Toast, for now #178 2016-02-27 23:27:15 +01:00
cpfeiffer
540e008548 Rename to Heart Rate Test 2016-02-27 23:24:45 +01:00
cpfeiffer
4898dab652 Move "Reboot" button to the very bottom to prevent accidents 2016-02-27 23:24:03 +01:00
cpfeiffer
3ff31cd73b Disable heartrate in charts fow now, fix notification for manual hr 2016-02-27 23:18:44 +01:00
cpfeiffer
d6dfc3b6ec Fix some ClassCastExceptions in charts since switching to CombinedChart 2016-02-27 15:30:46 +01:00
Andreas Shimokawa
c449181083 Pebble: store appKeys in .json also.
Rumour says someone needs it soon...
2016-02-27 11:40:37 +01:00
cpfeiffer
ac8d7bee5f Only do heart rate stuff when supported #178 2016-02-27 11:23:55 +01:00
cpfeiffer
de6f898fef Some more fixes regarding heart rate measurement #178 2016-02-27 11:18:16 +01:00
Kasha
9e636d66f6 Initial heart rate support by KashaMalaga #178
(removed unrelated Android M fixes and squashed commits)
2016-02-27 00:05:06 +01:00
cpfeiffer
0ef738067d Some work in progress for heart rate graphs #178
Currently we get the heart rate when synchronizing activity data
(i.e. not live) and we write it to the activity database so that we
can show a nice graph. The value is currently always 0 though,
because we can't enable recording hr, yet.
2016-02-26 23:45:17 +01:00
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
a10c6f3b9f Some initial heartrate support #205
(not visible to user yet)
2016-02-26 00:30:57 +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
defa97b882 Log the toast message immediately, not delayed in the main thread
(this helps understanding logs)
2016-02-24 23:53:30 +01:00
danielegobbetti
b5a726b777 Change layout of the alarms activity, fixes #216. 2016-02-21 17:21:04 +01:00
danielegobbetti
6eb35b955e Prevent race condition on android 6 (?) at the cost of losing the gender data (we cannot display a toast at this point unfortunately). 2016-02-21 16:46:48 +01:00
Andreas Shimokawa
db6f26fcd5 bump version, update CHANGELOG.md and README.md 2016-02-21 15:46:53 +01:00
Andreas Shimokawa
1a96bd31e5 Request permissions at runtime on Android 6. Closes #219
TODO: Tell the user why we request that and if he really needs it (if he does not have both a Mi Band and a Pebble she does not need all)
2016-02-21 15:29:18 +01:00
danielegobbetti
b858e50804 Use strings to store activity shared preferences.
System has trouble with accessing integer in the preferences, so let's not use them.
2016-02-21 13:04:32 +01:00
Andreas Shimokawa
c436c4c055 Pebble: Fix wrong(previous) contact being displayed on the pebble. Fixes #228 2016-02-20 22:20:02 +01:00
Andreas Shimokawa
7626667a0a try to blindly fix user preferences screen 2016-02-19 23:48:08 +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
Andreas Shimokawa
70ae5a2a3a Pebble: Allow to select the preferred activity tracker via settings activity (Health, Misfit, Morpheuz) 2016-02-18 20:41:22 +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
Julien Pivotto
dd9864015d Fix #221 - Cast pair.first as integer
This commit fixes the following compilation error:

```
:app:compileDebugJavaWithJavac
/home/bob/dev/Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LimitedQueue.java:26:
error: incomparable types: Object and int
            if (pair.first == id) {
                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.
```
2016-02-08 06:32:36 +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