Google summer of code project XMPP-IoT toolkit

Over the summer I have mentored a very good student from Hyderadad Adhish Singla he has without prior skills in XMPP worked with two visalisation tools and extensions to the SleekXMPP package to make it simple to create and use interoperable IoT devices talking XMPP.


What is that? It is a collection of open extensions to the famous well proven standard that has been used in millions of installations and different applications including settop-boxes and chat clients.

XMPP is a perfect suited messaging backbone for IoT since it can federate clients on different domains to ”friend” each other why not friend your neighbours outside temperature if yours is broken?

Any device running XMPP towards any of the other federated servers can talk to any other device, when you have



SleekXMPP python tools for running on devices. Python is perfect for easy programming of smart devices most of medium and high range devises is equipped with python from the start. like Intel Edison, raspberry Pi, Cubieboard, beagelbone and alike.

The code is currently in a branch on github to incorporate your local IO device you create field’s that can be readable or writeable and you start a GPIO python file r on your device and it is accessable as a device on the xmpp network. You can use any account on any on the available servers around just look at

Cordova Client

We have created a Cordova Strophe based client that can be used to view and change values from devices below is a simple example of running the cordova android emulator client and controling a philips_hue lamp available over the xmpp network.

Converse.js Client

to be able to have a webbased viewer we have incorporated the functionality in the converse.js web chat client it has been incorporated in the websiteChat_and_value_example

Talking IoT businessmodels at ITARC 2015

I will be holding a workshop at ITARC 2015 Day one is filled with interesting talks and on day two there is a lot of different workshops  mine is W09 between 13:30 to 17:00 be sure to be there!

Don’t expect to be fed with enterprise architect models and 5 letter acronyms. Now we need to get down to business. I’ve been in the connected devices area since I built a Lego robot in 1988 sorting geometrical figures. So join me on a interesting tour. Perhaps you would end up with a new business in your mind.

Why should you be there?

There is so much happening in the extremely hyped area called Internet of Things. coming to this workshop you will gain knowledge of the main trends, we will look at some of the amazing startups and we will then dive into the pond of  business models.

Finding the technology is one thing, making a business model to accompany it, is another ballgame. How about sustainability and humanitarian goals are they part of your business model?

In three work passes we will make way through the different models around today and together explore the possibilities. In the last session we will elaborate on the energy efficiency area and solve one of the worlds most complex problem. ”Why isn’t there any good energy efficiency services in appstore?”


Being friend with an Intel Edison and have Secure access over XMPP

Today I started the amazing Intel Edison board to try and use the XMPP-IoT tools to connect it securely over internet and it worked like a charm.

inittial setup and configuring for wifi was done with the instructions from Intel, i used the mac version. It didn’t take long to get i hooked upp to wifi. Activate a password on root for it to enable remote ssh

Upgrade flash image to the latest

 Get the software started

I am using a fork from the python SleekXMPP package. Just wget the SleekXMPP package with the XMPP-IoT extensions from my Github. Python 2.7.3 is  already on the machine. The GPIO package ”mraa” for python is also installed from the beginning very handy.

You need two XMPP accounts on a server somewhere there are many I usually use the swedish Create two accounts so they later can talk to each other.

in the /home/root folder on the Edison do:

wget --no-check-certificate

Start off with blinking the magical led

Go down in the example katalog and start the python Edison example with your xmpp account.

cd SleekXMPP-xep_0323_325/examples/IoT/
python -j -p password -n test_device

should look something like this


Now direct your browser to login with the other xmpp user you created.  Then choose to add a contact and  provide the first account it should just accept and you can start chat with the device. use ”hi”, ”toggle” ”relay=true” and ”?”



If you have a RELAY and a PIR sensor wire them up to the board use GPIO pin 13 for the relay and GPIO 8 for the PIR you can see the PIR sensor changing

Wirediagram_edisonRelay Pir and temp sensor on Edison

Some more interesting articles


The journal logs keep filling up so I changed the journaling.conf

to restart a clean image but I failed totally the reflashed edison keeps all settings

I found dokumentation on the opkg package manager very useful, especially the command to remove a package with dependencies

opkg --force-removal-of-dependent-packages remove <<yourpackage>>

Examples on using GPIO with python on the Edison Aurduion board

Jumpers on the Edison board




Launching #IoTevery9th, count down to #IoTday 9th april 2015

We are launching a count down towards the official

Find more details on #IoTevery9th here

December 9th

workshop done by  Evothings try it out at

January 9th

Using python to connect xmpp devices get your raspberries connected to a network and publish dem globally. Follow the simple example

February 9th

Set up your own disco lights with philips hue integration and  XMPP.  use this easy to set up python integration providing ”hue, sat, bri, st” values to be controlled both over standard xmpp based on  XEP 323 and XEP 325

disco_lightsMars 9th

Setting up and Intel Edison board and the GPIO’s  to be accessed securely over the XMPP network.  The new Intel Edison board with it’s Aurduino compatibility IO is a fantastic platform to create interesting IoT stuff

On 9th of April 2015 the official Global IoT day.

The Global IoTDay is a Internet of Things council initiative and will take place for the 5th year 2015. There will be a lot of action and activities around the world!

Let the alarm chimes ring! Severe security breaches in building automation systems

Swedens largest newspaper Dagens Nyheter just revealed severe security breaches on buildings in Sweden not only apartment buildings but also police offices and other important builings have their systems open to internet.

The problem is that the building automation equipment is more and more sophisticated and unskilled personnel in combination with por design makes it hard to enforce any security.

End users need access to the washing booking systems o you open a web port on the firewall.
Operators need access to a ventilation unit.
Installers don’t know where to put the passwords so they leave the default ones.

In an average building today it is only a poorly configured internet modem/firewall that keeps the systems from being accessed from internet. And when several holes are drilled in it to gain access it is easy to gain access and control many of the systems.

(Links in Swedish)
Internet modems easily crackable
Police office disconnects internet cable
Reporter hacks into school
Reporter hacks a church

Build ing green, Copenhagen

I was invited to the EU project PLEEC to talk in Copenhagen on the Building green fair The program from the PLEEC projekt I spoke on the subject ”Technology driven energy efficiency are innovations the solution”  There were some 40 persons present at the conference and the exhibition

@PLEECproject is on twitter

PLEECproject site

Smart Sustainable Cities Day 2014

At the event Smart sustainable cities day I held a talk on the theme of the cities grids and the need for Internet Of Things in them

The energy landscape is changing rapidly and we are demanding instant access to energy everywhere. IoT is needed in endpoints not only to measure for payment but also to interact with the grid managing peak loads.

Abstract and slides are here
Video from talk
Twitter hashtag discussions

The electric revolution

I was thrilled to see the first formula E electric racing. This is reallay a fantastic trend! The evolution of electrical motors killing the old oil based ones. With clean renewables we will get everything over to electric.

We also see changes in motorcross and motorcycles my son is longing for this

Smart, creative solutions