An Arduino+JohnnyFive based mobile device testing lab with browser proxying capabilities
If you need turning devices support, Moblab requires the following:
-
A Firmata compatible Arduino board (developed and tested using an Arduino Uno)
-
Servos (Standard, non-continuous rotation preferred)
- Install the project dependencies with npm:
$ npm install
-
run
node mob.configure.js
to bootstrap you configuration -
Run the proxy with
node mob.proxy.js
-
Configure your devices to use your IP address as a proxy, on port 8581
-
On a different terminal window, run the
node mob.master.js
for controlling the browsers -
On a different terminal window, run the
node mob.servos.js
for controlling the servos
We plan on adding on-demand certificate, for now you can follow instructions here.
go("www.address.com")
Navigates to www.address.com
Reloads the current page
Scrolls the current page to the given (x,y) coordinates
Changes all the connected devices to portrait mode
Changes all the connected devices to landscape mode, turning them to the left
Changes all the connected devices to landscape mode, turning them to the right
Saves the current calibration values to config.json
You can change the calibration values like this:
>>> servo1.portrait = 90;
>>> servo1.landscape = 25;
>>> servo1.landscapeRight = 150;
>>> servo1.pin = 13;
Moves the servo to the given position
Resets the servo to the original position