Requirements
- Node v8 LTS
- Install from https://nodejs.org or via your preferred method
- npm v6
- Once Node is installed, use
npm
to upgrade itself npm install --global npm@latest
- Once Node is installed, use
- Clone or download this repository
git clone https://gist.github.com/3ba833f8cc7252e7cb5e84cfae4554fe.git ot2-pause-handler
- Or Download it as ZIP
Once downloaded
# install dependencies
cd path/to/ot2-pause-handler
npm install
- Open the Opentrons App
- Upload your protocol with a
robot.pause
command - Start the script with:
# by default, use USB-to-ethernet adapter address
node index.js
# specify a different IP (e.g. for WiFi)
node index.js "192.168.1.100"
- Click "Run" in the app
- Script will detect when protocol goes from
running
topaused
and run itsdoYourThing
function