Tag: python


After you installed Django and wanted to view it from another local machine you got this error:

DisallowedHost at / Invalid HTTP_HOST header: ‘’. You may need to add u’′ to ALLOWED_HOSTS.

I use this to work around it.

Run as:

Open the settings:

Change and add:

Now everything and anyone on your local network should have acces to the website.
^that’s also a big warning!

Retrieve data from a .csv and show it a window

I needed a quick way to show temps from a .csv on a screen.

Watch the sky (simple python ftp script)

So you got the raspberry and the camera board.

With a cronjob you can let it take pictures every few seconds or hour and do something with it. Might be  a timelaps video or send it to twitter. In this case I added a simple script to the “RasBotPi” so it can send a picture every hour to this website.

2013-11-14 11.24.55

The “RasBotPi”

a Simple script will capture a jpg and then send it to this website with python and its ftp library.

Here an example of the snapshot that the camera board takes..

Some clouds..

Some clouds..


Show album art in Conky with python script.

I wanted to show some Album art in conky.

Ofcourse i didnt need to re-invent the wheel so I stumbled upon this forum topic:


iggykoopa created a nice script (see here) but because I like the dark feeling of #! I wanted to have the album art in greyscale.

I took his base from: http://crunchbanglinux.org/pastebin/29 and added this part to it: (and an option so you can start it with “conkymusic.py -g”.)

You can grab the whole code here: Python CrunchBang Linux Pastebin.

The code in conky:

Works great here.