TaaviE
6cd59fbd24
Refactored all pairing and bonding activities ( #1989 )
...
Fixed a few warnings
Refactored all bonding and bonding activities
Co-authored-by: TaaviE <taavi.eomae+github@gmail.com>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1989
2020-08-28 15:38:18 +02:00
vanous
20faa23843
Add events forwarding for HUAMI Bip, MB3 ( #1980 )
...
Remove unneeded function call
Re-done to simplify
Add media actions
Rename function to make meaning clearer
Add events forwarding for HUAMI Bip, MB3
Co-authored-by: vanous <petr@linuks.cz>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/1980
2020-08-16 22:07:55 +02:00
Andreas Shimokawa
a619fdb168
Huami: Prevent setting an MTU of < 23, which is either a special value or a parsing error of Gadgetbridge
...
This fixes a problem where writeToChunked algorithm results in out of bounds writes or an endless loop.
Closes #1936
2020-08-02 13:11:41 +02:00
Andreas Shimokawa
ef09e24482
Amazfit GTS: Fix broken activity data on Firmware 0.0.9.xx
...
Fixes #1924
2020-07-22 11:03:30 +02:00
Andreas Shimokawa
3940387b1a
Huami: set forecast limit to 6 days (current + 6 in future)
2020-06-29 19:41:56 +02:00
Andreas Shimokawa
b7a1f469ee
Huami: limit forecast days to 3 days
...
Fixes problems with new weather notificaion on Mi Band 4 and others
Fixes #1910
2020-06-29 19:02:30 +02:00
Andreas Shimokawa
5d58a2f583
Work around music controls being disabled since last commit on Amazfit Cor (we do not get a music app started event before we haven't sent music information - weird)
2020-06-22 18:35:22 +02:00
Andreas Shimokawa
6b20f62e0f
Huami: Use music control code from Bip S for all devices
...
needs testing and cleanup for all devices
2020-06-22 18:06:40 +02:00
Zhong Jianxin
55f9c8f519
Huami: Avoid cutting multibyte chars in half
2020-06-22 10:12:10 +02:00
Zhong Jianxin
c3a9cf858e
Amazfit Bip S: Allow longer notification message
2020-06-16 13:41:26 +08:00
Zhong Jianxin
44a9ce0267
Amazfit Bip S: Music support
2020-06-08 16:16:33 +02:00
Zhong Jianxin
c0558c570c
Huami: Check if musicSpec/stateSpec is null
2020-06-08 16:16:33 +02:00
Zhong Jianxin
8d145917f5
Huami: Use equals to compare musicspec/statespec
2020-05-19 23:08:46 +08:00
Zhong Jianxin
fc39221782
Amazfit Bip S: Support setting shortcuts
2020-05-14 10:05:49 +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
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
33a1dbd1cd
Amazfit GTS: Fix setting menu items with low mtu
2020-04-29 14:44:58 +02:00
Andreas Shimokawa
89017ac58f
Huami: Disable air quality indicator on Huami devices instead of showing 0
...
Thanks @ponyzucker
Closes #1834
2020-04-08 12:02:47 +02:00
Andreas Shimokawa
ea606713d7
Huami: Igore all-day events when syncing calendar events
2020-03-20 17:21:20 +01:00
Andreas Shimokawa
8cf7e259aa
Huami: Fix crash when calendar event desctription or title was null
...
Fixes #1813
2020-03-04 23:13:57 +01:00
cpfeiffer
eb8e37d3a6
Sanity check for alarms index to avoid AIOOBE
2020-02-26 22:25:03 +01:00
Andreas Shimokawa
9a114f640b
Huami: Make experimental calendar sync feature optional
2020-02-24 14:19:06 +01:00
Andreas Shimokawa
bffb8e8f87
Huami: send upcoming calendar events as reminder
...
TODO: make this optional, fix title not being displayed, do it proberly like we do on pebble
2020-02-19 09:41:50 +01:00
Andreas Shimokawa
71b76c8e8f
Huami: add unused and untested co to send upcoming calender events as notifications
2020-02-18 22:20:57 +01:00
Andreas Shimokawa
3226d61ecd
Mi Band 4: Make high MTU support optional
...
Fixes #1766
2020-02-04 10:04:01 +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
Andreas Shimokawa
1c82c4e8e1
Huami: make time format 12h/24h configurable (was automatic before)
...
Fixes #1736
2020-01-04 23:40:50 +01:00
vanous
50defa1eb6
Add broadcast sender/receiver to ConfigureAlarms/HuamiSupport
...
This is to prevent discrepancies if user edits alarms in Gadgetbridge
and also on the device at the same time.
2019-12-29 11:07:42 +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
Andreas Shimokawa
6548802abc
fix regression from latest commit where Mi Band 3 could not longer connect
2019-12-26 23:26:08 +01:00
Andreas Shimokawa
45c40825f3
Mi Band 4: Support MTU that gets reported from the Band
...
In my case that boosts the MTU from 23 to 247, firmware updates and watchface
istallations are extremely fast. This also affects notifications, weather etc.
2019-12-26 23:05:13 +01:00
Andreas Shimokawa
21eada4caa
Allow to set alarms to unused when long tapping
...
This helps clearing up a cluttered alarms list on devices like the Mi Band 4
Difference between disabling and setting to usused:
Unsused alarms cant be enabled from the Band, disabled can.
Closes #1747
2019-12-24 01:27:57 +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
e5f5a671bd
Amazfit Bip: Make vibration after button action work
2019-11-21 13:24:06 +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
Andreas Shimokawa
2b0656c9c0
Amazfit GTS: Enable flashing firmware (untested)
2019-10-31 15:30:05 +01:00
Andreas Shimokawa
a3cd99a4a3
Huami: move notification code from AmazfitBipSupport to HuamiSupport
...
probably fix notifications on GTS
2019-10-31 14:28:24 +01: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
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
Andreas Shimokawa
ce9eab8def
Mi Band 4: really fix sending weather location
...
Really fixes #1609
2019-08-31 22:14:50 +02:00
Andreas Shimokawa
8f4489a21c
Mi Band 4: Fix call notifcation not stopping when call gets answered or rejected on the phone
...
This changes the way to how to stop call notification for all Huami device back to Mi Band 2
Also clean up unused code
Fixes #1612
2019-08-29 08:32:29 +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
d07ca6faa6
Mi Band 4: Fix location not being updated on the Band
...
Also move generic code from AmazfitBipSupport to HuamiSupport where is belongs
Fixes #1609
2019-08-25 09:56:06 +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
b6e78c1b9c
Mi Band 4: Support flashing watchfaces
...
FLASHING FIRMWARE/RES/FONT IS STILL UNTESTED
2019-07-25 20:51:28 +02:00
Andreas Shimokawa
a60268c05c
Mi Band 4: Bring your own key support (blindly done, I dont have my key)
...
THIS STILL REQUIRES MI FIT AND YOUR EXTRACTED KEY
HOWTO:
1) press + button in Gadgerbridge
2) LONG PRESS Mi Band 4
3) Tap "Auth Key"
4) Enter your key prefixed with 0x (eg. 0x112233445566778899aabbccddeeff00)
5) Go back
6) Tap Mi Band 4
Success? You tell me.
2019-07-23 08:56:26 +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
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