TAPPER Client Installation
Basic installation of the TAPPER client application.
Prepare
- Flash RPi
- Update RPi and install client
# For easy copy
sudo apt update && sudo apt upgrade
sudo reboot
# reconnect
sudo apt install git pipx python3-dev cmake libdbus-1-dev libglib2.0-dev
pipx ensurepath
sudo raspi-config # enable serial port and SPI
pipx install 'git+ssh://git@github.com/hardwario/tapper.git@main#egg=tapper' # stable - Continue at Testing
Flash the Raspberry Pi
-
Open the TAPPER device.
tipThere are two plastic latches from the bottom of the device. Use a flat head screwdriver.
-
Insert the MicroSD card to your computer (the size of 16 GB is preferred).
infoThe MicroSD card is already shipped with the TAPPER device.
-
Download and install the Raspberry Pi Imager tool.
-
Click CHOOSE DEVICE and select Raspberry Pi Zero 2 W.
-
Click CHOOSE OS, select Raspberry Pi OS (other), and then select **Raspberry Pi OS Lite (64-bit).
-
Click CHOOSE STORAGE and select the target MicroSD card.
-
Click NEXT - the tool will ask about the settings customization - click ....
It is recommended to set up SSH with public-key authentication only. For simplicity, you can use the password-based login.
The Raspberry Pi Imager lets you do this within OS Customization.
Update Raspberry Pi
-
Connect to your Raspberry Pi through SSH:
ssh tapper@[IP ADDRESS OF TAPPER]
-
Update the system packages:
sudo apt update && sudo apt upgrade -y
-
Reboot the system:
sudo reboot
Install and set up required packages
-
We will need the following packages:
sudo apt install cmake git libdbus-1-dev libglib2.0-dev pipx python3-dev
-
The package pipx needs to be added to the PATH environmental variable:
pipx ensurepath
infoThis adds an entry into your
~/.bashrc
-
Load the new shell environment:
source ~/.bashrc
Enable SPI and Serial Port
-
Enable the serial port and SPI interfaces:
sudo raspi-config
-
Both interfaces are under the Interface option.
Install TAPPER Client
Install the TAPPER client Python package:
pipx install 'git+https://github.com/hardwario/tapper.git@main#egg=tapper'
If you want to test a bleeding-edge installation instead, you can do:
pipx install 'git+https://github.com/hardwario/tapper.git@dev#egg=tapper'
The command pipx
experimentally supports suffixes. If you want a bleeding-edge version with the suffix support, append --suffix <suffix>
to the command.
Example: --suffix dev
would result in the command tapperdev
Testing
Run TAPPER in debug mode:
tapper run -d -h <your_mqtt_broker_host>
Parameters:
-d
enables DEBUG logging into the CLI-h
specifies the MQTT host