Cast phone to computer
Connect phone to computer via USB before and make sure you have adb version 1.0.32 in path. Also needs Android SDK version 24.3.4.
To get dependencies,
npm install
In one shell, run
node server.js
In another shell, run
node listener.js
In another new shell, run
cd scripts
./screenshots.sh
Go to localhost:3000
To stop, Ctrl+c in both shell windows to kill both and close browser tab.
To see working: https://www.youtube.com/watch?v=37wkwtd961I