Improved pedometer widget #2620
Replies: 26 comments
-
Posted at 2020-04-11 by Purple-Tentacle I just did a test walk. Two things have to be done
Lets see why the steps were not counted and what is happening in the widget. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-12 by Purple-Tentacle I redesigned the whole logic and will do some further tests. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-12 by Purple-Tentacle Just provided a small update. Snippet: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-13 by Purple-Tentacle Tested it yesterday and the steps on the walk were counted very good. It filters a lot of arm movement, there has to be a lot to get in active mode. Drawback is, that very small walks in the house are not counted. Not much I can do about it, without counting arm movement again. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-13 by Purple-Tentacle I created a pull request to the Bangle.js app loader: espruino/BangleApps#290 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-13 by Old_account Will for sure give it a try and let you know how it worked. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Lixas Suggestion: show kilometers instead on steps with that bigger (green/white) font. Make step size configurable. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Purple-Tentacle Thanks for the suggestion. I would like to keep the steps displayed for now. Maybe make it configurable in the future? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Old_account Tested it for a quick walk (3.5k steps) right now and it seems to work pretty well. How about an option to reset the steps? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Purple-Tentacle Yes, this would be handy, I will implement it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Old_account Awesome! By the way, some explanation of the available settings in the readme might be a good idea as well. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Purple-Tentacle I already updated the readme. Will be in the next PR. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Purple-Tentacle I already implemented distance calculation on my dev repo. Only in km for now. But: Edit: there it is espruino/BangleApps#296 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by @gfwilliams
If you feed that into |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Purple-Tentacle But that would only help for the unit (km/mi etc.) and not the calculation, right? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-15 by @gfwilliams
Nope, it does the calculations for you magically. Just give it the distance in meters and you're sorted :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-16 by Purple-Tentacle Sounds nice and works. When distance is in the second line (small font) I want to display 1,252km When distance is in the first line (large font) I want to display 1,25 AFAIK this is not possible with locale? Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-16 by @gfwilliams
No, but if you could use a regex/similar to strip it down? Eg |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-29 by myxor What do you think about a notification when the daily goal is reached? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-29 by Purple-Tentacle
That is a good idea, I will look into it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-05-19 by user111620 Is there a quick way to delete all recorded data? Even better: delete all recorded data older than a given age. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-05-20 by user107850 about step counting, if you want to take a lower level approach and embed it into the firmware, this is open source and validated: https://github.com/Oxford-step-counter/C-Step-Counter There are some constants that need to be optimised because they depend on the actual hardware you use and the sampling frequency (we used 50Hz, but probably 10Hz would do anyway). See the instructions in the README. If anyone here wants to try including this in the BangleJS firmware, I'll be happy to help. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-21 by user129103 I feel dumb asking this but I'm totally new to Banglejs and coding in general. I'm tasked with creating a watch face, I figured that out on my own, and then also adding the pedometer widget. I can't seem to figure out how to correctly place the code, would someone be willing to show me the coding for this widget in the IDE? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-23 by d3nd3-o0 @user129103 Don't understand your question, so can't help you. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-23 by HughB How does this work relate to the new steps algorithm in firmware 2v09.9 onwards ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-24 by @gfwilliams Hi, it may not be the right place to post the question, but either way the answer is pretty simple. Check out https://www.espruino.com/Bangle.js+Clock#widgets All you need to do is add:
to the end of your code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-04-11 by Purple-Tentacle
Still work in progress, but I want to get it out in the wild for you to test and to receive feedback.
I am still testing with the settings, but I am 90% satisfied.
The goal was to filter out arm movement, but to still count real steps.
Please see the readme for details.
Advantages:
Disadvantages:
Beta Was this translation helpful? Give feedback.
All reactions