1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-02 12:03:29 +02:00
Commit Graph

1141 Commits

Author SHA1 Message Date
Zhong Jianxin
fc39221782 Amazfit Bip S: Support setting shortcuts 2020-05-14 10:05:49 +08:00
Zhong Jianxin
0e888aba3a Amazfit Bip S: Fix setting display items 2020-05-14 10:05:39 +08:00
Andreas Shimokawa
e844f81056 Huami: If no menu items were ever configured with Gadgetbridge use our default and do not disable everything on connect
Fixes #1853
2020-05-12 22:42:19 +02:00
Andreas Shimokawa
82611d7a0d ZeTime: Send up to 16 upcoming calendar events on connect if option is enabled
This disables Pebble style calendar synchronization, which did not work for the ZeTime
since we have no handle to delete or change events, we have to rewrite everything again.

Either events were piling up or deleted when a new event was added to a Calendar.

For now it just syncs up to 16 upcoming events at connect.
2020-05-06 01:43:16 +02:00
Andreas Shimokawa
fefcf2d2b9 ZeTime: Fix setting the watch language and make the setting accessible from the per-device configuration menu
This did not work at all before, it was supposed to take the language from
Gadgetbridge App settings or the phone's default settings, but nothing was ever
sent to the watch.
2020-05-05 00:34:59 +02:00
Andreas Shimokawa
ad1e519723 ZeTime: Basic support for rejecting incoming calls 2020-05-04 21:53:51 +02:00
Andreas Shimokawa
94358e79b0 Amazfit GTR/GTR Lite: enable setting menu items (untested) 2020-05-03 20:16:35 +02:00
Andreas Shimokawa
dbba6f04b1 Add support for Amazfit GTR Lite (untested and incomplete)
See #1694
2020-05-02 23:40:07 +02:00
mamutcho
f88bc0cf6d WatchX(Plus) - Activity Analysis
* add activity intensity interpolation based on heart rate
* add steps per activity sample (based on total steps divided by total activity)
* search data for periods without records to add ActivityKind.TYPE_NOT_MEASURED (15 to 60 min) and ActivityKind.TYPE_NOT_WORN (more than 60 min)
* randomize ActivityKind.DEEP_SLEEP intensity for cool graph results (do not affect sleep counting)
2020-04-29 14:24:23 +02:00
mamutcho
bd60624ba5 * WatchX(Plus) - Fix unexpected bug in Activity Analysis 2020-04-25 01:25:28 +03:00
mamutcho
0177bdd171 * WatchX(Plus) - Add sleep and activity analysis
* WatchX(Plus) - Improve data presentation in Activity charts
* WatchX(Plus) - Fix some bugs in LongSitReminder
* Remove/replace duplicate strings for inactivity reminder
2020-04-24 23:46:43 +03:00
Andreas Shimokawa
fa2d954552 Add alarm title and description field to alarm configuation
Wire it up and enable for Fossil Hybrid HR
2020-04-24 10:39:32 +02:00
Daniel Dakhno
ca5d177608 Fossil HR: fixed some widget issues 2020-04-24 01:49:42 +02:00
Andreas Shimokawa
da23026e8f Merge remote-tracking branch 'mamucho/master' 2020-04-23 23:31:55 +02:00
mamutcho
01190d1a13 Delete 'app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/lenovo/watchxplus/WorkProgress' 2020-04-22 23:11:33 +02:00
mamutcho
7dab1cb0f7 Move settings to per device (gear icon)
Add missing files
2020-04-23 00:01:57 +03:00
Andreas Shimokawa
a851bb5cf1 Amazfit GTS: support setting menu items 2020-04-22 17:10:49 +02:00
mamutcho
61da55e0de Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
 Conflicts:
	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
