install ludolph xmpp bot [raspberrypi]

based on:
https://github.com/erigones/Ludolph/wiki/How-to-install-and-configure-Ludolph
https://pypi.python.org/pypi/ludolph

#sudo pip install ludolph

install dependencies:
sudo apt-get install python-pip
sudo pip install --upgrade pip

install ludolph:
sudo pip install https://github.com/erigones/ludolph/zipball/master

create a ludolph.cfg file:
sudo cp /usr/local/lib/python2.7/dist-packages/ludolph/ludolph.cfg.example /etc/ludolph.cfg

create a ludolph init.d file:
sudo wget -O /etc/init.d/ludolph https://raw.github.com/erigones/Ludolph/master/init.d/ludolph.debian
sudo chmod +x /etc/init.d/ludolph

edit the /etc/ludolph.cfg file:
sudo nano /etc/ludolph.cfg

in [global]:
change daemon to true:
daemon = true

remove the “#” infront of pidfile
pidfile = /var/run/ludolph/ludolph.pid

in [xmpp]:
change username to your username
change password to your password

create a folder for the pid file and change the owner:
sudo mkdir /var/run/ludolph/
sudo chown xxfreddyxx:xxfreddyxx /var/run/ludolph/

run it:
ludolph
or:
/usr/local/bin/ludolph

in case of problems check the logfile:
cat /tmp/ludolph.log

example commands to test the bot:
help
os-uptime
/ping

what is this webadress for:
http://127.0.0.1:8922/

check the installed librarys:
cd /usr/local/lib/python2.7/dist-packages/ludolph && ls

remove ludolph:
sudo pip uninstall ludolph
sudo pip uninstall ludolph_zabbix
sudo pip uninstall bottle
sudo pip uninstall dnspython
sudo pip uninstall zabbix_api_erigones
sudo pip uninstall sleekxmpp

other bots:
http://sleekxmpp.com/getting_started/echobot.html #ludolph is based on sleekxmpp
https://github.com/fritzy/SleekXMPP
sudo pip install sleekxmpp
wget https://gist.githubusercontent.com/legastero/4497613/raw/f7a03567b8551ccc5fef17d2943baac6dbb4ee61/send_image.py
chmod +x send_image.py
python ./send_image.py

https://github.com/errbotio/errbot/ #based on sleekxmpp , active developed
https://pypi.python.org/pypi/errbot/3.2.2
sudo pip install errbot
mkdir errbot; cd errbot
errbot --init
errbot

https://pypi.python.org/pypi/whistler #based on sleekxmpp, easy commands
https://github.com/ajdiaz/whistler
http://ajdiaz.me/whistler/
sudo pip install whistler
wget https://raw.githubusercontent.com/ajdiaz/whistler/master/config/example.conf
whistler example.conf

https://bitbucket.org/Flandoo/mumblecop #mumble bot

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s