-
Notifications
You must be signed in to change notification settings - Fork 4
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
Installing instructions #3
Comments
@Lloydster2000 In the mean time, when you say that you can't get it working -- were you able to trouble-shoot at all? For instance, were you able to try to start the software and get any output at the linux console? Or was the Bluetooth service running on the Pi but just not seen by Zwift? It's hard for me to tell what might not be working without more info... |
Thanks for the quick reply, Well, wasn’t sure how closely I was supposed to follow the keiser2z wifi instructions seeing as there’s no second bl dongle required for starters (just skipped ‘sudo hciconfig hci1 up’ otherwise followed everything else on keiser2zwift it just came with an error when I ran - sudo npm start, Copied m3iPixxx.service to /etc/systemd/system and rebooted and it came up with another error - no output as service wasn’t running when I checked with ‘ systemctl status m3iPixxx’ - (think I missed a step ‘running without root or sudo’ actually looking back through the instructions)- will try again this evening and add what error if any, is mentioned on the screen as I just gave up on it. (It was getting toowarm by lunch time here in the Uk, so I gave up🥵) |
Heres what Ive tried -
Install the development requirements Install NVVM to manager Node.js versions (Make sure to close and reopen your shell after this step) Download this repo or clone it locally. I put it in a directory off the home folder for pi called /home/pi/code/M3iPiZeroW Make sure 1 bluetooth adapters are connected and issues the following two commands Verify that you see one devices when you run: to find out where node is actually installed and put that path in run.sh. The command for determing this is "whereis node", then edit run.sh if needed- eg add this - /home/pi/.nvm/versions/node/v10.22.0/bin/node index.js Start this project manually as root. You should see log messages that indicate its looking for an M3i. Wake up your bike and do a few revolutions of the pedals. You should see log messages indicating that its connected to that bike Running without root/sudoRun the following command: sudo setcap cap_net_raw+eip $(eval readlink -f Note: The above command requires setcap to be installed, it can be installed using the following:
yum: su -c 'yum install libcap2-bin' Setting up to always runYou can setup the program to run at Pi boot time by doing the following steps: Edit the M3iPiZeroW.service file in the root of this project to change the path if you didnt take my suggestion. |
@Lloydster2000 (also note that there must be "back ticks" surrounding which node in the sudo setcap command which was pointed out in a later response.) If you can get the "npm start" command (without the sudo prefix) to run from the linux command line, then you should be ok to move on to the next steps to get the service to start automatically. But even without setting up things to start automatically, once you have the app running with npm start you should be able to pedal the Keiser and see power/cadence in Zwift. Hope this helps! |
@Lloydster2000
You might give that a try to see if it fixes your issue, Otherwise the best advice I have is to start with a blank miniSD card and follow the installation instructions. Hope this helps! |
Fab- thanks , will have a clean go tomorrow morning. |
@djwasser Working! thanks. Apart from removing the ~4x // from hr in ble/keiser bike- is there anything else I need to do for it to work with my polar h10?? |
@Lloydster2000 Actually there are 5 "//" to remove to enable HR service. I went ahead and removed them so if you update your copy of the repo you should get the updated file. For reference, here are the five lines (with line #s) to uncomment/comment to enable/disable HR service:
Since this all worked for you, I will go ahead and close this issue! |
Removed comment "//" to re-enable HR service. See closed issue #3 for details.
All working (incl HR)👍🏻👍🏻Will use over next few weeks and see how it goes with/without hr sensor - just to see if I get the ghost hr figures issue you mentioned previously. Only app that hasn’t worked so far is ‘RGT cycling’ ‘ftms’ shows up but won’t connect keiser converter shows ‘power profile’ and works. |
@Lloydster2000 |
Rouvy connected as ftms and worked in free mode - but it did show an error at the top stating no gear/resistance. |
@Lloydster2000 I will play around with it when I have some time to see if I can figure out what is going on... but it may not be anytime soon! But glad you are happy with what is working so far :-) |
Ok, so I’ve followed the keiser2zwift install instructions altering anything that needed changing from k2z to your m3iPiZeroW - so far can’t get it working - any chance of some written instructions please?
is there something I didn’t need to do ? Or additional missing steps??
thanks in advance
The text was updated successfully, but these errors were encountered: