# Homebridge -> Pi

### C_LOG_27

I am getting closer to my goal of using the Pi to turn devices on and off, however before I finish up I need to get homebridge running fully on the Pi(that way it acts as a dedicated homebridge device). To get started I head over to the how to install on a raspberry pi guide

I already has jessie installed and didn't have to worry . . .

December 28, 2015

# Running script forever with foreverjs

### Reboot! C_LOG_26

My next challenge is to figure out how to make sure our node script is running on boot of the raspberry pi.

Simplified Script
This is our simplified script we want to run at system boot.

var wpi = require('wiring-pi');

var express = require('express');
var app = express();

wpi. . . .

December 26, 2015

# Merry Christmas

### Long exposure Tree Edition, C_LOG_25

Good Morning, today is Christmas! Looking at our tree it was time to recreate something I saw online where you would perform a long exposure of the tree while adjusting the zoom ring.

First Attempt

With my first attempt I dialed in the camera to f22, a 6 second exposure, . . .

December 25, 2015

# Fixing the Tree

### C_LOG_24

Today I attempted to recreate a missing ornament on our advent tree calendar. Years ago a crafty puppy decided to eat the star. Today I recreated a version out of paper and cardboard. I will fashion a version out of wood in the future but for now this will work.

missing star

impression from a crayon

paper . . .

Posted in: clog

December 24, 2015

# Controlling the Flow

### Relay tied into an extension cord, C_LOG_23

Now that I have the relay hooked up I was able to make the small LEDs on the relay flash it is now time to use it to switch power. Before we get started I would like to state I really don't know what I am doing but do have some basic electrical experience and need to state we are now dealing with 120v which is dangerous. Please be careful . . .

December 23, 2015

# Convert pdf->image

### C_LOG_22

Pdf pdf, oh the pdf. Every now and again I have to deal with a pdf file and do something with it. Today was converting it to an image. Now usually I just fire up preview on the mac and export as an image. Today let's find another way a way that is on windows. After a quick google search stack overflow was to the rescue and pointed towards . . .

Posted in: learning

December 21, 2015

# Wiring up a Relay

### C_LOG_21

A couple weeks ago I purchased a SunFounder 2channel 5v relay so I can use the Pi to control a device remotely (I am looking at you Mr. Christmas Tree)

The Relay

This was the first time pulling it out of the box and immediately I was confused on how to hook this thing up as there were no diagrams or instructions. After . . .