This project is designed for the Pi Magic Mirror, and should be deployed together with it.
This Project recommended to be deployed on Linux Platform or other Unix-like os.
Ensure that a python (3.9^)
with pip
and pipenv
is installed.
Most of the time you can use following shell script to install above.
apt install python3 python3-pip
Ensure the following packages are installed:
libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 pulseaudio swig libatlas-base-dev libglib2.0-dev libbluetooth-dev
You can use your any favorite package manager to install above packages.
Following requirements are only for test and not mandatory to be installed.
sox
Make sure your python version is at least v3.9:
python --version
Some of the requirements packages are not available in pip repository. So need to clone their repository and build ourselves.
cd path/to/deploy/projects
git clone https://github.com/actredphos2017/PiMagicMirrorServer.git
# This repository's cloning just to build and install package "pybluez"
# You can remove after install
git clone https://github.com/pybluez/pybluez.git
cd pybluez
python setup.py install
pip list | grep PyBluez
cd ..
Install the requirement packages:
cd PiMagicMirrorServer
pip install -r requirements.txt
Start the Server:
python main.py