User Tools

Site Tools


code:vxmppb:install:git

This is an old revision of the document!


How To Install vXMPPb using GIT

..


I say this script has SMS on the NPM page. I achieve this using a great service called Cheogram. Check them out! <html> &#128513;</html> Message me on xmpp for a free month!

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

See here


Scripts for TuyaAPI will be posted in a separate repository

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:

  1. imperial (F)
  2. 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)
1)
Multi-device coming…soon…ish
code/vxmppb/install/git.1651367305.txt.gz · Last modified: 2022/04/30 21:08 by stephen