-
Notifications
You must be signed in to change notification settings - Fork 27
New raspberry pi setup
Jeremy Cunningham edited this page Jun 3, 2018
·
12 revisions
- Download and install raspbian lite as per https://www.raspberrypi.org/downloads/. To enable ssh, add an empty file called 'ssh' at the root of the SD card.
sudo apt-get update; sudo apt-get upgrade; rapsi-config
as per usual. - Install git:
sudo apt-get install git
- Install nodejs:
sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install nodejs
- Install xdrip-js:
git clone https://github.com/xdrip-js/xdrip-js.git
-
cd xdrip-js
andsudo npm install
npm install git+https://github.com/thebookins/noble.git
-
sudo DEBUG=smp,transmitter,bluetooth-manager node example 40MSXE
- Upgrade bluez to v5.45 (details here, also see this):
cd ~
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.45.tar.xz
tar xvf bluez-5.45.tar.xz
cd bluez-5.45
sudo apt-get update
sudo apt-get install -y libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev
./configure
make
sudo make install
- add the pi user to the dbus security for bluetooth in
/etc/dbus-1/system.d/bluetooth.conf
by duplicating the root section and changing the user to pi. (See this post for details.)