Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get calories burnt display? #12

Open
alejandrade opened this issue Jul 25, 2020 · 10 comments
Open

Is it possible to get calories burnt display? #12

alejandrade opened this issue Jul 25, 2020 · 10 comments

Comments

@alejandrade
Copy link

alejandrade commented Jul 25, 2020

Using an eform or maybe a property in settings you could ask gender and weight to get a fairly accurate calories burnt. Would need a timer and a reset button for timer. But that would be really cool.

I would add it my self but I haven't coded in cs in years. Do you have some kind of documentation to get this projection running locally to contribute?

@jlennox
Copy link
Owner

jlennox commented Jul 26, 2020

@alejandrade It should be as simple as installing Visual Studio then double clicking the .csproj file. You can then run it with the debugger attached or compile from inside the IDE.

@jlennox
Copy link
Owner

jlennox commented Jul 27, 2020

How do you imagine this displaying on the UI? A second row that says "Calories: {N}" ?

@alejandrade
Copy link
Author

You would need to display a timer too for the calculation to make sense.

So it be like

64 bpm
243 cal
00:16:32.

Be honest with you, I was going to fork your code and make it a web service so I can put a web UI around it and change it up for my use case.

@alejandrade
Copy link
Author

alejandrade commented Jul 27, 2020

With a Json payload containing the heart rate only

@jlennox
Copy link
Owner

jlennox commented Jul 27, 2020

Be honest with you, I was going to fork your code and make it a web service

You're of course welcome to :) And I can assist you as needed.

@Hive8
Copy link

Hive8 commented Mar 8, 2021

Did this feature ever get implemented a JSON service, that be great on a local host, make a webpage and style it as you need?

@jlennox
Copy link
Owner

jlennox commented Mar 8, 2021

@Hive8 There's no JSON service but that's not an unreasonable thing to implement. How do you imagine it would work? Just a socket that does {json's byte length}{utf8 encoded json} per tick?

Calories burnt was never implemented. I'm not sure what the formula is and haven't researched it.

@Hive8
Copy link

Hive8 commented Mar 9, 2021

Not so interested in the calories burned, more so in the heartbeats. Idea is that for streamers they can run a local webserver, node.js or whatever and be able to load the heartbeats in a local webpage. to make widgets or style them would be really easy, as long the data can be consumed. XML file would work too?

Maybe running a node.js server on a certain port that serves a html file that can be styled or modified.

@jlennox
Copy link
Owner

jlennox commented Mar 9, 2021

@Hive8 There is currently a CSV file that others have externally consumed in real time -- if that helps.

@Hive8
Copy link

Hive8 commented Mar 10, 2021

I actually did just that, yesterday i changed the source code to FileMode.Truncate in the WriteLine function instead Append and it got me the result i wanted.

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

No branches or pull requests

3 participants