Multimedia Deign

Lecturer Exchange With the University of Regina

Webcam at the University @ Regina, Saskachewan
Webcam at the University @ Regina, Saskachewan

Lecturer Exchange

During March 2016 I’ll travel to the University of Regina in Saskachewan, Canada, and present a talk or workshop about storytelling and blogging at the Faculty of Media, Art and Performance.

There are close links between multimedia, art and performance – and I hope that the exchange will give new engergy and inspiration to teachers and students in Regina and at the Multimedia Design and Communication Programme in Aarhus.

At the University I’ll visit lecturers and classes. Of course it’s still work in progress, but so far the plan for the topics is:

  • How fine art exhibitions may benefit from a social media strategy.
  • Storytelling and creative writing for the web.
  • How to make stunning WordPress web sites.
  • Developing wikis as a research tool.

Later on we hope to see lecturers from Regina at Business Academy Aarhus.

Multimedia Deign

Winter in Aarhus


Multimedia Deign Python

Python and Philips Hue

The Tkinter window
The Tkinter window

By Philips Hue you can control lamps in your home. The lamps are commanded to change color, dim or whatever via JSON PUT. And that’s a cool feature, because you can use JSON with tons of languages such as JavaScript, Jquery, PHP, Lua, Ruby … and of course Python. Here is a very simple Python Tkinter GUI.

Online you can find tons of Apps. But it is much more cool to write your own code.

First you have to register a user or get an API key from the box. Register as a developer at meethue. Follow the steps in order to get a whitelisted user, or simply get an API key. Then you are ready to go.

Python Libraries

First you have to prepare Python and import libraries:

from Tkinter import *
import requests
import json
  1. Tkinter is a library for GUI making.
  2. Requests is used for POST, GET and PUT with JSON.
  3. Json is Json.

The GUI class

Here is a autorunning class called Lamper (i.e. lamps in Danish). First a frame is defined. You can compare the frame with a canvas. It’s where stuff happens. Then we add a label and two buttons. Here you only see the first button:

class Lamper:

    def __init__(self,master):

        frame = Frame(master)

        ''' label '''
        self.label = Label(frame,text="Hue: all lights on / off panel")
        ''' turn off light '''
        self.button = Button(frame,


The Tkinterbutton has a command. It’s the This line will invoke a function if you click the button. The function looks like this:

    def off(self):
            self.taend = json.dumps({"on":False})
            self.r = requests.put("", data=self.taend)

The second button is constructed in more or less the same way. However the line where you turn off the lamps must be changed: self.taend = json.dumps({“on”:True}).

Save your work

  • Save your file e.g. as
  • Now try out your program, in a terminal window write:

If you’re lucky you’ll see a window with two buttons. Try to press the off button. If they dim down to darkness … well then this is a very cool starting point to a new adventure in home automation.


Json is a cool data exchange format. You can get all kinds of data via Json. For instance you can get the temperature from the open weathermap API.

Then you could make a lamp that turns blue in the morning if it’s freezing outside. If you’re on a unix-like system, such as Linux or Mac, the program could fire off via CRONTAB every morning when you rise.

Get the code from Github

Here is the code from Github.