Added force npm install argument and fixed dexcom go complied binaries not being downloaded (#1027)
Added force npm install argument and fixed dexcom go complied binaries not being downloaded (#1027)

* Add npm install force option

Option to force the `npm run global-install` if required

* npm

* npm_install - update output

* Fix GoLang not being downloaded

buildgofromsource has to be true to download, but if it is using go as a default it should always execute this evaluation.

* Revert default install of GoLang and added download of pre-compile and other various tweaks

* re-added if condition for download of GoLang.
* added section for download of pre-compiled binaries for dexcom re-using code from the pre-compiled pump comms based on search and discovery
* changed rsync over to cp
* change redirect of only stderr to all for when it is looking for edison, don't need to show that during runtime, also some of the other obvious redirect all, change to shorthand `&>`

* go-dexcom replace other instances of bluetooth binaries

* On a vanilla install it appears to be using a copy of bluetoothd/ctl which isn't what `which` reports as being the one that will be used. This replaces all occurances of bluetoothd and bluetoothctl with the compiled version out of the $HOME/src directory
* Add the reboot required as I've seen the go dexcom process report "Resource Not Ready" after replacing the files... after reboot it's back in a good state

* adjustment to bluetooth replacement

*use  awk to evaluate float since bash can only do int.
* changed find command to be generic in $HOME/src so you don't have to adjust the script when we use a different version of bluez
* Account for the possiblity of multiple bluez-* version being in $HOME/src
* Time saving by excluding version check on binaries in the bluez-* directories

* small additional changes

* Another stdout of edison from the getent command
* made the killall more meaningful instead of always blasting bluetoothd even if bluetoothctl was in play

* Move mmtune again

Shared directory it is copying it back to the original place it was moved from

* suppress stderr

Another error message when running through the setup

openaps/oref0,openaps/oref0,PieterGit/oref0,openaps/oref0,PieterGit/oref0,PieterGit/oref0,PieterGit/oref0,openaps/oref0