2020-04-20 14:42:20 +03:00
dakhnod
11d1fd08bd Add Fossil HR Activity Tracking (#1846) 2020-04-20 00:11:45 +02:00
Andreas Shimokawa
12d5f1d88b Amazfit GTR/GTS: Fix flashing watchfaces and _maybe_ firmware/res update (still untested) 2020-04-14 23:09:03 +02:00
Andreas Shimokawa
6dddc003e9 Fossil Hybrid HR: Interpret and show fimware version in firmware installer 2020-04-12 20:56:41 +02:00
Andreas Shimokawa
1e93a8c1cc Fossil Hybrid HR: Experimenal firmware update support
TODO:
- progress bar
- set device state to firmware update

There is currently absolutely no feedback during install, just wait and pray
2020-04-10 00:51:16 +02:00
Andreas Shimokawa
11d96e4641 Huami: Do not display firmware information and whitelist information when flashing watchfaces
Closes #1781
2020-04-08 11:05:47 +02:00
Daniel Dakhno
b34e74494d Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr-background-image 2020-04-08 03:26:30 +02:00
Daniel Dakhno
bbf60248c3 Fossil HR: added button to delete background 2020-04-08 03:20:39 +02:00
Daniel Dakhno
379fa746a3 Fossil HR: added Background image and basic editing 2020-04-08 03:08:35 +02:00
Daniel Dakhno
e0c09f259f Fossil HR: removed per-widget circle settings 2020-04-08 02:18:13 +02:00
Daniel Dakhno
b2a6b4b03b Fossil HR: added option to disable widget circle 2020-04-04 02:19:30 +02:00
Daniel Dakhno
b290e035f1 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2020-03-29 03:11:44 +02:00
Daniel Dakhno
ae503ec456 Fossil HR: added activity tracking for battery level updates 2020-03-29 03:10:30 +02:00
Andreas Shimokawa
1a57c4db68 Amazift Bip Lite: Allow relaxing firmware checks to allow flashing of the regular Bip firmware (for the brave)
Closes #1819
2020-03-27 11:01:33 +01:00
Andreas Shimokawa
ff3ce84ba1 Amazfit Bip S: force key input before pairing 2020-03-23 14:57:26 +01:00
Andreas Shimokawa
c66e9450d3 Try to blindly enable Amazfit Bip S
This is an initial bringup it will most probably fail in some areas

Related: #1822
2020-03-23 11:02:22 +01:00
mamutcho
c4ca247524 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2020-03-22 19:42:08 +02:00
Andreas Shimokawa
101e2c6664 Fossil Hybrid HR: allow setting vibration strength
Also allow re-fetching of configuration again (it updates battery levels)
2020-03-20 17:14:00 +01:00
mamutcho
10bf452017 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
 Conflicts:
	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/NotificationListener.java
	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
	app/src/main/res/values-bg/strings.xml
2020-03-13 19:08:34 +02:00
Andreas Shimokawa
1ccb7ab785 Fossil: Allow swiching off the device specific "Q" notification icon 2020-03-12 13:48:25 +01:00
Daniel Dakhno
a2d52438e2 Fossil HR: actions now movable in list 2020-03-01 22:20:00 +01:00
Andreas Shimokawa
ddd70f93fc Fossil Hybrid HR: option to force white background
Currently needs reconnect and one change to the widget configuration to be effective.

This might improve visiblity of the hands when using a model with gray hands
2020-02-27 13:38:45 +01:00
cpfeiffer
c68182fd42 Fossil support does not support activity data fetching yet. 2020-02-26 21:50:37 +01:00
Andreas Shimokawa
fb996c3301 Merge branch 'master' into fossil-q-hr 2020-02-26 20:30:57 +01:00
Andreas Shimokawa
9a114f640b Huami: Make experimental calendar sync feature optional 2020-02-24 14:19:06 +01:00
Andreas Shimokawa
23cbc2e7f1 Fossil Hybrid HR: Fix weather (unit must be lower case) 2020-02-16 13:09:08 +01:00
Daniel Dakhno
f9a4c1ad35 added call notification support (doesnt work on all phones) 2020-02-16 01:17:45 +01:00
Andreas Shimokawa
15a090b35e Merge branch 'master' into fossil-q-hr 2020-02-05 10:59:26 +01:00
Andreas Shimokawa
3226d61ecd Mi Band 4: Make high MTU support optional
Fixes #1766
2020-02-04 10:04:01 +01:00
TaaviE
ed8323ad2e Refactored the iTag support class 2020-02-02 06:29:04 +02:00
TaaviE
27c2717fe8 Updated the license header's year 2020-01-31 09:16:37 +01:00
TaaviE
18d83febaa Added iTag support 2020-01-31 09:16:37 +01:00
Andreas Shimokawa
53969660f4 Fossil HR: enable Unicode Emojis, since they are obviously supported 2020-01-29 21:20:33 +01:00
cpfeiffer
6244bdd745 File external files dir creation, add test 2020-01-29 20:20:20 +01:00
cpfeiffer
7618ec39a2 Use try-with-resources for db access 2020-01-29 20:01:20 +01:00
cpfeiffer
f24dc0c1cb Cleanup file handling a bit 2020-01-29 20:01:20 +01:00
cpfeiffer
4293db5514 Cleanup toast/logging 2020-01-29 17:37:54 +01:00
Andreas Shimokawa
1c91c037a8 Merge branch 'master' into fossil-q-hr 2020-01-29 17:22:21 +01:00
Daniel Dakhno
132d97ee95 created UI to design custom widgets 2020-01-19 04:01:57 +01:00
Andreas Shimokawa
a4ebe17191 Huami: Enable alarm snooze enable/disable for all devices 2020-01-13 08:08:54 +01:00
Dmitry Markin
10c9b07c69 Control alarm snooze mode on MiBand2 2020-01-12 12:02:04 +03:00
License Bot
d6fa5d0dd5 Update license headers 2020-01-09 10:44:32 +01:00
vanous
7394b1cce3 Add-Buttons-Events-Config (#1761) 2020-01-08 19:58:31 +01:00
dakhnod
b04ff78e90 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2020-01-07 21:02:44 +01:00
Andreas Shimokawa
1c82c4e8e1 Huami: make time format 12h/24h configurable (was automatic before)
Fixes #1736
2020-01-04 23:40:50 +01:00
cpfeiffer
00830218e7 Q HR: Allow specifying key during discovery 2020-01-03 12:24:34 +01:00
Da Pa
35dbbd6a31 Merge branch 'master' into y5_patch_test
# Conflicts:
#	GBDaoGenerator/src/nodomain/freeyourgadget/gadgetbridge/daogen/GBDaoGenerator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/jyou/TeclastH30/TeclastH30Coordinator.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/DeviceType.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/DeviceSupportFactory.java
#	app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/DeviceHelper.java
#	app/src/main/res/values/strings.xml
2020-01-01 06:55:54 +02:00
dakhnod
c4d63a80e1 added menu handling and error status 2019-12-31 03:14:20 +01:00
dakhnod
6f012c2109 Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge into fossil-q-hr 2019-12-30 21:46:41 +01:00
Andreas Shimokawa
3bf72f957a Huami: get alarms at connect and save changes to database, react to on-device changes immediatly when device is connected 2019-12-27 22:19:17 +01:00
mamutcho
037c037032 Add option to force time sync. 2019-12-23 13:33:39 +02:00
mamutcho
57df6ec703 Auto time calibration 2019-12-23 11:29:09 +02:00
mamutcho
e6049438e7 Code cleanup and bug fixes 2019-12-21 18:48:19 +02:00
mamutcho
8d7f170c70 Add support for Watch X Plus with same MAC as Watch 9 2019-12-18 23:09:26 +02:00
mamutcho
f7e7cfaa0c Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-16 19:52:14 +02:00
License Bot
171f283ca8 Update license headers 2019-12-15 22:09:02 +01:00
mamutcho
0d8428437c Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-15 18:28:19 +02:00
dakhnod
a256decfd0 initial commit 2019-12-15 14:58:19 +01:00
Andreas Shimokawa
72ffbca2ff Make "reserve alarm for calender" per-device and only allow for Mi Band 1/2
This avoids a lot of bugs and confision regarding alarms
2019-12-14 23:48:02 +01:00
Andreas Shimokawa
c89a651573 Bangle.js: minor cleanups in coordinator 2019-12-14 12:16:23 +01:00
mamutcho
74df3ffeb1 Code optimizations 2019-12-13 23:45:38 +02:00
mamutcho
068033ad8e Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge 2019-12-12 19:32:55 +02:00
mamutcho
be8cac2c6f Merge branch 'master' of https://github.com/mamutcho/Gadgetbridge 2019-12-12 19:27:56 +02:00
Andreas Shimokawa
b78239e7be Fossil Q: Remove tasker code and dependency 2019-12-11 22:14:20 +01:00
mamutcho
632f46bc8b Bug fixes 2019-12-11 19:38:12 +02:00
Gordon Williams
9856536243 ask before bonding 2019-12-09 14:31:08 +00:00
Gordon Williams
77658c702f remove debug filtering 2019-12-09 10:26:30 +00:00
Gordon Williams
fb70da856a Merge branch 'master' of github.com:gfwilliams/Gadgetbridge 2019-12-09 10:13:02 +00:00
License Bot
1dc8c26e2a Update license headers 2019-12-06 22:51:43 +01:00
dakhnod
b1b4100852 extracted some string resources 2019-12-04 00:59:43 +01:00
dakhnod
f4a0f0ce8f Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-12-04 00:48:26 +01:00
dakhnod
d5cd59ae6b improved sorting performance 2019-12-04 00:46:02 +01:00
dakhnod
8e27556cd4 removed printStackTrace 2019-12-04 00:36:42 +01:00
dakhnod
21358fece4 removed Toast#makeText in favour of GB#toast 2019-12-04 00:25:08 +01:00
dakhnod
d355b509d4 added comment 2019-12-04 00:22:19 +01:00
dakhnod
3bbc7a9046 fixed string comparison 2019-12-04 00:19:48 +01:00
dakhnod
f3dc0225ec fixed string switch 2019-12-04 00:18:12 +01:00
dakhnod
4462c52ebb fixed null comparison 2019-12-04 00:09:38 +01:00
Gordon Williams
103e3568c6 Adding notification handling 2019-11-29 17:01:57 +00:00
Gordon Williams
d978d3ff94 first compile with Bangle.js - very basic 2019-11-28 18:02:47 +00:00
Daniel Dakhno
02ee886934 Merge branch 'fossil-q-hybrid' of github.com:dakhnod/Gadgetbridge into q-hybrid-hr 2019-11-26 02:12:11 +01:00
dakhnod
2bba2c449f fixed some syncing issues (hopefully) 2019-11-24 00:44:14 +01:00
FYG_license_bot_ignore_me
8e5c4b4602 Update license headers 2019-11-23 21:53:22 +01:00
dakhnod
e1aa88d22a added some logging 2019-11-21 23:22:55 +01:00
mamutcho
e03fd4357e Add initial Watch X non-plus support 2019-11-20 20:38:02 +02:00
Daniel Dakhno
a56d180531 added second timezone button function 2019-11-20 18:59:13 +01:00
Daniel Dakhno
a7c10bed42 added alarm settings 2019-11-20 00:56:09 +01:00
mamutcho
0cffd0f54c Bump Gadgetbridge version to 0.39
Redesign Settings page
Ready to pull request
2019-11-19 20:53:19 +02:00
mamutcho
e3f838afa0 Bump version ot 0.39
Redesign Settings page
2019-11-19 20:51:37 +02:00
Mamut
aefe7017f0
Merge pull request #1 from Freeyourgadget/master
Version to 0.39.0
2019-11-19 12:26:33 +02:00
mamutcho
71ff71cb2c Some fixes 2019-11-18 19:10:56 +02:00
Daniel Dakhno
03e8925d9e fixed unknown button setting exception 2019-11-17 15:56:44 +01:00
mamutcho
be47541a5e Add new features
- Inactivity reminder
- Missed call reminder
- Watch language
2019-11-17 14:33:26 +02:00
Daniel Dakhno
ca18e1fe34 added button index hint 2019-11-17 05:03:23 +01:00
Daniel Dakhno
e04cd474dc user can now assign a few more functions to buttons 2019-11-17 04:55:12 +01:00
Daniel Dakhno
7f5c432b82 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-11-17 01:13:00 +01:00
Andreas Shimokawa
25bb16b0c3 Make button action setting per-device, enable for amazfip bip
TODO:
- preference migration
- support vibration on bip
2019-11-14 12:33:36 +01:00
Daniel Dakhno
63b4ffe555 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-fossil-api 2019-11-14 04:58:32 +01:00
Daniel Dakhno
161236f3a2 fixed file upload bug 2019-11-14 04:56:34 +01:00
mamutcho
24439008ab Add watch power mode and DND 2019-11-10 23:15:13 +02:00
mamutcho
3a2b718f09 Blood Pressure calibration 2019-11-09 22:16:10 +02:00
mamutcho
bf3889e519 work progress 2019-11-08 19:24:50 +02:00
mamutcho
33f18036d3 FIXES:
- Cleaned code for repeat watch vibration during phone ring.
- On my samsung phone and Bulgarian language, when call is ended, on watch shows notification with name "Phone" and vibrates until disconnect from app. Finally managed to fix it.
ADD:
- Add setting for ignore/reject phone call with device button.
- Add setting for ignore/reject phone call with shake device. (duplicates button action) P.S. to apply needs to reconnect device.
- Add setting for sending Missed call if call is missed.
- Add setting for continious vibration while phone ringing.
NEED MORE TESTING:
- When phone alarm trigger - send notification on watch. Works on samsung phone. Don't have other phones for testing.

P.S. To apply altitude calibration, need to disconnect and reconnect watch
2019-11-06 23:56:24 +02:00
mamutcho
81997e7725 FIXES:
- Fixed setting for repeat watch vibration during phone ring. (code need to be cleared and optimised)
- On my samsung phone, when call is ended, on watch shows notification with name "Phone" and vibrates until disconnect from app. I tryed to fix it, but don't know is it successful.
ADD:
- Add command for cancel notification, e.g. when answer phone call.
- Add blood pressure calibration status.
NEED MORE TESTING:
- On watch preserve small phone icon near bluetooth icon only when call is missed, in other cases clear it.
- When phone alarm triger - send notification on watch

P.S. To apply altitude calibration, need to disconnect and reconnect watch
2019-11-06 00:14:29 +02:00
mamutcho
54f4bbeeef Add Device settings - altitude
Add repeat notification on phone call - need to refine
Add command for cancel text notification
2019-11-04 00:41:48 +02:00
mamutcho
fb08af6d04 Add Device settings (screen on, time format, disconnect reminder, find my phone).
Changed device icon.
2019-11-02 22:24:00 +02:00
Andreas Shimokawa
2b0656c9c0 Amazfit GTS: Enable flashing firmware (untested) 2019-10-31 15:30:05 +01:00
Daniel Dakhno
d690dff5ca fixed nah nah. 2019-10-30 16:43:29 +01:00
Daniel Dakhno
c09683de3d implemented nah. 2019-10-30 16:42:44 +01:00
Daniel Dakhno
25a67b2ebb updated some requests, still dunno why some files time out... 2019-10-30 02:50:00 +01:00
Manuel Ruß
0159657bd5 - AmazfitGTS Run basic functionalities (read data, ...) 2019-10-29 22:44:03 +01:00
mkusnierz
4069021924 Retrieve historical HR data from Watch X Plus and save to DB (WIP). 2019-10-28 22:55:34 +01:00
Daniel Dakhno
06d7568249 added some requests and logic 2019-10-28 12:35:22 +01:00
mkusnierz
7f085681c3 Added blood pressure measurement request and response handling.
Added heart rate history fetching (watch doesn't return data yet).
Steps data is saved to DB.
2019-10-27 18:04:38 +01:00
Daniel Dakhno
7710b9ea2a Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into q-hybrid-abstraction 2019-10-25 14:35:05 +02:00
Andreas Shimokawa
4110f0764a Amazfit GTR: enable firmware flashing for those who dare (untested) 2019-10-24 22:35:57 +02:00
Andreas Shimokawa
c2c240d7be Amazfit GTR: Enforce auth key input when pairing, try to fix notifications 2019-10-24 21:51:10 +02:00
Andreas Shimokawa
cbd47a81cc Amazfit GTR: initial support for testing 2019-10-24 21:41:11 +02:00
Daniel Dakhno
187600b076 added abstraction layer 2019-10-24 19:44:35 +02:00
mkusnierz
45054bbcd9 Extracted some commons for Lenovo watches 2019-10-23 22:07:38 +02:00
HardLight
d627577e6f Mi Band 4: Enable Emoji Font setting 2019-10-23 20:14:02 +03:00
dakhnod
a2060470f8 changed parameter from byte to enum 2019-10-21 15:14:32 +02:00
mkusnierz
4601d827ae Display calibration button for Watch X Plus
Use calibration activity from Watch9 for now
Partial heart rate history handling (WIP)
2019-10-20 10:34:29 +02:00
dakhnod
2a96f762af added option to track notification count with activity hand 2019-10-20 01:42:31 +02:00
dakhnod
b6c744c8c6 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-19 23:55:55 +02:00
mkusnierz
34d9bccb86 Retrieve steps count
Tried to set weather, but without success
Handle ACK response
Enabled alarms
2019-10-18 23:36:56 +02:00
mkusnierz
290a90ec0e Handle notifications with long body 2019-10-18 09:42:31 +02:00
mkusnierz
cf61ab9d38 Fixed battery level parsing from response
Added basic notification support
2019-10-18 00:02:53 +02:00
Cre3per
395f63d3c1 makibes hr3 now pairs/bonds.
that way gb can reconnect after the band was disconnected.
2019-10-17 14:33:05 +02:00
Cre3per
45184c4bbc makibes hr3 should now support the english version 2019-10-17 14:33:05 +02:00
Daniel Dakhno
0d60d308aa Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-16 14:57:22 +02:00
Andreas Shimokawa
5caa8e9097 Amazfip Bip Lite: Support firmware installation
Closes #1681
Closes #1682
2019-10-15 20:34:09 +02:00
Maciej Kuśnierz
2acb65b745 Merge https://github.com/Freeyourgadget/Gadgetbridge
# Conflicts:
#	README.md
2019-10-13 00:18:00 +02:00
Andreas Shimokawa
074994d24b Merge branch 'master' into fossil-q-hybrid 2019-10-12 20:47:19 +02:00
Andreas Shimokawa
7b5e333601 Skip service scan if supported device could be recognized without uuids during discovery 2019-10-12 20:15:09 +02:00
Andreas Shimokawa
4bf37ea70f Mi Band 4/Amazfit Bip Lite: Display a toast and do not try to pair if there was no auth key supplied 2019-10-12 19:44:45 +02:00
Andreas Shimokawa
80c902e568 Amazfit Cor 2: Enable Emoji Font setting and 3rd party HR access 2019-10-12 13:04:33 +02:00
Cre3per
c4f4f5081d added vibrator to FindPhoneActivity.
added device settings for find phone.
makibes hr3 now uses GBDeviceEventFindPhone.
2019-10-12 12:44:38 +02:00
Cre3per
4437220c54 makibes hr3.
added quite hours.
2019-10-12 12:44:38 +02:00
Cre3per
5570ac8349 makibes hr3.
added fakeBattery.
fixed string comparison using operator.
2019-10-12 12:44:38 +02:00
Cre3per
1262970494 makibes hr3.
added lost reminder support.
2019-10-12 12:44:38 +02:00
Cre3per
4c98d8537f makibes hr3.
added hud to device settings.
2019-10-12 12:44:38 +02:00
Cre3per
cd3558cd50 makibes hr3.
fixed long notifications a a nullptrexception.
added vibration timeout.
added step history download.
2019-10-12 12:44:38 +02:00
Cre3per
da1a72c6c6 makibes hr3.
implemented deleteDevice.
implemented heart rate history download.
cleaned up sample handling.
2019-10-12 12:44:38 +02:00
Cre3per
c0a6566410 makibes hr3.
corrected alarm slot count.
2019-10-12 12:44:38 +02:00
Cre3per
40696cb3e6 makibes hr3.
added multi-byte command support.
now uploading personal data to the watch.
2019-10-12 12:44:38 +02:00
Cre3per
fe667ffdd8 added makibes hr3 todo and heart rate constants 2019-10-12 12:44:38 +02:00
Cre3per
0a7639877b fixed alarm repetition 2019-10-12 12:44:38 +02:00
Cre3per
8b7d853097 merged.
added makibes hr3 OnSharedPreferenceChangeListener.
added makibes hr3 reverse find device (find phone).
added makibes hr3 heart rate/steps/firmware version.
2019-10-12 12:44:38 +02:00
dakhnod
a2a0bc08dd Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-11 22:35:50 +02:00
Andreas Shimokawa
5c3c81fe6f do not recogize bip lite as bip 2019-10-10 21:21:19 +02:00
Daniel Dakhno
009888b688 fixed coordinator to filter device specific service 2019-10-10 02:06:37 +02:00
Daniel Dakhno
52ca3d3625 fixed coordinator to filter device specific service 2019-10-10 01:24:17 +02:00
Andreas Shimokawa
8d27ad1996 another try at bip lite support 2019-10-09 21:33:55 +02:00
Andreas Shimokawa
b5e9727dcd Make some more settings per-device settings
- All ID115 settings migrated, allowing removal from settings activity
- All timeformat settings for all devices migrated
- All wrist location settings for all devices migrated (now you can have a mi band 3 on the left wrist and a bip  on the right wrist :P)

Also deduplicated some strings from zetime/generic preferences
2019-10-05 22:35:30 +02:00
dakhnod
ea1653d616 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-10-05 19:09:07 +02:00
dakhnod
59e318dee1 notification does not requre hands any more 2019-10-05 18:59:52 +02:00
Andreas Shimokawa
21a287f6b1 Makibes HR3: Make settings per-device
Also so some minor cleanups on Makibes HR3 code
2019-10-02 23:45:19 +02:00
Cre3per
7409281c5a very basic makibes hr3 support 2019-10-02 23:06:33 +02:00
dakhnod
b20963348d Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-09-25 00:22:57 +02:00
dakhnod
f912ae28a2 adjusted settings activity 2019-09-25 00:19:59 +02:00
Andreas Shimokawa
814f322e2a Amazfit Bip: Recogize Amazfit Bip Lite as Amazfit Bip 2019-09-20 21:51:04 +02:00
Sebastian Kranz
194f5b04ae Enable the unicode emoji support, even if the zetime has only some of the most used emojis on board. 2019-09-14 00:20:07 +02:00
Andreas Shimokawa
876515f1fd Amazfit Cor: support custom emoji font
This commit refactors code and implements a custom device specific string
filter, which does nothing by default.
The implementation in HuamiSupport does the custom emoji conversion.

The setting has been moved from devicesettings_amazfitbip.xml to an extra file
As soon as there is a custom font for Mi Band 2/3/4 it is sufficient to add
"devicesettings_custom_emoji_font.xml" to the list of supported settings
in the appropriate coordinator and everything will work.
2019-09-14 00:05:39 +02:00
vanous
cf28ee48f4 add .apply() 2019-09-07 22:41:35 +02:00
vanous
975b698564 remove preference keys when deleting device 2019-09-07 22:41:35 +02:00
Nephiel
b40c3ade85 Amazfit Bip: Add emoji support when using custom font firmware 2019-08-31 22:32:18 +02:00
Andreas Shimokawa
b38b83377c Mi Band 2: enable third party hr sensor access setting
This works but since the Mi Band 2 has no "status" menu or activities, live activity has
to be started (charts swipe to right), but that spams the database...
2019-08-28 10:11:15 +02:00
Andreas Shimokawa
243eec042d Mi Band 3/4, Amazfit Bip/Cor: Add setting to expose the HR sensor to 3rd party apps
Closes #1606
2019-08-27 11:13:45 +02:00
Andreas Shimokawa
aec3d21216 Mi Band 4: remove unsupported DND setting from settings menu 2019-08-22 10:20:45 +02:00
ksiwczynski
0f6ef140e2 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge 2019-08-17 02:07:55 +02:00
Andreas Shimokawa
02d02d2329 Add Initial Mijia LYWSD02 support (Smart Clock with Humidity and Temperature Sensor)
This only sets the time on connect.
2019-08-02 23:49:14 +02:00
Andreas Shimokawa
aefd7520f3 Mi Band 3/4, Amazfit Cor/Bip: set language immediately when changing it (not only on connect)
Helps testing
2019-08-02 00:11:11 +02:00
Andreas Shimokawa
97540d734f Mi Band 3/4: Allow enabling the "NFC" menu where supported
Pretty useless, because we do not support NFC - but nice for testing
2019-08-01 23:07:28 +02:00
dakhnod
8db0812ed0 fixed settings bug 2019-08-01 22:39:34 +02:00
dakhnod
b089ad7531 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-29 00:56:32 +02:00
Andreas Shimokawa
124d03d171 Mi Band 4: Enable music info support (displays now on the band) 2019-07-28 14:34:04 +02:00
Andreas Shimokawa
261ddee707 Mi Band 4: Support setting date format (for built-in watchfaces) 2019-07-26 21:05:16 +02:00
Andreas Shimokawa
8d567c1e6d fix build 2019-07-26 19:37:00 +02:00
dakhnod
1e936e4a85 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-26 17:57:12 +02:00
dakhnod
50483dd271 added UI elements and Activity data fetch 2019-07-26 16:43:38 +02:00
dakhnod
0b572505b3 removed DeviceSupportService hack 2019-07-26 16:42:53 +02:00
Andreas Shimokawa
8449e55f9e Amazfit Cor: Fix empty menu on Amazfit Cor 2
Fixes #1563
2019-07-26 08:57:41 +02:00
dakhnod
ef692498af Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-25 11:12:50 +02:00
Andreas Shimokawa
5ff5561772 Mi Band 4: Fix notification icons and cut-off text 2019-07-24 09:33:53 +02:00
Andreas Shimokawa
044f6c11cd Mi Band 4: WIP firmware update preparation
Nothing works yet
2019-07-23 23:49:21 +02:00
dakhnod
ed651ac976 fixed vibration setting 2019-07-21 17:09:14 +02:00
dakhnod
62feefb67e reworked settings, nearly removed DeviceSupport Hack 2019-07-21 16:47:17 +02:00
dakhnod
f5c8ea39b1 Merge branch 'master' of github.com:Freeyourgadget/Gadgetbridge into fossil-q-hybrid 2019-07-18 11:24:15 +02:00
Andreas Shimokawa
8d50e8ef08 Mi Band 3: Allow setting date format in per-device settings
Closes #1544
2019-07-16 23:48:08 +02:00
root
09f6cada87 Fossil Q hybrid and Skagen support added
Opening this branch for the second time inorder to purge certain files form the repo
2019-07-14 19:45:40 +02:00
Andreas Shimokawa
d48d3cdea3 Add untested Mi Band 4 support (basically runs on Mi Band 3 code)
This is COMPLETELY untested, we do not have the device.
2019-06-12 23:44:01 +02:00
Andreas Shimokawa
d779310962 Move "activate display on lift wrist" and "rotate wrist to switch info" to per-device settings
"activate display on lift wrist" for Mi Band 2/3, Cor, Bip
"rotate wrist" only for Mi Band 2
2019-06-05 16:00:18 +02:00
Andreas Shimokawa
16090f0e21 Move fake device offset to Mi Band 1 preferences, remove support for other devices
Reasons for removal:
- I doubt we honored the offset correctly for new features anyway that are available on newer devices
- Newer devices have a display always displaying the wrong time
2019-06-05 14:11:44 +02:00
Andreas Shimokawa
b6a015c18b move low-latency setting for Mi Band to per-device settings (only for Mi Band 1) 2019-06-05 12:48:33 +02:00
Andreas Shimokawa
78dd7ef153 Mi Band 3: Fix setting menu items with 2.4 firmware and add support for the new timer menu 2019-05-29 15:53:44 +02:00
Andreas Shimokawa
93f288b936 Move "Do not disturb" settings from Mi Band / Amazfit settings to per-device settings (Mi Band 2 and Mi Band 3 only) 2019-05-24 23:47:57 +02:00
Andreas Shimokawa
5e254baaa1 ZeTime: Do not include all the normal preferences again
This behavious was confusing, you could endlessly access ZeTime preferences from ZeTime prefrences from ZeTime preferences
2019-05-24 22:15:39 +02:00
Andreas Shimokawa
3440485a51 Mi Band 2: move settings to per-device settings 2019-05-23 21:33:35 +02:00
Andreas Shimokawa
34e0c4e8bc remove swipe unlock settings from cor (can only be set from the band itself) 2019-05-22 19:04:38 +02:00
Andreas Shimokawa
038f101a12 Migrate more settings to per-device settings
Also add icons.
2019-05-22 10:49:59 +02:00
Andreas Shimokawa
9bfef4cf4f Make per-device settings more versatile, move more settings
This allows to construct per-device settings by device type very easily

device coordinators just do the following to declare which setting they support,
the settings activity is then composed at runtime.

@Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
     return new int[]{
            R.xml.devicesettings_miband3,
            R.xml.devicesettings_swipeunlock,
            R.xml.devicesettings_pairingkey
    };
}
2019-05-22 00:42:22 +02:00
Andreas Shimokawa
08e7d728c2 Huami: Migrate some settings to device specific settings
- Migrate language setting
- Migrate menu items setting
- Migrate lastsync timestamp from prefixed global shared prefercence

All settings should be automatically be converted (e.g. Amazfit Bip settings to all paired Amazfit Bip devices) and then deleted.

Cor Settings aleady completely vanished from the global settings menu.

When migration is done we will have a much cleaner settings menu. Will also remove confusion that some Cor settings have to be done in Bip settings.
2019-05-20 16:36:06 +02:00
Andreas Shimokawa
6b72292812 Recoginze "Xiaomi Band 3" as Mi Band 3
When running newer Firmwares (since 2.2.0.12) it is possible that devics name themselves "Xiaomi Band 3".
After a factory reset? Related to target market?

Closes #1517
2019-05-18 21:03:50 +02:00
Andreas Shimokawa
34b4943918 Also export and import device specific preference files 2019-05-09 14:55:37 +02:00
Andreas Shimokawa
58dca9a897 Amazit Cor 2: Add device specific warning when installing firmware (untested)
Also remove some Mi Band'ism from strings
2019-05-09 12:54:14 +02:00
Andreas Shimokawa
41e607ce9b Amazfit Cor 2: Give own device type id, support flashing the firmware **UNTESTED** 2019-05-09 12:42:59 +02:00
Andreas Shimokawa
f7fe3a836f Mi Band 3: Support flashing latest Japanese-Korean font file
This increases the supported file size to 2.0MB.
Somehow it is confusing that the new file is version 1 and the old version 2.
Also according to firmare.json both are version 1....
2019-05-07 11:13:48 +02:00
Andreas Shimokawa
6d28af1132 Mi Band 2: enable per-device pairing keys
Now enabled for all Huami devices
2019-05-02 22:40:28 +02:00
Andreas Shimokawa
bb161aff59 Amazfit Cor: Also recognize "Amazfit Band 2" as Cor 2019-05-02 22:26:20 +02:00
Andreas Shimokawa
77c76a7bd3 Mi Band 3: enable per-device pairing keys 2019-05-01 21:56:36 +02:00
Andreas Shimokawa
86270c0592 Try to enable Amazfit Cor 2 support but just using Amazfit Cor code.
Related to #1500
2019-05-01 19:51:32 +02:00
Andreas Shimokawa
db48707764 Add a device specific settings activity, currently used for setting the auth key for Amazfit Bip/Cor
When connecting to a new device, a random key gets generated, which can be
looked up from the device specific settings (accessible via the gear icon in
the device card in the main activity). Old devices keep their 0123456789@ABCDE
key, they have to be re-paired to change that.
During pairing, long-pressing the device candidate in the discovery activity
will also start the device specific settings activity, where the auth key
can be set manually priror to pairing. This is usefull to keep the ability to
pair one device with multiple android devices.

Fixes #1308
2019-04-21 21:25:33 +02:00
License Bot
9aadb2f2fd Update license headers 2019-04-21 18:53:10 +02:00
Daniele Gobbetti
7c918ee191 Add UI to invoke device specific settings Activity
Currently the icon in the card is hidden for all devices, since the
functionality is not implemented yet
2019-04-21 15:59:39 +02:00
Johannes Schmitt
f92626f4a5 moved BFH-16 in JYOU "group" 2019-04-20 22:00:50 +02:00
Sophanimus
c7a6dc4b01 improvements 2019-04-20 22:00:50 +02:00
Sophanimus
070a132780 updated Copyright notes 2019-04-20 22:00:50 +02:00
Sophanimus
1e127c4de0 removed unnecessary space 2019-04-20 22:00:50 +02:00
Sophanimus
deb4d3a0ee reordered functions in BFH16DeviceCoordinator 2019-04-20 22:00:50 +02:00
Sophanimus
0b1f3ee1d7 added Copyright notes 2019-04-20 22:00:50 +02:00
Sophanimus
1087a53216 some functions do now work
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
6faf9fdae8 noticed similarities to JYOU, copyed JYOU functions, adapted heartrate, blood presure and satiation values
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
2c1f87c81b added BFH16DeviceSupport
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
Sophanimus
3ca589f730 BFH-16 Device-discovery working
Signed-off-by: Sophanimus
2019-04-20 22:00:50 +02:00
ksiwczynski
76427a3848 Watch X Plus discovery 2019-03-14 03:58:57 +01:00
cpfeiffer
c9f1c110b0 Merge remote-tracking branch 'github/pr/1292' 2019-03-04 22:10:23 +01:00
Sebastian Kranz
0da866f70a Change user goal distance preference to use meters instead of km. 2019-03-04 07:16:56 +01:00
Sebastian Kranz
71a1605445 Add function to save some big chunk of code at the preference listeners. 2019-03-04 06:34:10 +01:00
jfgreffier
072dcd28ec
Merge branch 'master' into master 2019-03-01 11:33:18 +01:00
Sebastian Kranz
e0399a056f Write heart rate alarm limits, when changed instead of on connect. - Missing reading of that preference. 2019-02-21 09:19:05 +01:00
Sebastian Kranz
6a04c78b0e Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into zetime 2019-02-20 14:24:59 +01:00
Sebastian Kranz
a7553188f9 Reading the device preferences from the watch and set them in the ZeTime menu. 2019-02-20 14:09:21 +01:00
License Bot
8e4be724e1 Update license headers (fix duplicates) and contributors list 2019-02-13 21:01:14 +01:00
License Bot
beedb653e6 Update license headers 2019-02-13 20:43:31 +01:00
Andreas Shimokawa
c66fade081 Amazfit Bip: Support disconnect notifications
Might also work with Cor, did not work with Mi Band 3
2019-02-13 13:06:42 +01:00
Jean-François Greffier
4321a29e46 MIBCS update from android.support to androidx 2019-01-31 15:49:42 +01:00
jfgreffier
5ab075b373
Merge branch 'master' into master 2019-01-31 15:28:09 +01:00
Andreas Böhler
fd68cf455f Fix misleading comment 2019-01-28 20:31:03 +01:00
Andreas Böhler
fc17dec87b Add explicit support for GB-6900B, GB-X6900B and GB-5600B 2019-01-28 20:26:02 +01:00
Andreas Böhler
df6547c287 Improve find device service (now always beeps) 2019-01-28 20:25:32 +01:00
Andreas Böhler
510d13037a Add alarm configuration and fix a few small bugs 2019-01-28 20:25:16 +01:00
Andreas Shimokawa
dad7ba7aaa Mi Band 3: Enable fetching sports activities and add "Exercise" type to generic code 2019-01-28 00:22:11 +01:00
Daniele Gobbetti
75d3dffb14 Migrate to androidx support libraries and bump compile SDK version
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00
Jean-François Greffier
2e7c7d8e52 MIBCS discovery 2019-01-23 21:19:25 +01:00
Andreas Shimokawa
e9982ccd56 remove supportsAlarmConfiguration() in favor of getAlarmSlotCount()
Coordinator that do not support alarms return 0 anyway.
2019-01-11 23:26:00 +01:00
Andreas Böhler
cf870bff8a Add handler thread to poll TX power level, properly use performInitialized(), correctly terminate threads 2019-01-06 11:31:50 +01:00
Andreas Böhler
76aebd4e20 Add support for displaying music info 2019-01-06 11:31:50 +01:00
Andreas Böhler
2c2d07067d Add initial support for Casio GB-6900B 2019-01-06 11:31:50 +01:00
Stan Gomin
efd7195725 Avoid KIA Sportage appearing in the list of devices 2018-12-23 12:57:34 +01:00
Matthieu Baerts
8d78c45e7d messages: convert emoji's to supported chars
Some devices don't support emoji's and display a series of `?` chars.
Instead of that, replace them by `:<emoji>:` text, e.g. `A 🐱` is
replaced by `A 🐱`.

This is done by using 'android-emojify' project and their
`EmojiUtils.shortCodify(text);` function.

For more details about this lib released under MIT license:

    https://anitrend.github.io/android-emojify/
2018-12-23 12:52:49 +01:00
Andreas Shimokawa
b020d59f54 Implement factory reset feature in debug activity
Implemented for Mi Band 1/2/3, Cor, Bip

Could be implemented for Pebble by deleting all blobdbs etc

Related to #109
2018-12-16 16:06:12 +01:00
Mormegil
657fc16f80 Enable No1F1 support for a Chinese clone
This cheap Chinese dummy-smart-watch apparently uses the same chip/protocol, but it reports with a different name, so we need to add it to the hardcoded name-based detection.
2018-12-02 23:34:01 +01:00
Andreas Shimokawa
740cf103f6 Initial support for per-device alarms and raising the number of available alarms
TODO:
- Fix alarm widget (how can we get the deviceId?)
- Get rid of GBAlarm in favour of DAO generated Alarm class
- Find better defaults
- Bonus: migrate old preferece based shared settings
2018-11-24 12:16:47 +01:00
Sebastian Kranz
6b82340093 Merge branch 'master' of https://github.com/Freeyourgadget/Gadgetbridge into zetime 2018-10-01 06:39:08 +02:00
Sebastian Kranz
6fa2dc04f3 Setting the signal types is written to the watch now. 2018-09-28 19:36:35 +02:00
José Rebelo
e62fe36391 Roidmi 3: Fix and enable support 2018-09-28 16:35:09 +01:00
Pavel
c86b58fec9
Update Y5Coordinator.java 2018-09-27 01:12:23 +03:00
Pavel Elagin
fbb75694c7 Add support JYou Y5 device. 2018-09-27 01:05:40 +03:00
Sebastian Kranz
2df8dfed18 Add a submenu to choose between different signal types. 2018-09-20 14:38:06 +02:00
Newline Bot
a55c3d7220 Replace CRLF with LF (no content changes) 2018-09-17 18:28:56 +02:00
Sebastian Kranz
bc20db44f4 BUGFIX: use correct preference key to toggle wrist flick on and off. Add: fill function onFindDevice with test commands for the signaling of the watch, if watch is set to buzzer just the buzzer is used, ... and so on. 2018-09-17 14:43:09 +02:00
Sebastian Kranz
ecfd83ae65 Add setting alarms. Choose the type of the signaling in the preferences. 2018-09-17 13:53:24 +02:00
Sebastian Kranz
ba0fdb8c96 Part 2: Add inactivity alert - complete now. Add checkbox to en-/disable the heart rate alarm and group this with the limits in its own screen. 2018-09-17 08:10:49 +02:00
Sebastian Kranz
828df4898f First part: Add inactivity alert. 2018-09-17 05:53:24 +02:00
cpfeiffer
f142003f09 Avoid boxing 2018-09-16 00:12:40 +02:00
Sebastian Kranz
6be181047a Add more preference settings for ZeTime: time and date format, activity tracking, do-not-disturb scheduling, wrist-flick, analog mode and calories type. 2018-09-14 13:32:18 +02:00
Sebastian Kranz
6617c45fec Add setting heart rate alarm values. Make the settings of the wearside and screen on duration interactive - give them their own activity. Also make the auto heart rate measurement work. 2018-09-13 14:55:38 +02:00
Sebastian Kranz
59a73d47af BUGFIX: setting goals now correct! Add automatic heart rate measurement settings - but the function got not called. Add option to leave activity data on the watch or delete them. 2018-09-12 13:59:45 +02:00
Sebastian Kranz
8062729ea8 Send user info to the watch, add more daily targets (goals) and send them to the watch. 2018-09-07 10:53:33 +02:00
Sebastian Kranz
ca7108c153 Add ZeTime settings: choose on which wrist you wear the watch and set screen on duration. 2018-09-06 14:51:29 +02:00
José Rebelo
2fe4b84a10 Roidmi: Initial Support
Roidmi 3 support is disabled for now, since it is not working.
2018-08-31 14:03:47 +01:00
José Rebelo
cc6c57bd4c Add support for LED Color, FM Frequency 2018-08-31 14:03:39 +01:00
License Bot
696653eabf Update contributors list and license headers. 2018-08-29 21:30:23 +02:00
José Rebelo
9fda67b297 Mi Band 3: Night Mode 2018-08-27 22:54:37 +02:00
cpfeiffer
d93799e72a Improve Teclast H1 and H3 device matching #1207 2018-08-18 12:57:21 +02:00
Dougal19
e520cf57eb
Test add support for H3 watch strap 2018-08-13 17:49:38 +01:00
Andreas Shimokawa
74f47c8e2e Mi Band 3: Support setting language to German, Italian, French, Polish, Japanese, Korean
NOTE:
- Needs latest firmware
- Setting to Japanese or Korean leads to empty menus on the device. When
  reconnecting you, will get a sceen which telling you to update. I highly
  suspect it requires flashing Mili_wuhan.ft.kj (kj=korean,japanese)
2018-08-13 00:00:46 +02:00
José Rebelo
470efa3e51 Mi Band 3: Change display items 2018-08-12 00:00:38 +02:00
José Rebelo
338251597b Mi Band 3: Band screen unlock 2018-08-09 23:41:25 +02:00
Carsten Pfeiffer
95e39cabba
Merge pull request #1190 from maxirnilian/watch9
Watch 9: Initial support
2018-08-08 21:16:59 +02:00
Andreas Shimokawa
da58e22afe Only start MusicPlaybackReceiver if device supports music info
Also block sending music info in HuamiSupport if device does not support it
2018-08-07 12:44:00 +02:00
maxirnilian
4ff04870ca Watch 9: Initial support 2018-08-06 18:30:38 +02:00
Andreas Shimokawa
66391e10c9 Amazfit Cor: Allow to enable music menu on device 2018-08-02 22:29:52 +02:00
Andreas Shimokawa
cc7f6d7263 More Huami refactoring
- Rename MiBand2Service to HuamiService
- Move preferences around (Mi Band 2 has its own device specific settings now)
- Fix Cor menu items not syncing immediately in settings
- Try to support settings menu items on Mi Band 3 (buggy, disabled code for now)
2018-08-02 10:55:30 +02:00
Andreas Shimokawa
c247efc720 add missing file 2018-08-01 22:58:41 +02:00
Vadim Kaushan
fd7a0cb124 ID115: fetching activity data 2018-07-30 23:23:13 +03:00
Vadim Kaushan
14dc3ad9c5 ID115: add supportsFindDevice() function 2018-07-29 19:34:34 +03:00
Vadim Kaushan
458a363f11 Merge remote-tracking branch 'upstream/master' 2018-07-29 19:31:40 +03:00
José Rebelo
a43934651a
Allow devices to not support being found 2018-07-27 14:38:33 +01:00
Daniele Gobbetti
2147ab4948 Revert "Revert "remove unused getPrimaryActivity() from coodinators, mark Mi Band HRX as non-heartrate""
This reverts commit 63231ec49a.

Please note that the comment of the reverted commit was inaccurate, as the Mi Band HRX was left untouched by it
and is left untouched byt this commit.
2018-07-27 15:13:21 +02:00
cpfeiffer
63231ec49a Revert "remove unused getPrimaryActivity() from coodinators, mark Mi Band HRX as non-heartrate"
This reverts commit 495ba81edc.

See discussion in https://github.com/Freeyourgadget/Gadgetbridge/issues/1165
2018-07-27 13:15:10 +02:00
Andreas Shimokawa
e96dcc69ab Amazfit Bip: try to support weather in newer firmwares 2018-07-21 17:18:08 +02:00
Andreas Shimokawa
eef38d4680 Only use 0x00 as auth flags on Mi Band 3 - to not disturb other devices 2018-07-17 00:29:36 +02:00
Vadim Kaushan
65fbb4da5b ID115: wrist setting 2018-07-16 15:48:37 +03:00
Andreas Shimokawa
dc1e831630 Mi Band 3: Fix Pairing, this MIGHT break pairing for other devices (Bip/Cor/Mi Band 2) 2018-07-16 13:38:51 +02:00
Vadim Kaushan
c43a564a47 Merge remote-tracking branch 'origin/master' 2018-07-15 00:53:47 +03:00
Vadim Kaushan
fe9ec9b88a ID115: screen orientation preference 2018-07-14 13:23:21 +03:00
Vadim Kaushan
02b3f23329 ID115: set steps goal 2018-07-13 15:00:16 +03:00
Vadim Kaushan
c9e7a2ff1d ID115: notification support 2018-07-13 14:08:11 +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
Vadim Kaushan
36b956aed6 ID115: set manufacturer string 2018-07-12 16:53:57 +03:00
Vadim Kaushan
26a1f97e43 ID115: coordinator 2018-07-12 15:47:08 +03: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
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
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
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
2dda978453 Amazfit Bip/Cor: Fix scheduled setting for "display on lift wrist" preference
Fixes #1102
2018-06-26 17:43:54 +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
Andreas Shimokawa
3f06a8c2a6 Rename file to match class name. 2018-06-18 21:22:34 +02:00
Kranz
c611042e51 Add more commands. Add message check function. 2018-06-15 13:40:16 +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
Sebastian Kranz
48affad220 Add some UUIDs and Cmds. Connect further. 2018-06-08 16:28:05 +02:00
Kranz
905f49101b Set activity support to true. Add bonding style none. 2018-05-29 12:57:08 +02:00
tiparega
3852f925da Added support for Q8 devices 2018-05-20 19:52:08 +02:00
Daniele Gobbetti
e6748c34fc Update the notification from DeviceManager instead of DeviceCommunicationService
Since the device object (local to DCS) is set to null on disconnect, the
notification could not get updated from within the receiver. DeviceManager
does not have such issues.

The problem appeared with 3f421facab
2018-05-13 20:19:09 +02:00
Andreas Shimokawa
bd012cab2a fix typo 2018-05-07 22:20:18 +02:00
Andreas Shimokawa
c663ba190d Amazfit Bip: try to fix byte sequence when setting menu items 2018-04-27 21:20:42 +02:00
Andreas Shimokawa
e1ef2455dc Amazfit Bip: allow to set displayed menu item in firmware >=0.1.1.14
NOTE:
- You will have to be connected while doing the changes in preferences (FIXME)
- It might not work at all since I did not test after the latest changes :P
2018-04-27 09:28:33 +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
66bb0bd81b Merge branch 'master' into bip-wip 2018-03-27 11:09:59 +02: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
3d3cc1f40c Merge branch 'master' into bip-wip 2018-03-13 17:27:18 +01:00
License Bot
238bacde9f Update license headers 2018-02-26 14:27:33 +01:00
ladbsoft
d5978d9b30 Xwatch Basic Support (#972)
Initial XWatch support

* Activity syncing
* Multimedia control using the watch's button
2018-02-25 12:05:36 +01:00
Daniele Gobbetti
e7a1e1b8c3 Move the connected device to top in control center
What happens in reality is that devices are sorted according to their
connection status first, and then by name. So even if/when we support
multiple device connection, the order should remain sane.

This closes #842.
2018-02-19 18:27:48 +01:00
Andreas Shimokawa
e48885df7d Merge branch 'master' into bip-wip 2018-02-15 23:38:06 +01:00
Andreas Shimokawa
ea4a4edc5b Amazfit Bip: Fix language setting on new firmwares 2018-02-08 22:21:15 +01:00
Kranz
bd673fb4af Initial device support for MyKronoz ZeTime, following the wiki page add new device support. 2018-02-08 07:21:12 +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
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
1349a1c7da Merge branch 'master' into bip-wip 2018-01-22 08:57:01 +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
cpfeiffer
e159a5dde3 Cleanup, deduplication, null-handling fixes 2018-01-13 21:08:51 +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
6f68c8adde Merge branch 'master' into bip-wip 2018-01-04 12:09:57 +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
f6b183d39a Allow firmware files up to 1.5MB
This helps some experiments
2017-12-21 09:40:47 +01:00
Andreas Shimokawa
7e2f895001 Merge branch 'master' into bip-wip 2017-12-17 00:24:48 +01:00
cpfeiffer
fccd2ebb77 Display the actual firmware kind instead of "Firmware"
i.e. "GPS Firmware", "Watchface", "Resources", ...
2017-12-11 23:36:39 +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
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
36e50bddb0 remove obsolete comment 2017-11-19 23:47:06 +01:00
Andreas Shimokawa
2ccebe07f5 Merge branch 'master' into bip-wip 2017-11-11 00:08:19 +01:00
Andreas Shimokawa
1e324acd65 Mi Band 2/Bip/Cor: Whole day HR Measurement 2017-11-11 00:04:51 +01:00
Andreas Shimokawa
640e7f0abf Merge branch 'master' into bip-wip 2017-11-03 23:27:58 +01:00
Andreas Shimokawa
83c06f4429 Amazfit Cor: fix firmware update 2017-11-03 01:09:09 +01:00
Andreas Shimokawa
e2546f772a Mi Band 2: prevent detecting as Mi Band HRX in all cases, fixes HR not visible in charts
Fixes #862
2017-11-01 22:10:06 +01:00
cpfeiffer
7b3556756a Bip: activity types are different from samples' activity kind 2017-10-31 23:39:49 +01:00
cpfeiffer
f5318287c4 WIP: Bip GPS fetching, parsing, exporting
Also adjust Mi2 date/time sending wrt DST offsets
2017-10-31 23:16:39 +01:00
Andreas Shimokawa
3282e329f3 Mi Band 2: Fix bad copy and paste error that lead to Mi Band 2 being detected as Amazfit Bip
Fixes #859
2017-10-30 09:03:40 +01:00
License Bot
3ea2ac6dd2 Update license headers 2017-10-25 09:29:36 +02:00
Andreas Shimokawa
55cdc6d1c5 Amazfit Cor: Untested firmware update support
(refactor stuff along the way)
2017-10-24 22:01:25 +02:00
Andreas Shimokawa
83038a47ca use abstract HuamiCoordinator as base for MiBand2/HRX/Bip/Cor and separate from Mi1 Coordinator 2017-10-23 14:46:08 +02:00
Andreas Shimokawa
495ba81edc remove unused getPrimaryActivity() from coodinators, mark Mi Band HRX as non-heartrate 2017-10-23 13:44:38 +02:00
Andreas Shimokawa
0f46ea2a59 Try to blindly add support for Amazfit Cor 2017-10-23 11:28:51 +02:00
Andreas Shimokawa
7e5301e963 add missing file 2017-10-23 11:13:21 +02:00
Andreas Shimokawa
69619c21f6 Mi Band 2: try to add support for Mi Band HRX
Also refactors some stuff, basically moving stuff around
2017-10-23 10:28:54 +02:00
Andreas Shimokawa
a809ad214d Refactor some common Huami stuff (Mi Band 2 / Bip)
This also fixes a bug where every event from the device (like not worn detection) counted as a button press
2017-10-21 22:50:28 +02:00
Andreas Shimokawa
6603b3fa05 Merge branch 'background-javascript' 2017-10-16 23:06:36 +02:00
License Bot
8f06e36c00 Update license headers 2017-10-16 09:38:02 +02:00
protomors
4b4e95bfe0 NO.1 F1: Alarms support. 2017-10-10 00:41:27 +02:00
Andreas Shimokawa
fbef490419 Merge branch 'master' into background-javascript 2017-10-04 21:49:39 +02:00
José Rebelo
5701707e87 Mi Band 2: Change distance unit 2017-10-03 09:12:33 +02:00
Andreas Shimokawa
49bebc3440 Merge branch 'master' into background-javascript 2017-10-01 23:36:22 +02:00
Andreas Shimokawa
6d8ffad55c Call onSetConfiguration() in listener if measurement system gets changed in preferences
(And implement onSetConfiguration() for HPlus)
2017-09-30 22:45:45 +02:00
Andreas Shimokawa
9f05aff11b Mi2/Bip: Various sleep fixes
- Long standing bug fixed in determinePreviousValidActivityType()
  it always got the very fist valid sample, not the nearest in the past
  (for me that was light sleep, so every timespan queried began with light sleep)
- Support type 2 (running) and 12 (wakeup(?))
- Support new firmwares (Mi2 and Bip) by masking only the last 4 bits (0xf),
  takes some ugly query hack in determinePreviousValidActivityType() since
  greenDAO does not support the & operator (even though sqlite does)
2017-09-29 17:21:16 +02:00
Andreas Shimokawa
0ffa2ce45a move up measuerement system from hplus to global preferences 2017-09-29 12:33:08 +02:00
Andreas Shimokawa
e6d939e5cb Merge branch 'master' into background-javascript 2017-09-28 17:31:45 +02:00
Andreas Shimokawa
3d09b9dc97 Amazfit Bip: Switch language on the watch automatically according to the phone locale
Supported:
- Simplified Chinese
- Traditional Chinese
- English
2017-09-28 16:04:06 +02:00
Andreas Shimokawa
0a9664d5ec Merge branch 'master' into background-javascript 2017-09-25 23:50:08 +02:00
Andreas Shimokawa
47bdeea257 Amazfit Bip: map a few more icons 2017-09-25 22:34:05 +02:00
Daniele Gobbetti
e8ae47de79 Pebble: Make background JS support toggle-able
- Add preference to enable background JS (default disabled)
- Remove the dummy activity used to create the webview, use ExternalPebbleJSActivity instead
- Add layout for legacy configuration, used if background JS is not enabled
- Create the view upon connecting, not when launching the application
- Remove the generic helpers used to find out if any device would need the background webview
- Drastic refactoring of WebviewSingleton moving internal classes in a new package "webview" in service/devices/pebble
2017-09-25 17:12:35 +02:00