HIVE Active Heating / AlertMe Ruby API


Recently I had Hive Active Heating installed in my home. I was looking around for an API to find out its re-branded alert me kit. After some digging I found it also uses the same API for the smartphone stuff.

The main difference between the AlertMe and HiveAH API is the URL. So I have created a simple ruby gem to get some basic information from the API for both HIVE and AlertMe.

The Source to the Gem and a simple example can be found :

And is available on RubyGems :

Demo using example application :

-- AlertMe API Ruby Binding Demo --
-- Written by Keiran Smith --
Logging in
Retrieving Thermostat Information 

-- Temperature Information at 04:24:25 -- 
Current Temperature : 23.5 C
Target  Temperature : -- C

Setup MariaDB/NginX/PHP on RHEL and Derivatives.

Setting up MariaDB and using it is just as easy as setting up mySQL. MariaDB was designed as a drop in for mySQL. This guide is designed to walk you through the process.

Initial Setup

First we need to install the EPEL Package source.

# rpm -Uivh

PHP and php-fpm

What is php-fpm?

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

To install via yum you can simply do Continue reading

YUM Repo

Hey Guys,

I’ve setup a yum repo for packages that are not in any of the existing repos for various reasons.

So Far I have added fragrouter. I will be adding more.

name=Affix' Repo

Fedora at LinuxCon Europe 2013

CC BY-NC 2.0 – Linux Foundation

CC BY-NC 2.0 – Linux Foundation

Our booth was very well attended through the whole conference. We had alot of interest by some major companies, not naming any names, about using fedora as a platform for their
development cloud.

Most of the visitors to our booth seemed very impressed with our display featuring Fedora 19 (Shrödingers Cat) and Fedora 20 (Heisenbug)

Being along side GlusterFS and oVirt had some big advantages the main one being I learned about what GlusterFS can do and how to setup oVirt and RDO (Guides coming soon).

Alot of the attendees at the Gluster Booth picked up some of our Fedora for your Cloud fliers and asked us how to setup Gluster and oVirt using Fedora.

By Far the highlight of my week was meeting Linus Torvalds after his Keynote.

Linus Torvalds

Linus Torvalds

Thanks to Jiri Eischmann, Jon Archer, Tom Callaway and Tony Dyer who also staffed the booth, also Welcome to our future new ambasador Eilidh McAdam she aims to contribute to fedora and join in with our already sizable pool of female contributors.

An Honorable mention to the guys at Red Hat that were there for us throughout the event if we had any questions we were unsure about relating to the other Red Hat Products.

Nagios Packages Updated



I have submitted an update to testing to resolve bug #926192.



These packages are available for and will be pushed to updates-testing during the next release engineering push.


Fedora 19

Fedora 18

The patch applied is available here from Dennis Gilmore :

ProTip : Hot Adding Disks to KVM Guest using virsh

kvmbanner-logo2Today mysqld was killed on the VM that hosts this blog.

After checking a few log files and finally dmesg I saw that mysqld was oom killed. For those that do not know an OOM kill means Out of Memory.

The relevant lines in dmesg were as follows.

Out of memory: Kill process 3844 (mysqld) score 104 or sacrifice child
Killed process 3844, UID 27, (mysqld) total-vm:909216kB, anon-rss:106172kB, file-rss:168kB

Instead of adding more ram outside one of my downtime windows I came up with a quick and easy solution…

Add a Swap Device.


However it’s not as simple as I had no spare disks for my VM.

So heres the Procedure I went through.

Created a new LVM called affix-swap
Attached it to the Guest

On the Guest used mkswap to make the new HD a swap device
used swapon to enable the swap.


Command Line :


[root@rbx01 ~]# lvcreate -L 2G -n affix-swap virtual
Logical volume "affix-swap" created
[root@rbx01 ~]# virsh attach-disk AFXVM-01 /dev/virtual/affix-swap vdb
Disk attached successfully


[root@delta ~]# free -m
total used free shared buffers cached
Mem: 996 900 96 0 7 66
-/+ buffers/cache: 826 170
Swap: 0 0 0
[root@delta ~]# mkswap /dev/vdb
mkswap: /dev/vdb: warning: don't erase bootbits sectors
on whole disk. Use -f to force.
Setting up swapspace version 1, size = 2097148 KiB
no label, UUID=d22d0207-3583-4af1-961f-817dac348374
[root@delta ~]# swapon /dev/vdb
[root@delta ~]# free -m
total used free shared buffers cached
Mem: 996 913 83 0 8 79
-/+ buffers/cache: 825 171
Swap: 2047 0 2047

This however is a temporary solution and will last until the next reboot of the VM. That will be done over the weekend during my next window.

Hope this has helped someone out at least.

Are Canonical Hurting the Open Source Community?

Are Canonical hurting the Open Source Community? In my opinion yes they are!

A slight dig at Microsoft

Canonical having a dig at microsoft

Taking a dig at Microsoft

I am not the biggest fan of Microsoft Products however think the way canonical are marketing Ubuntu 12.10 will encourage microsoft to distance itself from the Open Source World.

I do not think canonical realise that instead of working against one of the largest tech companies in the world that we should be working with them.


Pay what you think its worth?

Pay for Ubuntu

Yes they do want money for Ubuntu!

Canonical have an attractive page designed to encourage users to donate to them before you download Ubuntu. There is however a small link to skip the donation and just download but it isn’t very clear.


Distancing from Linux

Canonical recently made the move to distance themselves from Linux. They don’t seem to make it clear anywhere that Ubuntu is infact a Linux Operating System . Instead they promote Ubuntu. For example Valve and Canonical work together to create “Steam for Ubuntu”.


As a conclusion I think that canonical do infact hurt the community and attempts to drive everything in their favour by insulting the competition and basically demanding payment for work that was done by a community of millions of developers.