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 EDIT SETTINGS.
-
Check Set hostname.
-
Enter a hostname for you TAPPER into the hostname field.
-
Check Set username and password.
-
Enter a username and a password into the username and password fields respectively.
You can use tapper
for username and hardwario
for password.
This is only recommended with public-key SSH authentication, otherwise use a strong passphrase.
Set up public-key SSH authentication (recommended): SSH with public-key authentication
You can use the Bitwarden passphrase generator.
- Select Passphrase in type.
- You can click generate a few times for a more memorable Passphrase, we recommendd oing 6 at most.
- Write the passphrases down and then choose the most memorable one.
-
Check Configure Wireless LAN.
-
Enter your wireless network's SSID and password into the SSID and Password fields respectively.
-
Set the Wireless LAN Country drop-down to the country where the TAPPER device will be used.
-
Check Set locale settings.
-
Select your time zone in the Time zone drop-down menu.
-
Select your preferred keyboard layout in the Keyboard layout drop-down menu.
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