Category: Homekit

BabelPod – Stream external audio to Airplay 2 speakers

Weekend Tech fun!

Credits to: Andrew Faden  for BabelPod & mcfisto for Airtunes2

Stream music from Vinyl/MD/CD or Tape to Airplay speaker such as Homepod or Sonos.

To follow these instruction you will need a Raspberry Pi, imaged with raspian lite, cables to hook up your external audio source such as phono to 3.5mm jack for your on board jack with Raspberry Pi 3 – 4 or a USB sound card for the Raspberry Zero (USB Card can also work for all Raspberry Pi)

Once Raspian is installed expand the file system to use full sd-card (4gb will do) and enable SSH

When you have found the IP of your Raspberry Pi SSH on to it using Putty or Terminal

Run each of the following command line by copying and pasting:

$ wget https://nodejs.org/dist/v9.8.0/node-v9.8.0-linux-armv6l.tar.xz
$ sudo mkdir /usr/local/lib/nodejs
$ sudo tar -xJvf node-v9.8.0-linux-armv6l.tar.xz -C /usr/local/lib/nodejs
$ sudo mv /usr/local/lib/nodejs/node-v9.8.0-linux-armv6l/ /usr/local/lib/nodejs/node-v9.8.0
$ nano ~/.profile

Add the following lines to the bottom of profile and save and close by pressing ctrl and x

# Nodejsexport NODEJS_HOME=/usr/local/lib/nodejs/node-v9.8.0
export PATH=$NODEJS_HOME/bin:$PATH

Reload the changes just made by running the following command

source ~/.profile

Next the important bit installing airtunes2 – this is needed for new Apple Devices

pi@raspberrypi:~/ $ git clone -b fix_port_0_error https://github.com/mcfisto/node_airtunes2.git
pi@raspberrypi:~/ $ cd node_airtunes2
pi@raspberrypi:~/node_airtunes2 $ npm install
pi@raspberrypi:~/node_airtunes2 $ cd ..

 

Next we install the web front end, this is used to control where your source music is played from and to

pi@raspberrypi:~ $ git clone https://github.com/maexdaemaege/babelpod.git
pi@raspberrypi:~ $ cd babelpod
pi@raspberrypi:~/babelpod $ npm install
pi@raspberrypi:~/babelpod $ node index.js

The last command in the text file above should starts the program and all being well you should be able to goto any browser and goto http://ip.of.raspberrypi:3000 from there Chose the Input (Where you music is being played from) and Output the speaker of your choice, the volume slider at the bottom allow you to control the volume of that speaker.

 

Optional: Making BabelPod startup automatically when the Rasberry Pi boots up:

sudo nano /etc/systemd/system/babelpod.service

copy the below text and Ctrl & x to save the file

[Service]# need to specify the full path to nodeExecStart=/usr/local/lib/nodejs/node-v9.8.0/bin/node /home/pi/babelpod/index.js
StandardOutput=journal

Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Next time the Raspberry Pi reboots BabelPod will automatically start.

*Please note you will still need to choose the input and output when this happens.

 

Netatmo Smart Video Doorbell – Review

My reason for choosing Netatmo Smart Video Doorbell over the other competition is that it has a wide compatibility with other eco systems and no hidden surcharges. Being an Apple user even today still limits you to devices that have full compatibility all round but when Amazon had a sale of this device I snapped it up – stock at the moment seem very erratic and im not sure if this is done on purpose or not – anyway I digress.

This door bell integrates with Apple and more importantly for me with the Apple TV, when a person rings the bell a notification comes on my TV and video is played, in addition to this my Homepod chimes and a notification with picture and video sent to my watch, perfect! and this all seem pretty responsive.

In the box you get:

Stickers to place on the property to disclose that people entering the property are being recorded however only one sticker is provided (not that anyone would use an ugly sticker)

Backing plate and angled bracket for different mounting options – ABS plastic 🙁

Template for drilling holes – although no spirit level like you seen on other youtube videos

SD Card pre-installed Great! (although mine again came with a smaller card than other reviewers)

Security screw and screw driver

Homekit badge to allow you to scan in to your Apple device

Chime adapter

Spare fuse

Raw plugs and mounting screws

What you don’t get:

Chime

Transformer

Clear instructions

 

