1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-09-06 06:25:20 +02:00
Commit Graph

3292 Commits

Author SHA1 Message Date
Vadim Kaushan
02b3f23329 ID115: set steps goal 2018-07-13 15:00:16 +03:00
Sebastian Kranz
18202bffbd Fix timestamps of activities, cause the watch reports them with 6 hours offset. 2018-07-13 13:24:47 +02:00
Vadim Kaushan
d66e9e6a8b ID115: change device icon 2018-07-13 14:22:17 +03:00
Vadim Kaushan
c9e7a2ff1d ID115: notification support 2018-07-13 14:08:11 +03:00
Vadim Kaushan
4bea2a3407 ID115: fix logger name 2018-07-13 13:54:19 +03:00
Sebastian Kranz
e54930788b Add a divisor and divide the rawintensity to normalize it. It would be better to scale the divisor based on all steps of the day or something like that. 2018-07-13 11:06:21 +02:00
Sebastian Kranz
99bdb4a30a Use evaluteGBDeviceEvent to send events to the app/android system, instead of calling directly the handle ufunctions. 2018-07-13 10:35:18 +02:00
Sebastian Kranz
f0174d904a Bugfix: calendar needs the date as number. Add comment about converting date digits to characters. 2018-07-13 10:10:41 +02:00
boun
11c545362a Do not crash inside the emulator (#1150)
As there is no bluetooth support in the emulator
2018-07-12 18:25:18 +02:00
Vadim Kaushan
36b956aed6 ID115: set manufacturer string 2018-07-12 16:53:57 +03:00
Vadim Kaushan
8a0263d3ff ID115: Fix date calculation 2018-07-12 15:57:00 +03:00
Vadim Kaushan
814ca76733 ID115: basic support 2018-07-12 15:48:09 +03:00
Vadim Kaushan
26a1f97e43 ID115: coordinator 2018-07-12 15:47:08 +03:00
Vadim Kaushan
0e1331f172 ID115: declare device type 2018-07-12 15:45:00 +03:00
Sebastian Kranz
6781e1e14a Rework onNotification function: Assemble the message and send decide, which icon should show up on the watch. Email support seems broken in newest firmware (1.7 Build 41) of the watch! 2018-07-12 07:30:41 +02:00
Sebastian Kranz
888d08ae77 Replace performConnected() with builder.queue(getQueue()) to write the commands and data to the watch. 2018-07-11 11:59:32 +02:00
Sebastian Kranz
c1673554ee Better use bit shifting and masks to avoid negative values. 2018-07-11 07:17:40 +02:00
Sebastian Kranz
f3264fab0a Fix typo. 2018-07-11 06:49:01 +02:00
Dreamwalker
355f2e6bb5 korean translate added
korean translate added
2018-07-10 13:56:54 +02:00
Sebastian Kranz
7d8d484133 Merge branch 'master' into zetime 2018-07-10 06:48:20 +02:00
Margreet
3aaa0e9fce Translated using Weblate (Dutch)
Currently translated at 99.6% (498 of 500 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nl/
2018-07-09 22:58:14 +02:00
Allan Nordhøy
c4e1900e82 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.6% (498 of 500 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nb/
2018-07-09 22:58:14 +02:00
Yaron Shahrabani
c631bdebf4 Translated using Weblate (Hebrew)
Currently translated at 100.0% (500 of 500 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2018-07-09 22:58:14 +02:00
postsorino
f854574868 Translated using Weblate (Greek)
Currently translated at 100.0% (500 of 500 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/el/
2018-07-09 22:58:14 +02:00
andrewlytvyn
31fa2dc798 Translated using Weblate (Ukrainian)
Currently translated at 42.3% (211 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2018-07-09 22:58:14 +02:00
jonnsoft
09a36aa5e7 MiBand3 pairing fix
(cherry picked from commit 3656ed9648b28475c35764da8a5cbeb420cfc307)
2018-07-09 22:56:16 +02:00
cpfeiffer
f2ff1991da Comment out chatty debug output 2018-07-09 22:55:20 +02:00
Andreas Shimokawa
3236e20657 Amazfit Bip/Cor: rework fimware detection to rely on strings instead of version numbers
The new version scheme and the fact that recent Bip and Cor firmwares are
impossible to distinguish by comparing data at fixed offsets make it necessary
to dynamically search for sequences of data. We do this now by searching for
"Amazfit Bip Watch" and "Amazfit Cor".
2018-07-08 12:16:26 +02:00
Sebastian Kranz
edee0904ff Add all activity data to the database; at the moment not all are displayed. Try to fix value calculations, because negative results do not make sense here. Restrict the body length from notification to the max value of 256 characters. 2018-07-06 21:59:30 +02:00
Sebastian Kranz
0a37b8ef87 Fix music control. Now everytime the track changes the correct title is displayed. Set limits for volume up and down. Set a initial value of 50% at connect... 2018-07-06 20:33:45 +02:00
Sebastian Kranz
c2d608b0ef Add time synchronization. Some values/parameters are fixed at the moment, which shouldn't be maybe. 2018-07-06 08:19:04 +02:00
Sebastian Kranz
fec1f1afc6 Fill function to to add a calendar event at the day view. 2018-07-05 10:28:27 +02:00
Sebastian Kranz
7c65fa4fc0 BUGFIX: correct the length needed if a string includes multi bytes. Because a character is encoded of up to 4 bytes. Fix using the correct progess and available variables for the activities. Also restict the volume up and down commands to 16 steps. 2018-07-05 07:25:17 +02:00
Andreas Shimokawa
6e34d313c7 Mi Band 3: allow setting language (english and spanish work) 2018-07-04 23:32:35 +02:00
Sebastian Kranz
ed20f69cc4 Add functionality to control the music playback from the watch. Not sure if all of this is correct. Having issues that the track title isn't updated until you issue a play, pause command from either the phone or watch. 2018-07-04 14:52:21 +02:00
Sebastian Kranz
6882127bec Add function to sync weather data to the watch, translate weather codes to icons. 2018-07-04 07:09:50 +02:00
Sebastian Kranz
497372f377 Add support for sending some generic notifications for incoming calls, missed calls, sms, email, social and messenger. 2018-07-03 13:09:46 +02:00
Andreas Shimokawa
a3e22d573f Amazfit Bip: Whitelist FW 1.0.2.00 2018-07-01 23:26:03 +02:00
Andreas Shimokawa
85176e7c3c Bump version, update changelogs 2018-07-01 23:07:39 +02:00
Martin
91cbdfde10 added time limited on auto-fetch, and removed the creation of multiple autoFetchReceivers 2018-07-01 22:57:48 +02:00
Andreas Shimokawa
d1cba54425 Mi Band 3: Allow flashing fonts (untested) 2018-07-01 22:41:37 +02:00
Andreas Shimokawa
9303214997 Amazfit Cor: allow flashing fonts (seem to be the same as for bip, untested) 2018-06-30 00:32:29 +02:00
Daniele
50eacf3f22 Translated using Weblate (Italian)
Currently translated at 100.0% (498 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/it/
2018-06-29 23:05:11 +02:00
Andreas Shimokawa
87f9424ee3 Amazfit Bip: allow flashing latest beta firmware 2018-06-29 23:04:38 +02:00
Sebastian Kranz
59095dc29b Clean-up the merge. 2018-06-29 11:18:36 +02:00
Sebastian Kranz
1b152c86ea Merge branch 'master' into zetime 2018-06-29 10:43:11 +02:00
Sebastian Kranz
5e236e113f Fix function to put step data into database, using the full unix epoch now. Add function for putting sleep and heartrate data into the database. 2018-06-28 13:48:41 +02:00
clach04
245eaac510 Update changelog_master.xml (#1128)
fix typo in changelog
2018-06-27 09:08:41 +02:00
Konrad Iturbe
0f38c9a30e Add RomanPort's AppStore Endpoint (#1126) 2018-06-27 09:02:55 +02:00
Sebastian Kranz
789fba95d1 Add function to check available activities and then get them. Add function to get the steps. First try to get the data into the database. 2018-06-27 09:01:26 +02:00
Andreas Shimokawa
fbdd4ddb87 add xml and fastlase changelogs 2018-06-26 21:14:46 +02:00
Andreas Shimokawa
2dda978453 Amazfit Bip/Cor: Fix scheduled setting for "display on lift wrist" preference
Fixes #1102
2018-06-26 17:43:54 +02:00
Sebastian Kranz
3539dd3e34 Get the also the device firmware version. Add function for messages that are broken down into two transmissions, because of their length. 2018-06-26 07:29:11 +02:00
Andreas Shimokawa
49a5f349b0 Amazfit Cor: Whitelist FW 1.0.7.88
Closes #1104
2018-06-25 21:37:26 +02:00
Andreas Shimokawa
f8a1da8a83 Bump version, add CHANGELOG 2018-06-25 21:31:29 +02:00
K0L0B0G
f8d72f62e2 Translated using Weblate (Russian)
Currently translated at 86.5% (431 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/ru/
2018-06-25 18:37:22 +02:00
nautilusx
86a4108452 Translated using Weblate (German)
Currently translated at 99.5% (496 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/de/
2018-06-25 18:37:22 +02:00
Emre
8f671b1769 Translated using Weblate (German)
Currently translated at 99.5% (496 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/de/
2018-06-25 18:37:22 +02:00
Pascal
eea6a3a19a Translated using Weblate (German)
Currently translated at 99.5% (496 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/de/
2018-06-25 18:37:22 +02:00
Emre
7bb9d26ddc Translated using Weblate (Turkish)
Currently translated at 27.9% (139 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/tr/
2018-06-25 18:37:22 +02:00
Allan Nordhøy
e380342b7d Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.5% (496 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nb/
2018-06-25 18:37:22 +02:00
Yaron Shahrabani
57328a0480 Translated using Weblate (Hebrew)
Currently translated at 100.0% (498 of 498 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2018-06-25 18:37:22 +02:00
Emre
f5d619cfbc Translated using Weblate (Turkish)
Currently translated at 16.9% (84 of 497 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/tr/
2018-06-25 18:37:22 +02:00
Emre
8a5d909e86 Translated using Weblate (German)
Currently translated at 97.9% (487 of 497 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/de/
2018-06-25 18:37:22 +02:00
postsorino
d5402465d3 Translated using Weblate (Greek)
Currently translated at 100.0% (497 of 497 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/el/
2018-06-25 18:37:22 +02:00
Allan Nordhøy
2ac7009a63 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.3% (494 of 497 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nb/
2018-06-25 18:37:22 +02:00
Yaron Shahrabani
bd4c9475ea Translated using Weblate (Hebrew)
Currently translated at 100.0% (497 of 497 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2018-06-25 18:37:22 +02:00
License Bot
225a600aed Update license headers 2018-06-25 18:35:46 +02:00
Andreas Shimokawa
979a44a077 Mi Band 2: Grey out "rotate wrist to switch info" when "activate display upon lift" in not enabled in preferences
Closes #1124
2018-06-24 22:05:45 +02:00
Andreas Shimokawa
9d01989b27 remove unused import 2018-06-24 21:00:33 +02:00
Sebastian Kranz
e18b043d27 request activity info with a function. 2018-06-24 12:25:34 +02:00
Daniele Gobbetti
6807714af3 Register autofetch receiver in DeviceCommunicationService
This allows the register to be registered only when the device is connected,
and also toggling without completely exiting the application.

The logic in the receiver itself was simplified and an explanation added
to the preference summary.
2018-06-23 11:19:09 +02:00
Daniele Gobbetti
2a30e9486c Reduce the amount of lines in the logcat for binary dumps
Concatenate the binary values instead of logging one byte per line.
2018-06-23 11:15:03 +02:00
Kranz
65f12bc1ee Fix error inside the isMsgFormatOK function. Add DeviceInfoHandler to read the hardware info and notify about battery level. 2018-06-22 07:20:45 +02:00
Sebastian Kranz
1213ecc344 Add function for requesting device info and battery level. 2018-06-21 19:56:13 +02:00
Andreas Shimokawa
c6b23041f7 Pebble: Always connect to SDP UUID on NON-LE Pebble
Fixes #726
2018-06-20 22:06:45 +02:00
Daniele Gobbetti
f99895da0c Remove activity transfer toast, add title to the transfer notification
Also create a separate channel that allows "muting" transfer notifications
on android oreo and above.
2018-06-19 22:03:49 +02:00
Martin
36aae1e81c Auto sync feature (#1127)
* Auto fetch feature
fixes #1116
2018-06-19 21:54:15 +02:00
Yaron Shahrabani
0945a0b9e8 Translated using Weblate (Hebrew)
Currently translated at 100.0% (496 of 496 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2018-06-19 18:27:13 +02:00
Daniele Gobbetti
b81de63b30 Use checkboxes for notification and pebblemsg blacklist
also support dark theme and add a menu entry for accessing blacklist functionality
2018-06-19 18:26:06 +02:00
Daniele Gobbetti
d55d551943 Add overflow menu to blacklist and whitelist all installed applications
Fixes #679
2018-06-18 21:29:12 +02:00
Andreas Shimokawa
3f06a8c2a6 Rename file to match class name. 2018-06-18 21:22:34 +02:00
Daniele Gobbetti
2ca8e4a4e4 Forward notifications marked as local only if they are emitted by skype
Also add skype for business package name.

Blind implementation as I don't have access to these apps.

Fixes #1109
2018-06-18 20:52:26 +02:00
Daniele Gobbetti
4d0020ae1d Add the option the blacklist applications also for Pebble Messages
Fixes #996
2018-06-18 20:38:37 +02:00
Daniele Gobbetti
2f4c9ef0d9 Keep the embossed logo visible behind the device cards. 2018-06-18 20:27:38 +02:00
Daniele Gobbetti
3c00332a77 Always stop BT/BTLE discovery when exiting the Discovery Activity
Hopefully solves the leaks
2018-06-18 20:26:28 +02:00
Daniele Gobbetti
45ecdaa213 Pebble: Webview: do not use the contextWrapper if it's null.
It should never happen but I had a crash on API 19, possibly a race condition
somewhere.
2018-06-18 20:23:23 +02:00
Allan Nordhøy
c30d0142f5 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.3% (491 of 494 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/nb/
2018-06-16 23:36:13 +02:00
Yaron Shahrabani
ca425d70ff Translated using Weblate (Hebrew)
Currently translated at 100.0% (494 of 494 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/he/
2018-06-16 23:36:13 +02:00
Andreas Shimokawa
9bcae3e000 Amazfit Bip: Whitelist FW 0.1.1.45 2018-06-16 23:35:02 +02:00
Kranz
c611042e51 Add more commands. Add message check function. 2018-06-15 13:40:16 +02:00
Kranz
89c8c9cdfb First communication test between ZeTime and GB. Ask about activitys, sleep and heart-rate infos available. ZeTime responds correctly 2018-06-15 11:23:44 +02:00
Andreas Shimokawa
99dec159f7 Mi Band 3: add untested and incomplete support
This also improves firmware/RES probing to distinguish Mi Band 2/3 firmware files and Mi Band 3/Bip RES files.

Notes:
- Firmware flashing should might but is untested
- This basicall runs off the Amazfit Bip code which will probably incorrect (Mi Band 3 is proabably something between the Bip and the Mi Band 2)
2018-06-14 18:16:49 +02:00
Andreas Shimokawa
3dd1929436 Huami devices: Minor refactoring 2018-06-14 16:30:43 +02:00
naofum
b1d721ca5f Translated using Weblate (Japanese)
Currently translated at 80.0% (394 of 492 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/ja/
2018-06-14 09:40:16 +02:00
postsorino
d819914ac2 Translated using Weblate (Greek)
Currently translated at 100.0% (492 of 492 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/el/
2018-06-08 23:38:46 +02:00
Sebastian Kranz
48affad220 Add some UUIDs and Cmds. Connect further. 2018-06-08 16:28:05 +02:00
postsorino
11a25fc01b Translated using Weblate (Greek)
Currently translated at 100.0% (492 of 492 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/el/
2018-06-07 23:16:58 +02:00
Rimas Raguliūnas
c60613f4e5 Translated using Weblate (Lithuanian)
Currently translated at 11.5% (57 of 492 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/lt/
2018-06-07 13:27:39 +02:00
Максим Якимчук
d9052cd584 Translated using Weblate (Ukrainian)
Currently translated at 31.0% (153 of 492 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/uk/
2018-06-07 13:27:39 +02:00