Simple LIFX HTTP API Status Checker for Imperihome

I wanted to add a widget to my Imperihome set-up telling me if my LIFX API was still running. If you check my earlier post, you’ll see that I am running the unofficial Ruby LIFX HTTP API from https://github.com/chendo/lifx-http.

I decided to write something simple in php and run it also on the Raspberry pi. But first, I need an http server. I decided to go for lighttpd (following directions from this page: http://www.penguintutor.com/linux/light-webserver).

Quick Steps:

  1. sudo apt-get install lighttpd
  2. sudo apt-get install php5-common php5-cgi php5
  3. sudo lighty-enable-mod fastcgi-php
  4. sudo service lighttpd force-reload
  5. sudo chown www-data:www-data /var/www
  6. sudo chmod 775 /var/www
  7. sudo usermod -a -G www-data pi

Write a bit of code and place it in /var/www:

And there we are!

Advertisements

Getting this blog going again..

I am planning to get this blog up and running again. This will involve providing some more mundane updates from my life, but more importantly, I will be blogging about my recent decision to get fit and follow most of the advice presented in Tim Ferriss’ The Four Hour Body.

More on that later!

Nexus One Digitizer Repair

As some of you may know, I got the Nexus One a few weeks ago. After having it about 3 weeks, I dropped it. The glass digitizer cracked.

I sourced a replacement digitizer (glass screen) via Alibaba from China. I had to buy bulk (10) – so anyone in Singapore who has a broken Nexus One, email me. I’m selling.

I fixed it, took about 2 hours, but it works! No left over screws!

Thanks to iFixIt at http://www.ifixit.com/Teardown/Nexus-One/1654/1!

My photos are here:

Nexus One Digitizer Repair

New Years Resolution #2: Simplify Online Stuff

I have way too much stuff online (I’m talking specifically services I’m paying for). So here’s what I’m going to do:

1. Get rid of JungleDisk offsite backups (including the S3 storage). I’m using Mozy, and sticking with it.
2. Get rid of my Dreamhost hosting
3. Get rid of my Rackspace Cloud hosting
4. Move everything to Squarespace (I just want it to work)

Um, anything else?