JabberXMPP client setting procedure for LiV Pi

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JabberXMPP client setting procedure for LiV Pi

AlfredC
Administrator
This post was updated on .
If you already use a JabberXMPP client you may skip the few links below.

If you never used XMPP before, here are a couple of links that will help you get the basic idea.
http://docs.tigase.org/tigase-server/5.2.2/user_guide/html_chunk/_jabber_xmpp_introduction.html
https://en.wikipedia.org/wiki/XMPP

So, to put it in a nutshell: XMPP/Jabber is an Instant Messaging technology: users have accounts on servers, servers are connected to each other, users can send/receive messages to/from any other users connected to the federated network. Anyone can create a free XMPP/Jabber account on one of the Jabber servers on the Jabber network (operated by volunteers) and talk free of charge with other people with accounts on the Jabber network. Similar concept with #IRC network. Users have lists of buddies, can check their buddies presence status, and can chat with available buddies.

LiV Pi provides you with a XMPP client that makes LiV behave like one of your buddies. Here is the setting procedure:

1) Create two Jabber accounts: one for you, the other one for LiV. If you already use a Jabber client (Pidgin on Win, Messages on Mac, etc...) to chat to your buddies, you only need to create one account for LiV.

This is the Jabber server I use when I register Jabber accounts for LiV:https://jabber.hot-chilli.net/de/jabberhosting/ . I personally like the jabb3r.org domain. If you use this server, you will create two accounts, something like:
JohnDoe@jabb3r.org and JohnDoe_LivPi@jabb3r.org (pick up your own names). You will also choose passwords for the two accounts. There is no email confirmation for the account creation, the email field on the registration page is used apparently as a secondary ID - in case you want to recover the password at later time. You don't have to register your accounts on this server, any server here: https://xmpp.net/directory.php
should do. Just pay attention at the security level of the server you choose: it's a good idea to look for a grade A server.

2) Now it's time to check the two accounts. Download and install an instant messaging client that supports Jabber/XMPP. Here is a list of such clients and the platforms they can run on: https://xmpp.org/xmpp-software/clients/
Start you client and create your account using the credentials you registered at the previous step (e.g. JohnDoe username/password). With this account, connect to Jabber network and send an invitation to the LiVPI account then log out. In the same client, create a LiV Pi account using the credentials for LiV_Pi (e.g. JohnDoe_LiVPi username/password) and connect to Jabber network. You should now see the invite you just sent (as user JohnDoe) waiting for you. Accept the invite and exit the client. Now you and LiV are buddies and can talk to each other. Just to make sure everything works fine, use two devices (e.g computer and cell phone) to do a quick test: open your Jabber client app on each of these devices and log in as yourself, respectively LiV. Send a few messages from one account to the other to make sure everything is OK.

3) Now is the time to set up the Jabber client on LiV Pi. Open "~/liv/liXMPP/livXMPP.config" file and add the credentials for your LiV account (username/password) in the "from" settings. Enter your Jabber username (no password needed!) in the "to" settings. Save the file. Start livXMPP client with "sudo python livXMPP.py" or shutdown LiV and powercycle. Go to your Jabber client app (you are logged in as yourself). In the list of buddies, you should see LiV with status "AVAILABLE". Now you can talk to LiV.


Supported commands are listed in the XMPP user manual on this page:
http://www.livpi.com/liv-pi-instant-messaging.html

At the bottom at the page you can see a movie showing a user talking to LiV RPi from a Message client (Mac OS).