Skip to content

New raspberry pi setup

Jeremy Cunningham edited this page Jun 3, 2018 · 12 revisions
  1. 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.
  2. Install git: sudo apt-get install git
  3. Install nodejs:
sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get install nodejs
  1. Install xdrip-js: git clone https://github.com/xdrip-js/xdrip-js.git
  2. cd xdrip-js and sudo npm install
  3. npm install git+https://github.com/thebookins/noble.git
  4. sudo DEBUG=smp,transmitter,bluetooth-manager node example 40MSXE
  5. 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
  1. 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.)
Clone this wiki locally