WIP: Sleep as Android support #3188

Closed
MOrth wants to merge 5 commits from MOrth/Gadgetbridge:feature/sleepAsAndroidIntegrationForMiBand into master
First-time contributor

WIP

# WIP
MOrth added 2 commits 2023-07-04 13:06:04 +00:00
ci/woodpecker/pr/can_master_build Pipeline is pending Details
ci/woodpecker/pr/run_tests Pipeline is pending Details
08b7d57dcf
💩 minor cleanup
Member

FYI, I have pushed 708cb0c617 to master, which attempts to parse the raw sensor values for Zepp OS devices. I am not sure if older devices send the data in the same format, but hopefully this helps.

FYI, I have pushed 708cb0c617103c78031c422ab3729f3a86bbc4d6 to master, which attempts to parse the raw sensor values for Zepp OS devices. I am not sure if older devices send the data in the same format, but hopefully this helps.
MOrth added 1 commit 2023-07-19 12:40:13 +00:00
ci/woodpecker/pr/can_master_build Pipeline is pending Details
ci/woodpecker/pr/run_tests Pipeline is pending Details
cfef6c9c73
💩 experimenting with gathering HR data
MOrth reviewed 2023-07-19 12:47:30 +00:00
@ -0,0 +40,4 @@
case "com.urbandroid.sleep.watch.HINT":
// TODO: Make wrist band vibrate
break;
case DeviceService.ACTION_REALTIME_SAMPLES:
Author
First-time contributor

@joserebelo I wanted to leverage the DeviceService.ACTION_REALTIME_SAMPLES intent to hook into the existing HR gathering flows. However my receiver does not receive it here, eventhough I am 100% sure it is getting sent on the heart rate test.

Could you please check if I somehow registered this wrong or am misunderstanding something else?

@joserebelo I wanted to leverage the `DeviceService.ACTION_REALTIME_SAMPLES` intent to hook into the existing HR gathering flows. However my receiver does not receive it here, eventhough I am 100% sure it is getting sent on the heart rate test. Could you please check if I somehow registered this wrong or am misunderstanding something else?
Member

You are registering the receiver in the pairing activity, which is only used during pairing.

You need to handle this in the support class, see:

We'd need some similar logic to send it to the sleep as android receiver.

You are registering the receiver in the pairing activity, which is only used during pairing. You need to handle this in the support class, see: - https://codeberg.org/Freeyourgadget/Gadgetbridge/src/commit/bdb904faf94180695498240259dfe71fbf5ee87c/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java#L1564 to enable real-time HR measurement - https://codeberg.org/Freeyourgadget/Gadgetbridge/src/commit/bdb904faf94180695498240259dfe71fbf5ee87c/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java#L2557 where we enable the realtime samples support - https://codeberg.org/Freeyourgadget/Gadgetbridge/src/commit/bdb904faf94180695498240259dfe71fbf5ee87c/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/HuamiSupport.java#L2366 where we pass the heart rate to the real-time samples We'd need some similar logic to send it to the sleep as android receiver.
MOrth added 2 commits 2023-09-28 18:59:14 +00:00
ci/woodpecker/pull_request_closed/can_master_build Pipeline is pending approval Details
ci/woodpecker/pull_request_closed/run_tests Pipeline is pending approval Details
d568d424b5
🚧 commiting for backup purposes
Member

Superseded by !3687

Superseded by !3687
joserebelo closed this pull request 2024-04-20 10:59:14 +00:00
Some checks are pending
ci/woodpecker/pull_request_closed/can_master_build Pipeline is pending approval
ci/woodpecker/pull_request_closed/run_tests Pipeline is pending approval

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Freeyourgadget/Gadgetbridge#3188
No description provided.