#!/bin/bash # Run this ON a Raspberry Pi to make it a wireless AxiDraw bridge for Inkpilot. # Plug the AxiDraw into the Pi's USB, power both, and the app finds it on Wi-Fi. set -e HERE="$(cd "$(dirname "$0")" && pwd)" echo "Installing what the bridge needs..." sudo apt-get update -y >/dev/null sudo apt-get install -y python3 avahi-utils >/dev/null sudo mkdir -p /opt/inkpilot sudo cp "$HERE/inkpilot_bridge.py" /opt/inkpilot/inkpilot_bridge.py sudo usermod -a -G dialout "$USER" sudo tee /etc/systemd/system/inkpilot-bridge.service >/dev/null </dev/null 2>&1 sleep 2 echo echo "Done. The bridge starts by itself whenever the Pi turns on." echo "In the app: Plotter tab, Connect, then tap \"AxiDraw (wireless)\"." echo "Check on it any time with: systemctl status inkpilot-bridge"