1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-03 07:22:54 +01:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
NekoBox c2f5fd3215 Fix Amazfit Neo daily steps goal and notification, fixes #2773 (#2780)
The notification, once enabled, can only be triggerd once per day, mind that when testing.

Packet structure:

```
00:c2:00:3a:01:00:00:00:01:88:13:00:00
00:c2:00: - chunked transfer type 2
3a: - command set goals/notificatrions
01: - 01 - set steps goal, 02 - set calories goal, 03 - both
00:00:00: - delimiter
01: - enable steps goal notification
88:13: - set steps goal (5000)
00:00 - delimiter
```

This is sent when goal notification switch is enabled in Zepp app:
```
00:c2:00:3a:03:00:00:00:01:40:1f:00:00:01:2c:01:00:00
00:c2:00: - chunked transfer type 2
3a: - command set goals/notificatrions
03: - 01 - set steps goal, 02 - set calories goal, 03 - both
00:00:00: - delimiter
01: - enable steps goal notification
40:1f: - steps goal (8000)
00:00: - delimiter
01: - enable calories goal notification (seems to be not used in Neo)
2c:01: - set calories goal (300)
00:00 - delimiter
```

And when disabled:
`00:c2:00:3a:03:00:00:00:00:40:1f:00:00:00:2c:01:00:00`

Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2780
Co-authored-by: NekoBox <nekobox@noreply.codeberg.org>
Co-committed-by: NekoBox <nekobox@noreply.codeberg.org>
2022-07-30 21:37:21 +02:00
..
activities Add Steps streaks screen 2022-07-30 10:07:26 +02:00
adapter Fossil Hybrid HR: Show in appmanager which watchfaces are outdated 2022-07-14 13:02:04 +02:00
capabilities/password Mi Band 4: Add password support 2022-07-05 19:29:16 +01:00
contentprovider update license headers 2021-01-10 23:38:13 +01:00
database ControlCenter: added folders to ControlCenter 2022-06-28 14:01:51 +02:00
deviceevents Roidmi: Slight code cleanup 2021-12-26 18:27:01 +01:00
devices Add Steps streaks screen 2022-07-30 10:07:26 +02:00
entities add missing AbstractFitProActivitySample from entities (excluded by gitignore) 2021-09-24 10:00:36 +02:00
export add UUID to to GPX with opentracks namespace 2021-01-17 00:07:55 +01:00
externalevents Adjust service for CalendarReceiver for multidevice (#2765) 2022-07-20 17:29:40 +02:00
impl Fossil Hybrid HR: Show in appmanager which watchfaces are outdated 2022-07-14 13:02:04 +02:00
model Add Steps streaks screen 2022-07-30 10:07:26 +02:00
service Fix Amazfit Neo daily steps goal and notification, fixes #2773 (#2780) 2022-07-30 21:37:21 +02:00
util Fossil Hybrid HR: Add optional circle backgrounds to widgets 2022-07-25 14:34:41 +02:00
GBApplication.java Make calendar blacklist configurable per device 2022-07-05 19:58:21 +02:00
GBEnvironment.java Update license headers 2020-01-09 10:44:32 +01:00
GBException.java update license headers 2021-01-10 23:38:13 +01:00
LockHandler.java Update license headers 2020-01-09 10:44:32 +01:00
Logging.java update license headers 2021-01-10 23:38:13 +01:00
LoggingExceptionHandler.java update license headers 2021-01-10 23:38:13 +01:00
SleepAlarmWidget.java Widget and SleepAlarmWidget: modify for multidevice support 2022-05-28 14:57:01 +02:00
Widget.java Widget: sleep rendering update 2022-06-12 08:13:12 +02:00