Easier to read charts for Health App #6982
Replies: 1 comment
-
Posted at 2021-11-10 by HughB
Posted at 2021-11-11 by @gfwilliams That looks great! I'd definitely be up for adding this to the health app. I guess one question is whether the extra granularity of data displayed by the health app is useful? But the colours are great - that makes it much nicer. I think for now having the rendering inside the app is easiest (rather than extending the graph code). It's possible we'll be doing some more fancy stuff with it later anyway. To make it modal I'd say do: Posted at 2021-11-11 by HughB Ok - I will post my latest code for the health.app.js below. A few questions arise
On Thursday 11th Nov - looks like this:
Day 11 has yet to conclude so we have 10 days of data. The hour data hour has significance for the 0 index - in that it is the first hour of the day from 00:00 - when displaying the chart we will want to display from hour 0-23. I think it would be more consistant to retrieve the data with the zero element always being significant - this way the chart labelling can be adjusted by an offset of 1 or 0 - rather than having to skip the first entry for day data or split into a new array starting at element 1. Hope that makes sense.
Basically as in the two charts below. I guess what I am asking is - what is the unit of movement in an hour ? I think movement should be defined in terms of breaking the 8 steps in 8 threshold. This means if you sit at a desk for an hour you score 0 BUT if you get up for 5 minutes walk to the bathroom for a toilet break you score 5. So if you stand every 20 minutes for 2 minutes you score 6 in that hour. A full hours walking scores 60. Being active for every minute of 8 hours would score 480. A full days mounting climbing for 8 hours could be made to register as 100 movement points for the day. So an average commute day is going to look around 60 minutes of activity or a 12.5 point day. This would give a good explanable baseline for activity. Attachments: Posted at 2021-11-11 by HughB
Not quite sure what you mean here. I think you mean - is the by hour display useful. Then yes I think its great to look at the day by hour and confirm or challenge the mental picture that has been built up in your mind as to how active you were across a 24 hour perioid. Posted at 2021-11-11 by HughB @gfwilliams - here's my code - have a play with it and let me know what you think.
Posted at 2021-11-11 by HughB BTW I think the Bangle 2 Heart rate monitor is spot on. Attachments: Posted at 2021-11-12 by @gfwilliams Great, obviously I'm a bit busy now, but yes, the callbacks shouldn't be transmitting data that is always 0 - possibly that means that the last day of the month is not included?. 'movement' is slightly nebulous in it being directly related to the amount of acceleration reported from the accelerometer. It's not meant to be in any particular units, but is there purely for use in sleep tracking (when I believe dips/peaks will indicate certain sleep periods) . However if it's always 255 for a day something is wrong. The idea is the number for the day should be the average of all entries (which are all clipped to 255 too). Looking at the code just now I discovered a deleted line! I'll just fix and commit this Posted at 2021-11-12 by HughB Is the fix in the firmware? Posted at 2021-11-15 by @gfwilliams No, it's in the Posted at 2021-11-15 by HughB Have done pull request. Would be posssible to track body temperature rasonably accurately using a Bangle JS 2 ? Posted at 2021-11-16 by @gfwilliams Ok, thanks - shame about not being able to use setUI though. You're just wanting to do tap and swipe left/right? If so why not You could try tracking body temp, but my gut feeling is it's not good enough because there's no direct skin contact. I guess if the HRM sensor had a temperature sensor (I'm not sure it does) that might be an option though Posted at 2021-11-16 by myownself I had wondered the same before seeing @gfwilliams reply in another thread that it is ambient temperature, not skin temperature. My instinct is that it won't be reliable for body temperature or room/external temperature because of proximity to busy without contact (not that I can't imagine uses for it). I searched for watches with the same heart rate sensor and not enough of them advertised body temperature for me to believe it was a function of that sensor and not another they might have. Posted at 2021-11-16 by myownself That said, there are loads of interesting things you can get from a PPG sensor that don't seem to be standard in devices. It depends on how much control we have over the component, but maybe we could use the photosensor to estimate temperature from IR. Ambient temp might be useful as an adjustment after all. Posted at 2024-08-14 by user158752 what about Module health not found in espruino | |_ ___ ___ _ ||___ ___ Module health not found Posted at 2024-08-15 by @gfwilliams Maybe you have uninstalled the health app? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-11-10 by HughB
@gfwilliams
I have been experimenting with a bar chart format that is a bit more readable for the Health App.
I'm finding the existing charts too small to read.
In the Day 9 example 1 - you can see the chart loads and highlights the previous day in the centre of the screen. This is the last day in the history.
In the Day 7 example, I have swiped right twice to scroll back one day at a time and see the exact step count day by day. Of course you can swipe left again and reverse. In this way you could review a whole month. The day under view is always displayed in the centre of the screen as blue. The data is displayed below the chart. I actually nicked the idea from an android app that works this way. I also like the fact that the charts have attractive colors. It makes it feel a lot more polished as a user experience.
I have done some example code - but not sure how to make it model (wait for a BTN1 press in Bangle 2). Somehow this could be added to the graph module or just embedded in the health app.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions