Commit Graph
100 Commits
Author SHA1 Message Date
cpfeiffer 6834f36ec7 Updated contributors list 2017-02-21 22:52:06 +01:00
cpfeiffer 337bfa1938 Handle button presses and log them
See #556
2017-02-21 21:41:21 +01:00
cpfeiffer e5d09b9fa2 Automatically start the service on boot (can be turned off)
Fixes #9
2017-02-17 23:24:44 +01:00
cpfeiffer 0042ffc514 Set the notification ID on alarm start 2017-02-10 22:52:55 +01:00
cpfeiffer 89bf63d540 Implement hashCode() when you implement equals()! 2017-02-10 00:32:03 +01:00
cpfeiffer 4f0674d038 Support for alarm clock notifications for Mi1 + Mi2 #538
No support for Pebble and HPlus for now.

Atm relies on the CM deskclock alarm, which nicely broadcasts
events about the current alarm. See
https://github.com/CyanogenMod/android_packages_apps_DeskClock.git
2017-02-07 23:49:10 +01:00
cpfeiffer d030ad9400 Ups, remove accidental import from C&P 2017-01-29 23:06:40 +01:00
cpfeiffer b157f84b83 Log connection attempt when BT is turned on 2017-01-29 22:56:56 +01:00
cpfeiffer 2ae4497261 Mi2: the only reason I can see for detecting MiBandSupport for Mi2
Fixes #529, hopefully
2017-01-28 23:25:15 +01:00
cpfeiffer ec6a8b6743 MI: some more logging 2017-01-28 23:25:15 +01:00
cpfeiffer 6c16b4fb15 Updated initial array list size to reflect reality 2017-01-28 23:25:15 +01:00
cpfeiffer 4c48b473ac Show device type in GBDeviceCandidate.toString() 2017-01-28 23:25:15 +01:00
Carsten PfeifferandGitHub 42031cb50f Merge pull request #527 from ivanovlev/master
Fix issue #522 : Transliterate Caller Name
2017-01-28 21:50:08 +01:00
cpfeiffer 13af1c1e11 Ignore Gadgetbridge's own notifications
Fixes #411
2017-01-27 00:23:45 +01:00
cpfeiffer f9779d9695 Improve some messages 2017-01-26 23:22:57 +01:00
cpfeiffer ba7d13fa5d Disable smart alarms for Mi2
Closes #471
2017-01-26 21:09:49 +01:00
cpfeiffer 5d3028c123 Mi1+2: Updated changelog 2017-01-26 00:17:50 +01:00
cpfeiffer ac68bfe351 Mi Band 1+2: backend implementation of making BT pairing optional
- cleaned up the DeviceService.connect() variants
- discovery: pass the device candidate around instead of the mac address

