Open giovanne123 opened 6 years ago
Hi, sorry for my late reply. I am not really using this solution any more, currently I am only tracking my "outside"-activities. But it is great the code is useful for you!
The ergometer programs should work, I probably did it the same way you tried in your update. However, that was more than two years ago, so I am not sure.
Regarding your last question: It should definitly be possible. One can set the ergometer power with the serial interface, so it should not be too hard. In fact that is one of the reasons why I still might use this code in the future since the kettler programs are somewhat limited. Doing a SET_POWER command with the external defined values during recording should do the trick, see https://github.com/knallio/kettler-tcx/blob/7a80f1e99da890818a82b66dadc290cf451b48d3/kettler.py#L6-L29
I don't know anymore if I have tested it. In principle it should work, since e.g. ercontrol does it as well.
I don't know if and when I will implement such a feature, though.
Are you still using your solution? I'm using your python with little modifications (logging to mysql) for simple recording my adhoc sessions. Start record.py, go on ergometer, start cycling, use the ergometer button to increase/decrease power, stop cycling, recory.py stops. Working very well :-)
Questions: Is it possible to use your record.py to record/logging also when I use the kettler programs on the ergometer itself? And how to do it, because the record.py first resets the device? Do I have to start the program after record.py is started? [is it related to: https://github.com/knallio/kettler-tcx/issues/1]?? Update: is working, start record.py and then select program and start ... :)
And do you thing it would be possible/complicated to also define an own program outside of the ergometer e.g. an xml or json, then record.py uses this program to control the kettler device and also logs the session like before?