Skip to content

sunfounder/pipower5

Repository files navigation

PiPower 5

Installation

Install the required packages:

sudo apt-get update
sudo apt-get install git python3-pip python3-dev python3-setuptools

Install PiPower 5

sudo python install.py

Note: This will also install a dashboard to monitor the PiPower 5 and your Raspberry Pi. If you don't need it, you can add a flag --disable-dashboard to the installation command.

sudo python install.py --disable-dashboard

Or you can uninstall the dashboard later by cli

sudo pipower5 --remove-dashboard

Debug

Clone the dependency you want to debug or edit

git clone https://github.com/sunfounder/pipower5.git
git clone https://github.com/sunfounder/pm_dashboard.git
git clone https://github.com/sunfounder/sf_rpi_status.git

Make adjustments, and manually install the package

cd ~/pipower5 && sudo /opt/pipower5/venv/bin/pip3 uninstall pipower5 -y && sudo /opt/pipower5/venv/bin/pip3 install .
cd ~/pm_dashboard && sudo /opt/pipower5/venv/bin/pip3 uninstall pm_dashboard -y && sudo /opt/pipower5/venv/bin/pip3 install .
cd ~/sf_rpi_status && sudo /opt/pipower5/venv/bin/pip3 uninstall sf_rpi_status -y && sudo /opt/pipower5/venv/bin/pip3 install .

Start/stop the service for debug

sudo systemctl stop pipower5.service
sudo systemctl start pipower5.service
sudo systemctl restart pipower5.service
sudo pipower5 start

sudo /opt/pipower5/venv/bin/python3