1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 06:41:06 +02:00

add items, shortcuts, cards and watchfaces from Amazfit Balance

This commit is contained in:
Maxime Reyrolle 2023-10-15 18:39:20 +02:00
parent 2456c878f4
commit 1d3f9b6ec1
5 changed files with 84 additions and 0 deletions

View File

@ -56,9 +56,13 @@ public class Huami2021MenuType {
put("00000033", "breathing");
put("00000038", "pomodoro");
put("00000039", "alexa2");
put("0000003B", "thermometer");
put("0000003E", "todo");
put("0000003F", "mi_ai");
put("00000046", "zepp_coach");
put("00000049", "body_composition");
put("0000004A", "readiness");
put("0000004C", "zepp_pay");
put("00000041", "barometer");
put("00000042", "voice_memos");
put("00000044", "sun_moon");
@ -86,6 +90,7 @@ public class Huami2021MenuType {
put("00000011", "female_health");
put("00000012", "breathing");
put("00000013", "spo2");
put("00000015", "thermometer");
put("00000016", "alarm");
put("00000017", "calendar");
put("00000018", "events");
@ -98,6 +103,11 @@ public class Huami2021MenuType {
put("00000021", "eventreminder");
put("00000023", "mi_ai");
put("00000025", "alexa");
put("00000027", "workout_shortcuts");
put("00000028", "apps_shortcuts");
put("00000029", "body_composition");
put("0000002A", "readiness");
put("0000002B", "zepp_pay");
}};
public static final Map<String, String> controlCenterNameLookup = new HashMap<String, String>() {{
@ -116,5 +126,6 @@ public class Huami2021MenuType {
put("00000002", "lockscreen");
put("00000005", "findphone");
put("00000019", "eject_water");
put("0000001A", "headphone");
}};
}

View File

@ -69,6 +69,7 @@ public class ZeppOsShortcutCardsService extends AbstractZeppOsService {
PHONE("9", "1"),
EVENTS("10", "1"),
STRESS("11", "1"),
THERMOMETER("12", "1"),
WORLDCLOCK("13", "1"),
TODO("17", "1"),
COUNTDOWN("18", "1"),
@ -83,7 +84,10 @@ public class ZeppOsShortcutCardsService extends AbstractZeppOsService {
STOPWATCH("25", "1"),
ZEPP_COACH("27", "1"),
RECOMMENDATION("28", "1"),
BODY_COMPOSITION("33", "1"),
READINESS("34", "1"),
ALEXA("35", "1"),
ZEPP_PAY("37", "1"),
;
private final String appNum;

View File

@ -68,6 +68,16 @@ public class ZeppOsWatchfaceService extends AbstractZeppOsService {
EMERALD_MOONLIGHT(0x00002D0A, R.string.zepp_os_watchface_emerald_moonlight),
ROTATING_EARTH(0x00002D0F, R.string.zepp_os_watchface_rotating_earth),
SUPERPOSITION(0x00002D0C, R.string.zepp_os_watchface_superposition),
// Codes are from Balance, not sure if they match on other watches
VAST_SKY(0x00002DB6, R.string.zepp_os_watchface_vast_sky),
LIGHTNING_FLASH(0x00002DB7, R.string.zepp_os_watchface_lightning_flash),
FREE_COMBINATION(0x00002DB9, R.string.zepp_os_watchface_free_combination),
PURE_WHITE(0x00002DBA, R.string.zepp_os_watchface_pure_white),
GUIDER(0x00002DBB, R.string.zepp_os_watchface_guider),
CITY_OF_SPEED(0x00002DBC, R.string.zepp_os_watchface_city_of_speed),
STARRY_SKY(0x00002DBD, R.string.zepp_os_watchface_starry_sky),
THE_ULTIMA(0x00002DBE, R.string.zepp_os_watchface_the_ultima),
;
private final int code;

View File

@ -770,6 +770,16 @@
<item>@string/zepp_os_watchface_emerald_moonlight</item>
<item>@string/zepp_os_watchface_rotating_earth</item>
<item>@string/zepp_os_watchface_superposition</item>
<!-- Balance -->
<item>@string/zepp_os_watchface_vast_sky</item>
<item>@string/zepp_os_watchface_lightning_flash</item>
<item>@string/zepp_os_watchface_free_combination</item>
<item>@string/zepp_os_watchface_pure_white</item>
<item>@string/zepp_os_watchface_guider</item>
<item>@string/zepp_os_watchface_city_of_speed</item>
<item>@string/zepp_os_watchface_starry_sky</item>
<item>@string/zepp_os_watchface_the_ultima</item>
</string-array>
<string-array name="pref_zepp_os_watchfaces_values">
@ -784,6 +794,14 @@
<item>emerald_moonlight</item>
<item>rotating_earth</item>
<item>superposition</item>
<item>vast_sky</item>
<item>lightning_flash</item>
<item>free_combination</item>
<item>pure_white</item>
<item>guider</item>
<item>city_of_speed</item>
<item>starry_sky</item>
<item>the_ultima</item>
</string-array>
<string-array name="pref_zepp_os_apps">
@ -830,6 +848,12 @@
<item>@string/menuitem_cards</item>
<item>@string/menuitem_mi_ai</item>
<item>@string/menuitem_zepp_coach</item>
<item>@string/menuitem_zepp_pay</item>
<item>@string/menuitem_readiness</item>
<item>@string/menuitem_body_composition</item>
<item>@string/menuitem_thermometer</item>
<item>@string/menuitem_workout_shortcuts</item>
<item>@string/menuitem_apps_shortcuts</item>
<!-- dummy item -->
<item>@string/menuitem_more</item>
</string-array>
@ -878,6 +902,12 @@
<item>cards</item>
<item>mi_ai</item>
<item>zepp_coach</item>
<item>zepp_pay</item>
<item>readiness</item>
<item>body_composition</item>
<item>thermometer</item>
<item>workout_shortcuts</item>
<item>apps_shortcuts</item>
<!-- dummy item -->
<item>more</item>
</string-array>
@ -909,6 +939,12 @@
<item>@string/menuitem_stopwatch</item>
<item>@string/menuitem_recommendation</item>
<item>@string/menuitem_zepp_coach</item>
<item>@string/menuitem_zepp_pay</item>
<item>@string/menuitem_readiness</item>
<item>@string/menuitem_body_composition</item>
<item>@string/menuitem_thermometer</item>
<item>@string/menuitem_workout_shortcuts</item>
<item>@string/menuitem_apps_shortcuts</item>
<item>@string/menuitem_alexa</item>
</string-array>
@ -939,6 +975,12 @@
<item>stopwatch</item>
<item>recommendation</item>
<item>zepp_coach</item>
<item>zepp_pay</item>
<item>readiness</item>
<item>body_composition</item>
<item>thermometer</item>
<item>workout_shortcuts</item>
<item>apps_shortcuts</item>
<item>alexa</item>
</string-array>
@ -958,6 +1000,7 @@
<item>@string/menuitem_lockscreen</item>
<item>@string/menuitem_findphone</item>
<item>@string/menuitem_eject_water</item>
<item>@string/menuitem_headphone</item>
</string-array>
<string-array name="pref_huami2021_control_center_values">
@ -976,6 +1019,7 @@
<item>lockscreen</item>
<item>findphone</item>
<item>eject_water</item>
<item>headphone</item>
</string-array>
<string-array name="pref_miband5_workout_activity_types">

View File

@ -1406,6 +1406,12 @@
<string name="menuitem_vo2_max">VO₂ Max</string>
<string name="menuitem_recommendation">Recommendation</string>
<string name="menuitem_zepp_coach">Zepp Coach</string>
<string name="menuitem_zepp_pay">Zepp Pay</string>
<string name="menuitem_thermometer">Thermometer</string>
<string name="menuitem_readiness">Readiness</string>
<string name="menuitem_body_composition">Body composition</string>
<string name="menuitem_workout_shortcuts">Workout shortcuts</string>
<string name="menuitem_apps_shortcuts">Apps shortcuts</string>
<string name="menuitem_breathing">Breathing</string>
<string name="menuitem_cycles">Cycle Tracking</string>
<string name="menuitem_alarm">Alarm</string>
@ -1464,6 +1470,7 @@
<string name='menuitem_wifi'>Wi-Fi</string>
<string name='menuitem_lockscreen'>Lockscreen</string>
<string name='menuitem_eject_water'>Eject Water</string>
<string name='menuitem_headphone'>Headphone</string>
<string name="menuitem_unknown_app">Unknown (%s)</string>
<string name="menuitem_unsupported">[UNSUPPORTED] %s</string>
<string name="zepp_os_watchface_red_fantasy">Red Fantasy</string>
@ -1476,6 +1483,14 @@
<string name="zepp_os_watchface_emerald_moonlight">Emerald Moonlight</string>
<string name="zepp_os_watchface_rotating_earth">Rotating Earth</string>
<string name="zepp_os_watchface_superposition">superposition</string>
<string name="zepp_os_watchface_vast_sky">Vast Sky</string>
<string name="zepp_os_watchface_lightning_flash">Lightning flash</string>
<string name="zepp_os_watchface_free_combination">Free combination</string>
<string name="zepp_os_watchface_pure_white">Pure white</string>
<string name="zepp_os_watchface_guider">Guider</string>
<string name="zepp_os_watchface_city_of_speed">City of speed</string>
<string name="zepp_os_watchface_starry_sky">Starry sky</string>
<string name="zepp_os_watchface_the_ultima">The ultima</string>
<string name="yesterdays_activity">Yesterday\'s Activity</string>
<string name="watch9_time_minutes">Minutes:</string>
<string name="watch9_time_hours">Hours:</string>