Attempts to fix #512, #514, #518
2017-01-26 00:16:38 +01:00
cpfeiffer b8b2d8830f Fix parceling GBDeviceCandidate 2017-01-26 00:16:38 +01:00
cpfeiffer 4c26c2933b Mi Band 1+2: make BT pairing optional
(Attemts to fix #512, #514, #518)
2017-01-26 00:16:38 +01:00
cpfeiffer d103d09fcf Mi Band: just a method rename 2017-01-26 00:16:38 +01:00
Carsten PfeifferandGitHub 5b116aae93 Merge pull request #511 from 6arms1leg/documentation
Added "known issues" item for Mi Band devices about firmware version …
2017-01-20 22:58:30 +01:00
Carsten PfeifferandGitHub 31ccaf361b Merge pull request #500 from ivanovlev/master
Transliterate unsupported Russian characters into English
2017-01-19 23:42:56 +01:00
Carsten PfeifferandGitHub e226a97c73 Merge pull request #503 from jpbarraca/hplus-fix-1
HPlus: fixed bug setting current date
2017-01-17 00:04:39 +01:00
cpfeiffer 1e24fa7ad8 Dummy weather notifucation config activity 2017-01-14 00:26:47 +01:00
Carsten PfeifferandGitHub d646b6773e Merge pull request #491 from jpbarraca/hplus-handle-data
HPlus: Improves device support
2017-01-10 20:40:07 +01:00
cpfeiffer 7b1ea68b62 Remove obsolete layout params
Closes #495 (thanks!)
2017-01-08 21:45:27 +01:00
cpfeiffer 96203f574f Tiny test for GattCharacteristic class 2017-01-08 21:37:43 +01:00
cpfeiffer 6c269aa089 Generic characteristic names from field names 2017-01-08 21:37:43 +01:00
cpfeiffer b2d9c357e7 Update changelog for Subsonic #474 2016-12-29 23:46:18 +01:00
cpfeiffer cde3b36968 Updated translations from transifex (thanks!) 2016-12-29 23:30:18 +01:00
cpfeiffer bf777800d2 Update changelog for #478 2016-12-29 23:27:49 +01:00
cpfeiffer 5d3c45d2c0 Mi2: Remember and use last synced timestamp in preferences
(instead of using the last sample's timestamp in the database.
The database also contains manual hr measurements and live activity
samples, so we would miss activity data before the last manual
measurement.

Closes #478
2016-12-29 23:23:20 +01:00
cpfeiffer e77c4e7bdb Mention ZeBand as supported device 2016-12-29 21:08:52 +01:00
cpfeiffer df1fe7c5b8 Port to UriHelper 2016-12-29 01:46:00 +01:00
cpfeiffer aadde7d1ca Port to UriHelper, fix potential resource leak 2016-12-29 01:41:47 +01:00
cpfeiffer a96a747119 Pebble: fix resource leak on app installation 2016-12-29 01:29:28 +01:00
cpfeiffer 0646eda646 Fix file potential handle leaks 2016-12-29 01:07:26 +01:00
cpfeiffer 9cea2fc3bd Update changelog for 0.16 2016-12-28 22:54:07 +01:00
cpfeiffer bb8aff8c99 Fix axis label color live activity (dark theme) 2016-12-26 12:51:20 +01:00
cpfeiffer da494cde7b Handle live activity for Mi2 and Mi1 in the same way #448
Realtime samples now use ActivitySample.NOT_MEASURED for unknown or
invalid values.
2016-12-26 12:51:12 +01:00
cpfeiffer 8719cadc43 Mi Band: fix live activity messing up stepcount #448
live samples now report relative steps, not absolute to the current
day's stepcount.

Also live samples' steps should NOT be added to the database since
they are already counted in the regular stepcount.
2016-12-26 01:38:20 +01:00
cpfeiffer 305bd7600c Fix current realtime steps calculations #450
timestamp is already in seconds instead of milliseconds

Also: port to REALTIME_SAMPLES
2016-12-26 00:23:02 +01:00
cpfeiffer 999d3e3252 Mi1: Attempt at throttling notifications during sync #438 2016-12-25 23:27:56 +01:00
Carsten PfeifferandGitHub a84bc16503 Merge pull request #470 from jpbarraca/hplus
Add preliminary support for HPlus devices: Zeblaze Zeband and others
2016-12-25 21:33:52 +01:00
cpfeiffer 375aa491d4 Another build fix 2016-12-15 21:06:17 +01:00
cpfeiffer caaa38ed04 Mi2: support for current battery status #449
so far we understand
- last charge date
- current level
- state normal
- state charging

and we are notified on changes.
2016-12-14 00:50:43 +01:00
cpfeiffer dd48869fa5 Mi2: move Miband2Support into the package it belongs 2016-12-14 00:28:35 +01:00
cpfeiffer ed36410500 Empty commit to get f-droid to try another build
(apparently there was a build problem on f-droid's side)
2016-12-13 17:43:59 +01:00
cpfeiffer efe3f2773b Mi2: mention firmware update 2016-12-11 23:43:13 +01:00
cpfeiffer 6e633e948a Updated translations from transifex (Thanks!) 2016-12-11 23:36:41 +01:00
cpfeiffer c69889d177 Simplified + fixed ArrayUtils.equals() + added lots of testcases 2016-12-11 23:30:20 +01:00
cpfeiffer eb8129f62e Remove outdated comment 2016-12-11 23:30:20 +01:00
cpfeiffer bcfc8bc110 Mi1/Mi2: fix firmware file probing for the different devices 2016-12-11 23:30:20 +01:00
cpfeiffer 40354f8f5a Some @Override 2016-12-11 21:31:27 +01:00
cpfeiffer 94c0d6af9d Mi2: Fix off-by-one in activity fetching 2016-12-11 21:31:27 +01:00
cpfeiffer daf6d12c62 Updated changelog for Mi2 fw update 2016-12-11 02:26:45 +01:00
cpfeiffer 6dfc895303 Mi2: Initial work on firmware update #427 2016-12-11 02:11:58 +01:00
cpfeiffer 4a19046301 Mi2: Some characteristics and opcodes for fw update 2016-12-11 02:11:58 +01:00
cpfeiffer fd2c182714 Mi 2: another characteristic rename (0000005) 2016-12-11 02:11:58 +01:00
cpfeiffer 83ad2a9bd9 Mi 2: rename characteristic 00000003 to "CONFIGURATION" 2016-12-11 02:11:58 +01:00
cpfeiffer 04c3bc8203 Updated README wrt bonding Mi Band a little bit 2016-12-06 21:28:16 +01:00
Carsten PfeifferandGitHub 82a05e29df Merge pull request #446 from carlos-ferreira/patch-1
Updated known issues for Mi Band
2016-12-06 21:23:23 +01:00
cpfeiffer 928bdd5d36 Adjust comments to current values
They look plausible compared to 1S activity
2016-12-04 20:25:20 +01:00
cpfeiffer c1c6e37066 Mi2: update features in README 2016-12-03 23:05:06 +01:00
cpfeiffer 44f74270df Mi2: Experimental support for activity recognition 2016-12-02 00:22:06 +01:00
cpfeiffer da297ecd8b Fix + cleanup time setting and calendar sending #441 2016-12-01 22:51:08 +01:00
Carsten PfeifferandGitHub dbe90d7ae3 Merge pull request #443 from uwehermann/fix_typos
Fix typos
2016-12-01 21:11:36 +01:00
cpfeiffer 092012ab31 Changelog for 0.14.3 2016-11-29 23:28:15 +01:00
cpfeiffer 09ff95eb34 Support for continuous hr readings (live activity) #323 2016-11-29 23:25:11 +01:00
cpfeiffer 49acde118d Do not log heartrate separately during miband 1s sync 2016-11-29 23:25:11 +01:00
cpfeiffer 011646b097 Fix activity data on Mi Band 1 #440 2016-11-29 22:22:54 +01:00
Carsten PfeifferandGitHub d9e20b161a Merge pull request #437 from Almtesh/master
French translation.
2016-11-27 21:02:07 +01:00
cpfeiffer 2f7eb9ef23 Some more improvements to discovery
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators
  can detect devices by their services.

Note: they should not rely on service uuids being available
2016-11-27 02:46:07 +01:00
cpfeiffer b9ff2cd468 A few improvements to discovery
- display the right icon for found device candidates
- scan for specific LE services
2016-11-27 01:09:20 +01:00
cpfeiffer 2d4645f6cc Fix only the first day label being displayed in Week Steps charts 2016-11-24 23:35:10 +01:00
cpfeiffer 7da328d5db Fix an invalid leftover check for array length
Also removed a method invocation that did not belong there.
2016-11-24 22:16:04 +01:00
cpfeiffer 02e6ce02b2 Add to 0.14.1 changelog 2016-11-24 22:03:02 +01:00
cpfeiffer 3fdfb7d172 Mi2: Support for setting the fitness goal (steps) 2016-11-24 21:58:32 +01:00
cpfeiffer 9bebf1d32f When memory is really low, free up some memory #436
(although we probably can't save much)
2016-11-24 21:15:27 +01:00
cpfeiffer 60cb67c3c8 Some cleanup 2016-11-24 21:15:27 +01:00
cpfeiffer cc0fbff297 Set the sample provider in getLatestActivitySample() 2016-11-24 21:15:27 +01:00
cpfeiffer 67d89ce1b9 Create the correct start-sync timestamp #323 2016-11-22 22:52:26 +01:00
cpfeiffer dfbaba4cb6 Make sure that the charts display the requested time range
(instead of only the range with available samples)
2016-11-22 15:53:58 +01:00
cpfeiffer 8d6888a13a Remove "(next)" from 0.14.0 2016-11-22 14:43:07 +01:00
cpfeiffer a8a7d8db31 Mi2: WIP synchronize only new data since last sync
(#323)
2016-11-22 00:05:41 +01:00
cpfeiffer 0c51f86afc Mi2: more work on activity data #323 2016-11-22 00:05:41 +01:00
cpfeiffer 82cd06f4c1 Mi2: WIP: initial support for activity data
(#323)
2016-11-22 00:05:41 +01:00
cpfeiffer dbe96582a7 Changelog for 0.14.0 2016-11-22 00:04:12 +01:00
cpfeiffer 51fa31aa66 Fix BLE type conversions problems 2016-11-18 23:36:22 +01:00
cpfeiffer 96a16245df Update to MPAndroidChart 3.0.1 2016-11-18 21:31:55 +01:00
cpfeiffer d8145a52f9 Activate the display when lifting the wrist #323
Configurable, defaults to true
2016-11-13 21:47:54 +01:00
cpfeiffer d89899557c Mi2: Add config option to configure date/time display
(added a new EventHandler method to set a specific configuration option)
2016-11-13 20:47:24 +01:00
cpfeiffer ddaf51768d Improved logging 2016-11-13 20:24:25 +01:00
cpfeiffer 3cc8d887ca Mi2: Initial support for wear location, hr during sleep and date format #323
- wear location from prefs is sent to the band
- hr measurement during sleep is sent to the band
- date format is sent to the band (date+time or just time)
  (TODO: needs preference option)
2016-11-13 01:44:52 +01:00
Carsten PfeifferandGitHub 1751c86479 Merge pull request #430 from 6arms1leg/documentation
Updated documentation ("Supported Devices" section, Mi Band 2 info)
2016-11-11 21:34:42 +01:00
cpfeiffer 3b474bb5a9 Move another notify registration to after initialization #408 2016-11-08 22:55:31 +01:00
cpfeiffer 4843f7fc2b More details regarding Mi hr features 2016-11-08 20:19:47 +01:00
cpfeiffer d0beee3df6 Updated documentation about features and how to use with Mi Bands 2016-11-08 20:17:51 +01:00
cpfeiffer 705912172d Adjust changelog to confirmed fixed bugreports 2016-11-07 22:22:59 +01:00