Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Shimokawa a1308e816e typo 2018-04-16 20:17:24 +02:00
Andreas Shimokawa 3b3185d46f bump version, update changelog 2018-04-16 20:13:21 +02:00
Andreas Shimokawa d87659c9b9 fix changelog 2018-04-15 00:45:08 +02:00
Andreas Shimokawa 58db99cfc7 Bump version, add changelogs 2018-04-15 00:32:54 +02:00
Andreas Shimokawa 965964a6b7 Weather: get wind direction and speed also from CM weather reciver 2018-04-14 21:56:10 +02:00
Andreas Shimokawa 12ca479439 Amazfit Bip: Various improvements to GPS track fetching
- stop refreshing state of swipe layout and refresh list after fetching
- allow fetching when device gets connected while being inside the activity

(#952)
2018-04-02 10:15:26 +02:00
Andreas Shimokawa e19c3f7ea0 Amazfit Bip: work around problems when syncing tracks in CEST
(#952)
2018-04-02 00:22:55 +02:00
Andreas Shimokawa 29a05f1d8f refactor onFetchActivityData() into onFetchRecordedData(dataTypes) to make it more generic
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P

Also fix some android studio warnings on the go...
2018-03-31 16:21:25 +02:00
Andreas Shimokawa c493df2423 Merge branch 'bip-wip' 2018-03-31 11:31:03 +02:00
Andreas Shimokawa 4e496cf2af Fix warnings in DiscoveryActivity and fix a potential NPE (fixes #1048) 2018-03-30 15:04:53 +02:00
Andreas Shimokawa e48b230bb8 update android support libraries 2018-03-30 15:04:15 +02:00
Andreas Shimokawa cf97677cdc Amazfit Bip: Whitelist Firmware 0.1.1.14 2018-03-30 14:40:40 +02:00
Andreas Shimokawa 66bb0bd81b Merge branch 'master' into bip-wip 2018-03-27 11:09:59 +02:00
Andreas Shimokawa 49b06537ee update gradle plugin to 3.1.0 2018-03-27 11:09:33 +02:00
Andreas Shimokawa 77b13a1048 bump version, add changelogs 2018-03-25 10:49:38 +02:00
Andreas Shimokawa 41632b8eb3 Only send dummy AQI to Bip, not to Cor
See #1033
2018-03-24 19:28:06 +01:00
Andreas Shimokawa 74f9798071 Amazfit Cor: try to send location
This could help #1033
2018-03-24 19:22:49 +01:00
Andreas Shimokawa 73cfeb8a7e Mi Band 2: scheduling diplay on lift wrist does not work (only on Bip), make the on and off settings at least work again... 2018-03-24 00:00:25 +01:00
Andreas Shimokawa e26dbc6812 Mi Band 2/Bip/Cor: allow to set a period when the display/background light gets enabled when lifting the wrist
Closes #1013
2018-03-23 23:30:28 +01:00
Andreas Shimokawa a8fdcb50f3 fix bad merge from master 2018-03-13 21:17:14 +01:00
Andreas Shimokawa 3d3cc1f40c Merge branch 'master' into bip-wip 2018-03-13 17:27:18 +01:00
Andreas Shimokawa 6217d4c233 add changelog, bump version 2018-03-03 22:37:27 +01:00
Andreas Shimokawa 0ea5c3dee1 Charts: Ignore heart rate data if sample indicates that the device was not worn
Closes #1005
2018-02-26 22:06:56 +01:00
Andreas Shimokawa 6ebc763a4c Amazfit Bip: whitelist firmware 0.1.0.86 2018-02-24 00:03:19 +01:00
Andreas Shimokawa 3fc9586000 bump version, add changelogs 2018-02-18 22:31:25 +01:00
Andreas Shimokawa 669f4bcdd0 Mi Band 2: use native notification patterns instead of manually timed ones
What we do now is:
- Send a notification with the app icon
- Send the vibration pattern right away (this causes the first unwanted
  vibration to be cancelled immediately and only the pattern is noticable,
  while the icon stays on screen during the vibration pattern)
- (optional) send the text together with a generic sms icon

This also fixes problems of text not appearing in newer firmwares when
a notification pattern with repeat has been set in Mi Band settings.
2018-02-18 01:43:05 +01:00
Andreas Shimokawa e48885df7d Merge branch 'master' into bip-wip 2018-02-15 23:38:06 +01:00
Andreas Shimokawa 4d7c697497 Pebble: Fix for background javascript that tries to send floats or doubles
Also log further exceptions

Thanks @danielegobbetti for the original patch ;)
2018-02-14 23:20:22 +01:00
Andreas Shimokawa 553f30f152 XML 2018-02-12 08:19:06 +01:00
Andreas Shimokawa e915261a42 bump version, add changelogs 2018-02-12 08:12:14 +01:00
Andreas Shimokawa b9c6b3bb8f Amazfit Bip: Whitelist fw 0.1.0.70/80 and fonts
Also change the recommended flashing order of .fw .res and .gps
2018-02-08 22:41:16 +01:00
Andreas Shimokawa 8c100c280d add changelogs, bump version 2018-02-08 22:24:27 +01:00
Andreas Shimokawa ea4a4edc5b Amazfit Bip: Fix language setting on new firmwares 2018-02-08 22:21:15 +01:00
Andreas Shimokawa b2ea4a0627 update changelogs, bump version 2018-02-04 00:16:56 +01:00
Andreas Shimokawa e657b327c9 Pebble: only call Pebble object in javascript if it is actually available 2018-02-04 00:02:14 +01:00
Andreas Shimokawa 06929d04f9 Pebble: when faking the OWN response also set the "description" field with the current condition
Helps TrekVolle to display weather
2018-02-03 23:08:12 +01:00
Andreas Shimokawa 3871b6f0be Amazfit Cor: Allow watchfaces to be flashed
Untested as Cor has no maintainer
2018-02-01 14:22:18 +01:00
Andreas Shimokawa 5973f189eb Amazfit Bip: try to detect the font type not by the size
This could help modders
2018-01-30 23:28:49 +01:00
Andreas Shimokawa 95cc538575 Amazfit Bip: Allow language to be set to Spanish (needs firmware 0.1.0.66 beta, not recommended)
This also requires the latin font to be flashed before.
2018-01-30 23:06:08 +01:00
Andreas Shimokawa 0c907f0ba1 Amazfit Bip: whitelist 0.1.0.44 firmware 2018-01-27 23:03:47 +01:00
Andreas Shimokawa 5140809253 bump version, add changelog 2018-01-27 22:57:22 +01:00
Andreas Shimokawa f6f4d7ec40 Amazfit Cor: support flashing new res format also on Cor 2018-01-27 21:51:34 +01:00
Andreas Shimokawa 14a6c9a626 Amazfit Bip: support flashing new res, font, and latin font files
Required for firmware 0.1.0.66
2018-01-27 21:41:35 +01:00
Andreas Shimokawa f03a3c1f3b Pebble: try to fix ack/nack callbacks in background js 2018-01-25 17:31:47 +01:00
Andreas Shimokawa d9c012025d Pebble: prepend application start event to premature appmessage from a newly started app
This should fix some InvalidStateExceptions when using background javascript
2018-01-25 16:42:43 +01:00
Andreas Shimokawa 1349a1c7da Merge branch 'master' into bip-wip 2018-01-22 08:57:01 +01:00
Andreas Shimokawa 76cf667202 Amazfit Bip, do not set menu items during initializaton
(This could prevent menus from vanishing when updating to FW 0.1.0.51)
2018-01-20 01:34:40 +01:00
Andreas Shimokawa 06d6aeacb9 Prepare find phone feature to be generic and implement apphandler for upcoming pebble helper app 2018-01-19 23:12:50 +01:00
Andreas Shimokawa 3d8d5e8d57 bump version, update changelogs 2018-01-14 18:29:22 +01:00
Andreas Shimokawa 04018955c1 Mi Band HRX: support older firmwares where the Band was named "Mi Band 2i" 2018-01-14 16:34:40 +01:00
Andreas Shimokawa 69be089c30 draft changelog 2018-01-13 19:18:18 +01:00
Andreas Shimokawa c420f2ce93 Amazfit Bip: implement find phone feature
This probably also works with Amazfit Cor

Closes #887
2018-01-13 18:46:21 +01:00
Andreas Shimokawa fda4816fc1 Mi Band 2: Whitellist firmwares I tested
Fixes #939
2018-01-13 16:56:30 +01:00
Andreas Shimokawa eec0cd1553 Try to make alarm details scrollable. Blind attempt at fixing #935 2018-01-13 16:38:44 +01:00
Andreas Shimokawa aca31c320a Amazfit Cor: allow to flash latest firmware 2018-01-13 16:29:48 +01:00
Andreas Shimokawa 68bd6f99e2 Amazfit Bip: whitelist latest firmwares and support flashing latest GPS firmware 2018-01-13 11:12:58 +01:00
Andreas Shimokawa 6f68c8adde Merge branch 'master' into bip-wip 2018-01-04 12:09:57 +01:00
Andreas Shimokawa cad9e4ddd0 Amazfit Bip: whitelist firmware 0.1.0.39 2017-12-31 00:07:40 +01:00
Andreas Shimokawa 7358c5da58 bump version, update changelogs 2017-12-30 22:45:10 +01:00
Andreas Shimokawa d4ce333f14 Amazfit Cor: Fix problem with firmware 1.0.6.27 where Cor was detected as Mi Band 2
The root cause of this problem is that starting from firmware 1.0.6.27 the
bluetooth name was changed to "Amazfit Cor" from "Amazfit Band"

This resulted in advanced features not working, including firmware flashing.
2017-12-30 22:27:00 +01:00
Andreas Shimokawa 01a5d862a0 Mi Band 1S: fix regression with firmware 4.16.4.22 and whitelist 4.16.11.15 2017-12-29 00:41:21 +01:00
Andreas Shimokawa dc51714d01 Mi Band: Support activity fetching in later firmwares (needs testing)
Based on the profile version which is 0x2000700 for both the bug reporter on a Mi Band 1 and for me on a Mi Band 1s
this either expects packets with length 20 (old firmwares) or 16 for HR enabled bands and 18 for non-HR enabled bands (new firmwares)

We check for profile version >=0x02000000 which is guessed, that needs confirmation for older firmwares and untested ones

Fixes #915
2017-12-28 01:07:25 +01:00
Andreas Shimokawa f85fd2dc46 add changelogs for 0.23.1 2017-12-23 00:14:34 +01:00
Andreas Shimokawa b91204e109 Amazfit Bip: allow installation of latest gps firmware 2017-12-22 23:29:38 +01:00
Andreas Shimokawa ce378f6d35 bump version 2017-12-21 10:17:37 +01:00
Andreas Shimokawa f6b183d39a Allow firmware files up to 1.5MB
This helps some experiments
2017-12-21 09:40:47 +01:00
Andreas Shimokawa ad750c0047 try to fix cor firmware recognition for newer versions 2017-12-21 09:35:33 +01:00
Andreas ShimokawaandGitHub 1c84a5b2c7 Update FEATURES.md 2017-12-19 17:03:29 +01:00
Andreas ShimokawaandGitHub 4edd8539d6 Update README.md 2017-12-18 22:35:57 +01:00
Andreas ShimokawaandGitHub c19eb4e8c8 Update README.md 2017-12-18 22:33:58 +01:00
Andreas Shimokawa 7e2f895001 Merge branch 'master' into bip-wip 2017-12-17 00:24:48 +01:00
Andreas Shimokawa 64968d8a99 Amazfit Bip/Cor: change AQI string from (fake) to (n/a) 2017-12-17 00:01:00 +01:00
Andreas Shimokawa 2cd53665a7 add changelogs 2017-12-16 23:54:39 +01:00
Andreas Shimokawa 17a820028e move weather to another screen 2017-12-16 23:42:50 +01:00
Andreas Shimokawa 34c3737f3c Amazfit Bip: Whilelist recently tested versions 2017-12-16 23:25:56 +01:00
Andreas Shimokawa e0e5a6d7e8 add Amzfit Cor to README 2017-12-16 11:31:27 +01:00
Andreas Shimokawa 22eb69d1c2 read humidity from CM Weather provider 2017-12-14 15:10:14 +01:00
Andreas Shimokawa 948002dc7c Weather: recreate OWM fake reply from weatherSpec, no not directly create in in Weather Notification receiver
This should bring CM weather on par with Weather Notficication when using background js
2017-12-14 14:54:09 +01:00
Andreas Shimokawa 1752b1b51e fix cm/lineage weather not updating after changing location 2017-12-12 22:36:15 +01:00
Andreas Shimokawa d2d7378a48 update version to 0.23.0 2017-12-11 19:54:36 +01:00
Andreas Shimokawa bfceaf9cc9 Merge branch 'master' into bip-wip 2017-12-11 19:30:54 +01:00
Andreas Shimokawa f0ac296492 Initial support for cyanogenmod/lineage weather provider
TODO:
- also reconstruct json for Pebble background js fake replies
- find a better location for settings
- interatively display candidates when looking up location
- grey out setting on non-cm/los devices
2017-12-11 19:09:37 +01:00
Andreas Shimokawa b7b96b5ab5 Amazfit Bip/Cor: for untested installable files, at least display the type (res/font/gps/watchface)
For res the version is also displayed (the same as noted in the wiki)
2017-12-10 20:30:27 +01:00
Andreas Shimokawa ff93122ddc Amazfit Bip/Cor: parse and display firmware version for unknown versions
Unfortunately that does not work for the Mi Band 2 yet
2017-12-10 11:31:42 +01:00
Andreas Shimokawa 8fbf97f713 Amazfit Bip/Cor: Send fake AQI 0 to make current weather appear
I have no idea why this is necessary.
But at least it makes the current weather visible :/
2017-12-08 08:26:10 +01:00
Andreas Shimokawa eec0a4dc4c Amazfit Bip/Cor: Send also current temperature/condition
Closes #905
2017-12-04 22:33:53 +01:00
Andreas Shimokawa c95b9d99e5 remove version from fastlane changelog 2017-12-02 23:50:56 +01:00
Andreas Shimokawa 3108f5c22c XML: the worst invention after Java 2017-12-02 21:29:43 +01:00
Andreas Shimokawa f7f0722a1f bump version, add changelog 2017-12-02 21:25:09 +01:00
Andreas Shimokawa eb9d321b95 Use Teclast H30 code for Teclast H10
Thanks @newfla for pointing that hout
Closes #867
2017-12-02 20:35:56 +01:00
Andreas Shimokawa 1ccc99c3bc Fix broken string in Norwegian translation 2017-12-02 20:34:13 +01:00
Andreas Shimokawa 7beb793165 Amazfit Bip: Fix installation of new 0.1.0.11 firmware
Also whitelist 0.0.9.49 and .59
2017-12-02 01:28:59 +01:00
Andreas Shimokawa 9dfde46bb0 Amazfit Bip: send condition string also for forecast days
String for forecasts are looked up from OWM condition ids, while the current condition string is already translated by WeatherNotification
2017-11-30 18:26:10 +01:00
Andreas Shimokawa 0befc1a95e Weather refactoring
No longer save an instance of ParcelableWeather2, rely on our WeatherSpec instead which now has all forecast data and save reconstructed owm weather json in Weather
2017-11-30 10:24:31 +01:00
Andreas Shimokawa 879272deb7 Weather: refactoring and support forecast for more than one day 2017-11-29 23:57:36 +01:00
Andreas Shimokawa 36e50bddb0 remove obsolete comment 2017-11-19 23:47:06 +01:00
Andreas Shimokawa c325ba1a22 Amazfit Bip: show find phone events (not yet supported) 2017-11-19 23:46:58 +01:00
Andreas Shimokawa 92c9d347a6 bump version, add changelog 2017-11-14 23:36:13 +01:00
Andreas Shimokawa 20208ca7a3 Work around non-working outlook notifications
See #851
2017-11-14 23:27:01 +01:00
Andreas Shimokawa 7ffcc44378 Pebble: fix nasty crash when appmessage id is > 127
This is a regression since Gadgetbridge 0.22.0

Potentially fixes the following:

- #868
- #876
- #884

NOTE:

Java has no unisgned, java has no unsigned, java has no unsigned.
Java has no unisgned, java has no unsigned, java has no unsigned.
Java has no unisgned, java has no unsigned, java has no unsigned.
2017-11-14 22:28:54 +01:00