1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-09-02 21:02:48 +02:00
Commit Graph

1688 Commits

Author SHA1 Message Date
Erik Johansson
eae59b09e4 Improve BluetoothTrisaBodyAnalyze
PR #342
2018-10-13 20:16:59 +02:00
Erik Johansson
7940ad95ed Remove unused imports 2018-10-13 20:09:26 +02:00
Erik Johansson
4ff78eb77e Upgrade build tools 2018-10-13 19:31:46 +02:00
Erik Johansson
09b0c81a0d Add Vietnamese to language list 2018-10-13 19:28:14 +02:00
Erik Johansson
d29884d0ff Continue even if discoverServices return false
To see if it helps #341
2018-10-13 19:21:17 +02:00
Maks Verver
28cee4ea04 Add Converters.fromSignedInt* methods. 2018-10-13 16:12:31 +02:00
Maks Verver
d9885b967f Create overloads of Converters.toInt* that write to an existing buffer.
This is symmetric with Converters.from*Int* which take a buffer and offset too.
2018-10-13 15:24:31 +02:00
Maks Verver
90ea78f489 Add Converters.toInt16Le() for symmetry with toInt16Be(). 2018-10-13 15:24:31 +02:00
Maks Verver
94d138b9af Rename Converters.toUnsignedInt* to Convertors.toInt*.
These functions work equally well with signed values.
2018-10-13 15:24:31 +02:00
Maks Verver
303aedb4e7 Reuse Converters.fromUnsignedInt24Le() to implement getBase10Float().
From the observed data, it's not clear whether the mantissa should be
interpreted as signed or not. Since two metrics encoded as base-10 floats
(weight and resistance) cannot be negative, and the Trisa Health Vital app
interprets the mantissa as unsigned, we will treat it as unsigned here, too.
2018-10-13 15:24:31 +02:00
Maks Verver
b17c1971fb Use resistance measurement to calculate body composition data.
Coëfficients were obtained by reverse-engineering the discontinued Trisa Vital
Bluetooth app. The resulting figures do not seem to be very accurate.
2018-10-13 15:24:31 +02:00
mahmut özcan
9589dc3226 Translated using Weblate (Turkish)
Currently translated at 90.2% (195 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/tr/
2018-10-13 09:39:38 +02:00
Truc Hoang
4883b0e3c0 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (216 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/vi/
2018-10-10 06:41:09 +02:00
Erik Johansson
2cc98f4416 Try connectGatt with autoConnect = true if it fails with autoConnect = false
See #335
2018-10-09 21:41:02 +02:00
Erik Johansson
bbbb91ecdd Disconnect after setting initial weight for new user
To see if it helps the problem reported by @Alejandro131 in #335.
2018-10-09 21:30:23 +02:00
Truc Hoang
d384acf48f Added translation using Weblate (Vietnamese) 2018-10-09 05:12:06 +02:00
Erik Johansson
960c7e8f30 Wait a bit between stopping LE scan and connecting
To see if it helps @ReidarHH in #335
2018-10-08 21:36:19 +02:00
Erik Johansson
2f1b7663b7 Descriptor 0x2902 is the one that should be used to enable notifications
Both according to
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml
and the bt snoop log in #319 (from @Alejandro131)
2018-10-08 21:12:34 +02:00
OliE
da5dfcaa2d Merge remote-tracking branch 'origin/master' 2018-10-08 20:04:06 +02:00
OliE
8a9e07977d Merge branch 'UseCaseTests'
Conflicts:
	android_app/app/src/androidTest/java/com/health/openscale/gui/AddMeasurementTest.java
2018-10-08 20:01:55 +02:00
OliE
be805a108b change deprecated import of LargeTest annotation 2018-10-08 20:00:06 +02:00
Erik Johansson
05d15f1b83 Try to trigger release on all branches 2018-10-07 22:27:56 +02:00
Erik Johansson
c03d8c7601 Log write type in debug driver 2018-10-07 22:27:01 +02:00
Erik Johansson
8d47f9b968 Try to run all ble commands on the main thread 2018-10-07 22:26:40 +02:00
Erik Johansson
c36328b7d7 Remove unused imports 2018-10-07 19:13:35 +02:00
Erik Johansson
c381f48aa9 Try to trigger release on all branches 2018-10-07 19:06:04 +02:00
Hosted Weblate
85558e1f0e Merge branch 'origin/master' into Weblate 2018-10-07 18:19:12 +02:00
Allan Nordhøy
3ed5acd2f0 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (216 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/nb/
2018-10-07 18:19:11 +02:00
Yaron Shahrabani
8cceed2b4f Translated using Weblate (Hebrew)
Currently translated at 99.5% (215 of 216 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/he/
2018-10-07 18:19:11 +02:00
OliE
68fafeebcf Merge pull request #334 from maksverver/master
Add photo of Trisa Body Analyze 4.0, and mention it in README.md.
2018-10-07 18:19:07 +02:00
Maks Verver
2355a8a843 Add photo of Trisa Body Analyze 4.0 scale, for use on the openScale wiki. 2018-10-07 17:51:29 +02:00
Maks Verver
81fd83e863 Mention that Trisa Body Analyze 4.0 scale is supported. 2018-10-07 17:50:20 +02:00
Maks Verver
16011b7e67 Move static helper methods to TrisaBodyAnalyzeLib and add unit tests for them. v1.8.2 2018-10-07 15:05:22 +02:00
Maks Verver
ce615c57b5 Store device password in SharedPreferences.
This way, the scale has to be paired only once.
2018-10-07 15:05:22 +02:00
Maks Verver
827dbced6e Add support for pairing.
This removes the need to hardcode the password. Currently, the device
password which is obtained by pairing is stored in memory only, which
means the scale must be paired again every time the app is restarted.
2018-10-07 15:05:22 +02:00
Maks Verver
5136bc3660 Add code to support Trisa Body Analyze 4.0 smart scale. 2018-10-07 15:05:22 +02:00
OliE
f073148c4e change deprecated import of LargeTest annotation 2018-10-07 13:18:06 +02:00
OliE
a961cb593f updated travis to android 28 2018-10-07 13:05:36 +02:00
OliE
1f8facacc8 update version to 1.8.2 and updated target version to sdk 28 2018-10-07 12:57:22 +02:00
OliE
cae3f36668 estimate fat, water and LBM until library is reversed engineered 2018-10-07 12:41:54 +02:00
Hosted Weblate
6e4451f193 Merge branch 'origin/master' into Weblate 2018-10-07 12:13:34 +02:00
OliE
701fff5981 Translated using Weblate (German)
Currently translated at 100.0% (214 of 214 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/de/
2018-10-07 12:13:34 +02:00
OliE
50284e0516 support all body measurements for OneByone scales. 2018-10-07 12:13:25 +02:00
OliE
e829792336 disable track activities in timber log. 2018-10-07 12:13:25 +02:00
OliE
f2cab6a399 update gradle to 3.2.0 2018-10-07 12:13:25 +02:00
OliE
8a2c0fe809 Translated using Weblate (German)
Currently translated at 100.0% (214 of 214 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/de/
2018-10-07 11:51:00 +02:00
Erik Johansson
f2197c9ca9 Do gatt connect on main thread 2018-10-07 09:24:37 +02:00
Yaron Shahrabani
e6f0613c7a Translated using Weblate (Hebrew)
Currently translated at 99.5% (213 of 214 strings)

Translation: openScale/Strings
Translate-URL: https://hosted.weblate.org/projects/openscale/strings/he/
2018-10-07 08:18:17 +02:00
Erik Johansson
e6d1214a85 Change Hebrew locale from he to iw which seems to work better 2018-10-06 21:51:23 +02:00
Erik Johansson
eabe351b37 Minor simplification 2018-10-06 20:59:35 +02:00