Skip to content

markroland/plot-server

Repository files navigation

Plot Server

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.

Installation

Create a Virtual Environment with venv

python -m venv .venv

Install dependencies

source .venv/bin/activate
python -m pip install https://cdn.evilmadscientist.com/dl/ad/public/AxiDraw_API.zip
pip install -r requirements.txt

Copy .env.example to .env

Customize your values

Add a symoblic link for artwork

Run this command where {ART_DIRECTORY} is replaced with the value in your .env file:

cd ./static
ln -s {ART_DIRECTORY} sketches

Install the AxiDraw Python module and CLI

See instructions on AxiDraw.com.

Run

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 &

Connect

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.

About

A local web service for interacting with an AxiDraw plotter

Topics

Resources

Stars

Watchers

Forks

Contributors