/ThickeyHue

Code for my PHP Berkshire talk

Primary LanguagePython

ThickeyHue

This is a set of php and python scripts to demonstrate how to control Hue lightbulbs with PHP and talk to PHP via http.

Pi Setup

To setup the Raspberry Pi with Apache/php etc then you are best to follow slides 4 - 8 in the included presentation (see the presentation directory)

Raspberry Pi Hat setup

This is a bit more complex and I'm not qualified enough to offer any better instructions than the ones that appear online.

Hardware

Installation Instructions

You are best off following these Instructions Here, This page and the start of the second page was all I needed to get to where I needed things to be.

Don't forget to enable the GPIO pins Take a look here The GPIO pins are not enabled by default so the hat won't work unless you do this!

Python script

To get this to work correctly you will have to modify the touch.py script to have the correct IP address of your Pi. I was lazy and didn't want to work out how to make it one variable.. sorry!