added measuring of distans and sending that over XMPP as hue value