This product claims to be easy to fit and as a single device it is, but wiring it up to a chime left me a little confused, they are examples of what the product is compatible with on the website ( https://check.netatmo.com/en-us/security/doorbell/question/requirement ) but the instructions still a little vague. So I decided to setup the doorbell off the wall before mounting.

 

I wired up the doorbell and straight away it came to life and a little light flashes green and you need to wait for this to turn white.

In the app you can then begin to setup the WiFi, here is where I ran into problems. My WiFi is setup for two networks my main WiFi and my IoT devices, I wanted my Doorbell to live in the IoT network – this hasn’t been a problem with my other Netatmo devices such as the Smoke Alarm but the Doorbell refused to connect.

However after several attempts and re-setting the device using the small reset button on the back of the device – it finally connected.

Next issue – WiFi strength.

My house uses the Ubiquiti WiFi with excellent coverage, however the device reports weak signal even though phones and other devices in the same place report excellent, I have tried all different channels, Signal strengths and my only solution was to install a second access point. This has improved the strength however I would say it might as well be hardwired as the AP is virtually next to the doorbell. I will continue to investigate and hope that this is just a firmware issue.

Quality:

The doorbell it self feels well engineered and the main button positive to the touch, you know where exactly where to press unlike some of the cheaper models, I was a little disappointed however in how the doorbell attaches to the angled bracket, only being held in place with small self tapping screws into abs plastic. Also the backing plate which is optional for installation but I used as it hides the bell wire better on my property isn’t very secure, I think this doorbell is really meant to be installed straight on a brick work where the cables pass directly behind it.

Video & Audio:

I have to say I’m happy with the quality of the video, my front door faces southwest so in the morning get sun light which can cause flares and the camera deals with this perfectly. Night vision is not bad also, however i have found the infrared lights flash which cause my other CCTV camera to pick up on, not sure why it flashes maybe power issue.

The audio is decent too, don’t get me wrong its no Sonos or Apple hompod quality but decent enough, the microphone does however pickup on wind noise which is distracting but clear other than that.

Other Issues:

Within the app you are given option to backup to an FTP server or Dropbox , this is a great feature as you know that you video is stored in two places if one fails and if you have Secure video from Apple a third place, again I was met with problems, FTP just would not work – tested with different clients to make sure that no fault of mine but it just would not work, but I’m glad to report Dropbox was a quick and easy option to setup.

Conclusion:

Would I buy the product knowing what I know: Yes its about the only option at the moment that ticks the boxes for me and I hope that the other issue can be worked out through software or firmware, I would say my overall opinion is I hope they bring out updated version which fixes my other concerns but other than that it is decent bit of kit.

Pros:

No Hidden surcharges

Local and Remote storage options

Compatible with other smart operators

Video Quality

SD-Card included

Homekit support

Responsive

If you loose power it continues to work for a little while as long as your wifi is still working

Cons:

Weak WiFi

WiFi Setup requiring several attempts

App a little clunky

Use with the angled bracket doesn’t feel as secure to the wall

Homebridge – Unifi Protect (G3-Flex Camera)

How to enable Unifi Protect to work with Apple Homekit using a Raspberry pi and the Homebridge application.

I was struggling to find the correct setting to enable Homebridge to connect to my Unifi Protect and G3-Flex camera’s. After alot of back and forth here are the working settings for ffmpeg.

 

        {
            “cameras”: [
                {
                    “name”: “Camera Name”,
                    “motion”: true,
                    “videoConfig”: {
                        “source”: “-re -rtsp_transport tcp -i rtsp://Cloudkey URL:7443”,
                        “stillImageSource”: “-i http://xxx.xxx.xxx.xxx/snap.jpeg”,
                        “maxStreams”: 2,
                        “maxWidth”: 1920,
                        “maxHeight”: 1080,
                        “maxFPS”: 30,
                        “vcodec”: “h264_omx”,
                        “additionalCommandline”: “-preset slow -profile:v high -level 4.2 -x264-params intra-refresh=1:bframes=0”,
                        “mapvideo”: “0:1”,
                        “mapaudio”: “0:0”,
                        “audio”: false,
                        “debug”: false
                    }
                }
            ],
            “platform”: “Camera-ffmpeg”
        }