flux and hue

[f.lux](www.justgetflux.com) is pretty awesome. Now that my room is lit by hue, I wanted a way to make my room colour temperature match my screen. This requires a few ingredients:

With all that put together, the following bash monster asks redshift what colour temperature it should be right now given the current location, then looks that up in the colormapping file to get the hex color, and sends that to the hue. Run this every minute or so and you’ll get a nice fade.

redshift -l corelocation -t 5500:1900 -p | grep temp | cut -d: -f2 | xargs echo | grep -f /dev/stdin ~/dotfiles/scripts/colormapping | cut -d" " -f2 | tr -d "#" | xargs hue lights all 
 
7
Kudos
 
7
Kudos

Now read this

iButton hackery

To get in to various places around Oxford, many places use little iButton fobs, which run on the Dallas Semiconductors 1-Wire protocol. When you tap them against a “master” device, they broadcast their unique ID, which the master can... Continue →