Skip to content

Conversation

@michaelthatsit
Copy link

@michaelthatsit michaelthatsit commented Dec 6, 2025

this is pretty early. all it does is pull the health data from the watch, and push the averages to it.

I'm thinking it's probably best to add this and do any UI changes in a separate PR: In it I would probably add:

TODOs:

  • set averages on watch
  • sync multiple watches

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2025

CLA assistant check
All committers have signed the CLA.

@michaelthatsit michaelthatsit marked this pull request as draft December 6, 2025 01:06
@Odel
Copy link

Odel commented Dec 6, 2025

Would this handle a user switching between two watches throughout the day?

@michaelthatsit
Copy link
Author

Not yet no, and some of the discussion on discord suggests some of my initial assumptions were incorrect on how the data storage works on the watch.

This solution works but some steps I'm taking are unnecessary and could impact battery life.

@MrXANA91
Copy link

MrXANA91 commented Dec 11, 2025

It might be relevant to have the Unit Distance (Miles/Kilometers) setting in the health integration of the mobileapp, if it is not already the case in this PR

@michaelthatsit
Copy link
Author

May have gone a bit overboard here. But here's the daily, weekly, and monthly screens for health data. Monthly needs work and as of now you can only view the current day, week, or month.

Monthly is meant to show an area graph of each week of the current month but I'm still playing with KoalaPlot.

Screenshot_20251216-195228 Screenshot_20251216-195242 Screenshot_20251216-195253

@michaelthatsit
Copy link
Author

I recognize I might be going overboard with this one so lemme know if you folks want me to scale it back at all @sjp4

@michaelthatsit
Copy link
Author

It might be relevant to have the Unit Distance (Miles/Kilometers) setting in the health integration of the mobileapp, if it is not already the case in this PR

I added this in the health settings panel but it doesn't seem to immediately update on the watch.

@michaelthatsit
Copy link
Author

I've added metrics to the graphs.

Not the best example. Had to clear local db after merging in the upstream so there's no data for sleep and not a lot for steps.

Screenshot_20251217-182316.png

@sjp4
Copy link
Member

sjp4 commented Dec 22, 2025

@sjp4 I'm still working on the HealthKit and Health Connect integrations but hitting some snags. I'm flagging this as ready for review tho.

I think we can disable the health screen tab, merge this in, then I can tackle an updated device screen and move notification if you want to make more room for the index and health tabs.

Great! Can you split out the UI vs non-UI parts into separate PRs? This one is pretty huge to review in one go

@michaelthatsit
Copy link
Author

@sjp4 I've got some time today so I can take a crack at it.

Mind if I leave some UI in the debug settings?

@sjp4
Copy link
Member

sjp4 commented Dec 22, 2025

@sjp4 I've got some time today so I can take a crack at it.

Mind if I leave some UI in the debug settings?

That's fine - thanks!

@michaelthatsit
Copy link
Author

michaelthatsit commented Dec 23, 2025

@sjp4 Finished the separation of UI and did a little clean up. This PR now only contains watch syncing logic.

I've tested it and everything works as expected, it's now ready for your review.

Copy link
Member

@sjp4 sjp4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass - didn't go into detail on all the parsing code etc yet. A few specific comments, for generally it would be great if you could fix the formatting changes (unod changes for existing code, use 4-space indentation instead of 8 for new code); makes it kinda hard to read the changes 😬

@michaelthatsit
Copy link
Author

Ah I did a local review using Gemini which for some reason tweaks the formatting at random. I'll go through and lint it.

@michaelthatsit
Copy link
Author

@sjp4 went through and fixed the formatting and invocations. Also caught a bug along the way.

Ready for your re-review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants