blob: 323586f27dcc8b1d831de9b6f58876e4d0694c90 [file] [log] [blame]
#! /bin/bash
#
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
#
# This is a simple helper script that runs webplot for you with the
# correct commandline parameters to plot the touch events on a
# remote ChromeOS touchpad
#
# You simply supply it an IP address and it does the rest, starting it
# up and opening a browser for you automatically
#
# Example Usage:
# ./webplot_chrome_touchpad 192.168.0.4
if [ "$#" -ne 1 ] || [ "$1" == "-h" ] || [ "$1" == "--help" ];
then
echo "Usage: $0 IP_ADDRESS"
echo "Example: $0 192.168.0.4"
fi
python webplot/webplot.py -t chromeos -d "$1" -p 8080 \
--automatically_start_browser