This is an old revision of the document!
Table of Contents
How To Install vXMPPb using GIT
Clone vXMPPb
git clone https://git.vanderwarker.family/vxmppb/vxmppb.git
Change To Directory
cd vxmppb/
Install!
npm i
How To Configure vXMPPb
Backup Template
cp config.ini.dist config.ini
Edit Details
nano config.ini
General Bot Configuration
tuya_name
Name of device to control 1)
tuya_status_url
URL to check lights status
tuya_toggle_url
URL to toggle lights status
user_jid
This person will receive a message when the bot is online, as well as ping requests.
All other users not included in this list will get install instrucions (This page…)
user_name
This will eventually be pulled from the users vCard. For now, this will be used in the ping command. It may also be included in any other future commands where the bots admin's name must be displayed.
weather_api_key
Sign up <html><a href=“https://home.openweathermap.org/users/sign_up”>here</a></html>
weather_units
By default, all calls are returned with Kelvin. To chose your local unit use the following options:
- imperial (F)
- metric (C)
You're done!!!
Now, RUN!
nodejs index.js
To keep this script running in the background you can use screen or tmux! If you don't have them installed, just run it in the background using this command;
nohup nodejs index.js > /dev/null 2>&1 & echo $! > /tmp/vxmppb.pid
To kill the bot, simply type
kill $(cat /tmp/vxmppb.pid)