Giter VIP home page Giter VIP logo

monitoring_browser's Introduction

monitoring_browser

A fullscreen monitoring browser in PySide and Qt Webkit.

It can rotate between multiple URLs with a given amount of seconds.

Configuration

To display websites in fullscreen, just edit webkit.py and change the lines to have:

url = QUrl("http://www.zoobab.com")
self.sites.append(Site(url, 10, 1.5))

url = QUrl("http://www.linuxfr.org")
self.sites.append(Site(url, 10, 1))

url = QUrl("http://demo.kibana.org")
self.sites.append(Site(url, 15, 1))

url = QUrl("http://demo.mathias-kettner.de/demo/check_mk/")
url.setUserName("demo897");
url.setPassword("demo");
self.sites.append(Site(url, 15, 1))

Be careful to add 4 spaces in front for python indentation.

The second argument is the time delay, and the third one is the zoom level.

Dependencies

Tested on gentoo, you will need to install dev-python/pyside with the webkit USE flag:

$ USE="webkit" emerge -1 dev-python/pyside

For other distros, your feedback in welcomed.

Would love to see documentation on how to install it for Raspbian.

Telnet interface

It is also accessible via telnet localhost port 4242 where you can change some configs on the fly (like zoom level, refresh, delay, get the status of the list, add or remove an URL, etc...)

zoobab@turmes /home/zoobab [1]$ telnet 127.1 4242
Trying 127.0.0.1...
Connected to 127.1.
Escape character is '^]'.
turmes % help
>> help
avaible commands:
  fs
  help
  restart
  upgrade
  list
  zoom
  refresh
  next
  add
  del
  exit
turmes % list
>> list
current list:
 [0] 10s : http://status.mobilevikings.com/
 [1] 10s : http://ihackernews.com
 [2] 10s : http://demo.kibana.org
*[3] 10s : http://logstash.openstack.org
 [4] 15s : http://demo897:[email protected]/demo/check_mk/
turmes %

TODO

  • Raspberrypi / raspbian installation
  • Change user-agents for certain sites
  • Handle URLs that fails
  • Document the API accessible at: $ telnet 127.0.0.1 4242

Video

See here:

http://www.youtube.com/watch?v=UwPF1F0_Uao

monitoring_browser's People

Contributors

zoobab avatar pol51 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.