Sunday, November 4, 2012

Use a Kindle and Python as a clock/dashboard

When the Kindle Wifi came out I snapped it up and it became the most used electronic device I've ever owned. Then the Kindle Touch came out and I got that too (by which point I was well on the way to becoming an Amazon fanboy...)

The only problem was that I couldn't actually read two Kindles at once.

Then I came across a post by Matthew Petroff - Kindle Weather Display. This sparked my curiosity and I decided to build a clock/dashboard with the Wifi - something that'd show things like number of unread emails, weather etc. This appealed to me as the Kindle has fantastic battery life, is silent, and the e-ink display is both large and invisible at night (when I really don't want to know the time). The goal was something I could glance at in the morning before going to work and ignore otherwise.

Initially I intended to go down the route of jailbreaking to display an image like Matthew did, but I didn't have any luck with that on my particular device. It then occurred to me that I could just use the built-in web-browser to display a self-updating page. The only blocker to this was stopping the screensaver from turning on, something I was able to work around. The browser chrome was not pretty, but also not a deal-breaker.

From then on it was all about building an appropriate web site, serving it (on my desktop, but it'll work on anything running Python) and pointing the Kindle's browser at the right URL. So far, I've managed to show the time (updated on the minute), the current temperature, today's forecast and today's agenda from my Google Calendar. There's nothing magical there and as the site can be displayed on any JS-aware web-browsing device I'm sharing this project on GitHub. It'll change a lot over time but hopefully there are some basics you can use in your own project.


Update 05/11/2012: I've now added a count of unread emails in my Gmail inbox so head over to the GitHub repo if you're interested in that sort of functionality for your own project. I've also got working on a Raspberry Pi without modification, and it's perfectly fast enough for my use.


  1. I have gone through your blog post Use a Kindle and Python as a clock/dashboard it was really very helpful. I absolutely share your analysis to my close friends keeps up the high-quality work going,

    1. dongtam
      mu private
      tim phong tro
      nhac san cuc manh
      tổng đài tư vấn luật
      văn phòng luật
      tổng đài tư vấn luật
      dịch vụ thành lập công ty
      chém gió
      trung tâm ngoại ngữ
      Nhạc Thành chủ thể phun ra một ngụm máu tươi, sắc mặt trắng bệch.

      - Thu.

      Nhạc Thành phân thân Thủ Ấn đánh ra, Âm Dương Kiếm trở lại mi tâm, tùy theo phân thân cũng trở lại bên trong bản thể, lúc này Nhạc Thành phân thân cũng không có năng lực chống lại công kích của Minh La.

      - Minh La, vốn Thiên Long Phục Ma Trận ta có chuyện trọng yếu, hiện tại nếu ngươi tới, vậy thì bắt ngươi tế Thiên Long Phục Ma Trận, coi như ngươi chết cũng tiện nghi cho ngươi.

      Nhạc Thành cười lạnh, sau đó trong miệng một cổ máu huyết lần nữa phun ở tại trước người.

      Thủ Ấn trong tay biến hóa, mảnh thanh mang bao vây Nhạc Thành, trong miệng thì thầm.

      - Máu huyết làm dẫn, Thập phương thiên long trở về vị trí cũ, Thiên Long Phục Ma Trận, lên.

  2. Hi do you have any advise how I may get this work with a UK location? I notice that when I change the Lat and Lon co-ordinates, the script errors out when calling the .PY script at line 43. To get more info please visit