stefaandesmet2003 / hometrainer

ride indoor videos on interactive trainer
16 stars 3 forks source link

Might you consider support for normal FTMS please? #3

Open jonathancolledge opened 2 years ago

jonathancolledge commented 2 years ago

Hi, this looks awesome. Would you consider enabling support for normal FTMS please (I use both a Wahoo Kickr and Qdomyos-zwift, both of which broadcast FTMS and allow trainer control)? I didn't realise Elite Direto was different.

Currently, when I connect either and press start on the video, the video just plays at 200 W on its own.

Also, I note you have experimental support for Youtube videos - does that mean you can control the speed of the Youtube video (meaning that videos can be hosted on YouTube)?

stefaandesmet2003 commented 2 years ago

Hi @jonathancolledge , sorry for the late response. I don't seem to get notifications for opened issues. I don't think Direto is abnormal FTMS, so it should be possible to make this work for a Kickr. Did you try connect from the menu? It should find your trainer, and the button turns green when the initial setup is done. Check the console.log, it spits out lots of stuff, that will help to get you going. In direto.js, you will need to remove the code that initializes the pedal analysis service, because that's direto specific. Feel free to come back here if you are stuck. I'm interested to know how this will go. Cheers, Stefaan

stefaandesmet2003 commented 2 years ago

The 200W is a simulation mode, that I used for testing. It is on as long as no trainer is connected.

stefaandesmet2003 commented 2 years ago

there's a video in the ride list that's hosted on YouTube. It worked at the time, adapting playback speed to the riding speed. There are a few YouTubers who create riding videos. For these to work, you need a gpx file of the corresponding ride, and a sync file, that says : at x seconds in the video, you are at y meters in the ride. The more of these lines, the better the sync. For instance you want a sync point at the end of a climb, so you see the end of the climb onscreen, and feel the resistance reducing on the trainer.

jonathancolledge commented 2 years ago

Ah, I connect the Kickr, but it does the 200 W thing. I'll disable the pedal analysis, and I'll look at the logs. I might not be clever enough to figure them out, but I'll try! Thanks,

stefaandesmet2003 commented 2 years ago

When I started this project, I had never written a line of JavaScript. You'll figure it out too, I'm not that clever either. You might want to download the FTMS docs, and read through.