Skip to content

Instantly share code, notes, and snippets.

View mic159's full-sized avatar

Michael mic159

  • Atlassian
  • Australia
View GitHub Profile
@mic159
mic159 / mjpeg.py
Created January 20, 2015 13:48
MJPEG client in PyGtk+
import pygtk
pygtk.require('2.0')
import gtk
import urllib
import gobject
import threading
STREAM_URL = 'http://10.10.1.1:8196/'
class VideoThread(threading.Thread):
@mic159
mic159 / README.md
Last active May 26, 2016 18:21
Dashing Widget: Time Since Last (Red Green)

Dashing Widget: Time Since Last (Red Green)

This is a modified version of the Time Since Last widget by hannesfostie that is a bit simplified and with the red-green inverted (goes red when too much time has passed).

It does not use HTML local storage (no need, the server remembers it for us) and the threshold is just called 'threshold' and it is in hours.

Installation

@mic159
mic159 / README.md
Last active February 28, 2018 10:42
Dashing Widget: Red Green Meter

Dashing Widget: Red Green Meter

A modified Meter widget that sets the background colour to either red or green depending on a threshold.

To use it, use something like this on your dashboard:

    <li data-row="1" data-col="3" data-sizex="1" data-sizey="1">