Categories
Personal Tech Work

Ruby Presence Light

The Ruby Presence Light is a status light that displays your availability to people around you. The small compact design allows you to mount the light on your monitor or laptop screen using the included Velcro strip.

Categories
Personal Raspberry Pi Tech

Raspberry Pi Zero W Homebridge Camera

This is a combined set of instructions to install an Apple Home Kit compatible Raspberry Pi Camera v2 using Homebridge. I initially installed this using a Raspberry Pi 3 and then wanted to get it working on my Raspberry Pi Zero W to make it more compact. These instructions are specific  to Raspberry Pi Zero. If you want to install on a different Raspberry Pi, you need to determine the ARM version for your device. Then you need to download and install the correct Node.js version from their site. Use the “Linux Binaries (ARM)” distro and the correct ARM version. Other than that one change, all instructions below should work.

Install Raspbian on the Pi. Either desktop or lite version will work. These instructions assume that you have already done the normal Raspbian setup for locale, timezone, wifi, etc…

From a shell prompt, update the OS.

$ sudo apt-get update && sudo apt-get upgrade

Run the Raspberry Pi configuration and enable the Camera and SSH interfaces. Change the default password while you are at it.

Then install the camera hardware. (I am using the official Raspberry Pi Camera Camera V2.1)

$ nano /etc/modules

Add the following entry to the bottom of the file if it is missing.

# Camera with v4l2 driver
bcm2835-v4l2

At this point you need to reboot the system.

$ shutdown -r now

Next we need to download and install Node.js and npm. Because we are using the Raspberry Pi Zero W, we need to install the armv6 version.

$ cd ~/
$ wget httpd://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-armv6l.tar.xz
$ tar xf node-v8.11.1-linux-armv6l.tar.xz
$ sudo cp -R node-v8.11.1-linux-armv6l/* /usr/local/

Once this has been completed, run the following scripts to verify that everything is working.

$ node -v
v8.11.1
$ npm -v
5.6.0

You can remove the downloaded node files if everything is working.

$ rm -fr ~/node-v8.11.1-linux-armv6l*

Now you can install Homebridge and the Raspberry Pi Camera plugin.

$ sudo apt-get update & sudo apt-get install libavahi-compat-libdnssd-dev ffmpeg
$ sudo npm install -g --unsafe-perm homebridge
$ sudo npm install -g homebridge-camera-rpi

From here, you can run the homebridge command to make sure that it starts up correctly.

$ homebridge

If you don’t get any errors then you can create the config.json file to setup the camera in homebridge. Create the following config.json file in the pi home directory.

$ nano ~/.homebridge/config.json

Then put this in the file.

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "",
    "platforms": [
        {
            "platform": "rpi-camera",
            "cameras": [{"name": "Front Door"}]
        }
    ]
}

You can change the camera name to something other than “Front Door” depending on what you want to display in HomeKit.

To have Homebridge startup automagically, you can follow the instructions on this link to get that done. One note, when you create the homebridge user account to run the service, add the video user group to that account so it has permissions to the camera.

$ sudo usermod -a -G video homebridge

Enjoy!

Categories
Personal

She is so pretty. 😍

from Instagram: https://ift.tt/2H1sYe0
Categories
Personal

So I’ve had a pine needle stuck in the hinge of my MacBook Pro since Christmas. Sometimes it pokes out and I try to get it out. I guess I pushed too hard this time. But it’s out now!

from Instagram: http://ift.tt/2B62jIx
Categories
Personal

Feliz Navidad. Currently, my favorite Christmas decoration.

from Instagram: http://ift.tt/2kR19ew
Categories
Personal

There is a dog in this picture. Can you find her? #tula

from Instagram: http://ift.tt/2BrVc13
Categories
Personal

Love these kids.

from Instagram: http://ift.tt/2zvHSIP
Categories
Personal

Shipley Do-nuts with Kayson.

from Instagram: http://ift.tt/2B5KU3R
Categories
Personal

#treasuretruck #amazon

from Instagram: http://ift.tt/2AUvuys
Categories
Personal

iPhone X. It is going to take some use to use it. Really nice and the Animoji is awesome. Thanks @noahgalaviz

from Instagram: http://ift.tt/2AhHCtM