The purpose of this project is to provide a web-based interface for starting plots with an AxiDraw plotter. It looks at a folder of SVG images, and provides controls for viewing and plotting them. Uploaded SVG files generate PNG thumbnails, and the selected SVG can be downloaded as a PDF on demand from the web UI.
Create a Virtual Environment with venv
python -m venv .venv
source .venv/bin/activate
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip
pip install -r requirements.txt
Customize your values
Run this command where {ART_DIRECTORY} is replaced with the value in your .env file:
cd ./static
ln -s {ART_DIRECTORY} sketches
See instructions on AxiDraw.com.
source .venv/bin/activate
python index.py
deactivate
Run in the background:
python index.py &
Keep running in background if shell session ends:
nohup python index.py > /dev/null 2>&1 &
Open the URL initiated by Flask in your web browser. It should be your local IP
address followed by the port, so something like http://192.168.0.10:5007.