Skip to content

Manual Installation

Alex Markessinis edited this page Apr 18, 2019 · 2 revisions

Before you begin:

  • Install the Pi into it's case
  • Install the probe you've chosen, this is the GPIO Pinout configuration that I used: GPIO Pinout

Manual Installation

This guide is brief and assumes you know what you're doing.

This guide assumes that you have the latest version of Raspbian Lite installed on your SD card and your device has an active network connection with ssh access. It also assumes that all commands are run as the root user.

sudo su;
echo 'deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi' >> /etc/apt/sources.list
apt-get update && apt-get upgrade --yes && apt-get install build-essential python-dev python-openssl python-pip -y;
cd /opt && git clone https://github.com/MelonSmasher/piProbe.git && cd piProbe/;
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
# The first run of pip will fail, run it twice.
pip3 install -r requirements.txt;
cp config.example.json config.json && mkdir /etc/piProbe && ln -s /opt/piProbe/config.json /etc/piProbe/config.json;
# edit the config
vi /etc/piProbe/config.json;

After editing the configuration:

cp /opt/piProbe/piProbe.service /etc/systemd/system/piProbe.service && systemctl daemon-reload && systemctl enable piProbe.service;
service piProbe start;

After starting the service ensure there are no errors.

journalctl -u piProbe.service -f

Data should be flowing to InfluxDB.

Clone this wiki locally