aelveborn / Wii-Scale

Turns your Wii Balance Board into a scale and presents your weight on a responsive website. Runs Linux and works on your Raspberry Pi.
http://aelveborn.github.io/Wii-Scale/
GNU General Public License v2.0
118 stars 27 forks source link

wii-scale:calibrate not working with negative values #41

Open oangelo opened 5 years ago

oangelo commented 5 years ago

$ npm config set wii-scale:calibrate -5 $npm start

> wii-scale@0.0.4 start /home/oangelo/sandbox/Wii-Scale > node scripts/start.js

Listening on localhost:8080 terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector >' what(): the required argument for option '--calibrate' is missing

ribbons commented 5 years ago

Will try and take a look at this towards the end of the week (am busy with an upgrade for the first part of the week)

ribbons commented 5 years ago

Just had a look at this and think I remember coming across it before. The issue is with setting the config value rather than with Wii-Scale itself per se.

npm config set wii-scale:calibrate -5 actually has the end result of setting wii-scale:calibrate to a blank value in ~/.npmrc which is what is causing this error.

To actually set wii-scale:calibrate to -5, you can use the following command: npm config set wii-scale:calibrate -- -5