Install RPi-SmartGadget

Raspberry Pi OS

This section describe how to set up a Raspberry Pi.

Note

Instructions for using ssh to remotely access the terminal of the Raspberry Pi can be found here.

Tip

The following command is optional but recommended. It will update the installed packages on the Raspberry Pi.

sudo apt update && sudo apt upgrade

Make sure that you have git installed and then clone the repository

sudo apt install git
git clone https://github.com/MSLNZ/rpi-smartgadget.git

The following will install the RPi-SmartGadget package in a virtual environment in the /home/pi/shtenv directory on the Raspberry Pi (the shtenv directory will be automatically created)

bash rpi-smartgadget/rpi-setup.sh

Windows, Linux or macOS

To install RPi-SmartGadget on a computer that is not a Raspberry Pi run

pip install https://github.com/MSLNZ/rpi-smartgadget/archive/main.tar.gz

Alternatively, using the MSL Package Manager run

msl install rpi-smartgadget

Dependencies

Tested with a Raspberry Pi 3 Model B+ and a Raspberry Pi 4 Model B running either Raspbian Stretch or Buster.

Note

Although RPi-SmartGadget has been tested with a Raspberry Pi to establish a Bluetooth connection with a Smart Gadget, any Linux-based operating system that bluepy supports could be used.