ReportBot: automated viewing of website reports

Revisi per 22 Juli 2014 08.48 oleh Angus (bicara | kontrib) (Introduction)

ReportBot: automated website report viewing system

Introduction

iSIKHNAS ReportBot is intended for automated hands-off demonstration and display of the iSIKHNAS web site, initially intended for use in the Director General's Diorama room, but potentially for others that want to demonstrate the system or to have automated display for monitoring the system.

This system provides automated on-screen display of all the available reports on the iSIKHNAS web site. In an existing web browser (such as Chrome), the system shows one of the reports, waits, then automatically displays the next report, moving through all the reports on the system, and then looping through all indefinitely until the system is manually shut down.

It is run by installing some software and scripts on a standalone internet connected computer, which drives the display.

Installation

  1. Install the appropriate Python for your system. Download from https://www.python.org/downloads/ and following the installation instructions.
  2. Download the Selenium Python bindings (using the green button at the top of the page) at https://pypi.python.org/pypi/selenium
    1. Decompress the tar.gz file, and save the directory structure (it should be saved as a directory called something like selenium-2.42.1)
    2. From the saved directory, under the 'py' directory, copy the entire 'selenium' directory and subdirectories into the 'Lib' directory of the python install (normally C:\Python27\Lib)
  3. Install the web driver software
    1. Download the right web driver for the web browser that will be used from http://code.google.com/p/selenium/w/list?can=2&q=label=WebDriver&colspec=PageName%20Summary%20Changed%20ChangedBy
    2. Save it into the Python install directory (normally C:\Python27)
  4. Install the python script
    1. Copy and save the script below into a file called ReportBot.py

Python code