This software was used to implement a simple monitoring application to visualize a 16 Gbps VLBI demonstration given in June 2011.
The software consists of two components:
-
monitor: a django-based application that uses google visualization API and jQuery to visualize the interface statistics for a Data Acquisition System.
-
server: a simple python XML RPC server that retrieved data from the Data Acquisition System via an XML API and then published it via XML RPC.
The software was written in about half a day.
The figure below gives a high level view of the system.
The main django view renders a template which includes javascript that loads google viz components. These components then pull data from the stats view via a (minimal) RESTful API.
The stats view in turn uses XML RPC with calls to functions interface(), ethernet(), and capture() to pull data from the StatsServer.
The StatsServer pulls data from the 16 Gbps Data Acquisition System using XML over TCP.
To install the software, follow these steps:
$ easy_install django
$ git clone https://github.com/delapsley/demo.git
To run the system in simulation mode, follow these steps.
$ cd server
$ python StatsServer.py -F
In a separate terminal window, issue the following commands:
$ cd monitor
$ python manage.py runserver
Open your web browser at the following URL:
http://127.0.0.1:8000/main/
You should see something that resembles the figure below.
Enjoy the application.
Please email me, delapsley@gmail.com if you have any questions.