-
Notifications
You must be signed in to change notification settings - Fork 3
Home
NxBot requires Nx Witness as well as Telegram. The following sections will serve to aide in setting up these services to work with NxBot.
There are a handful of config/environment variables required to run NxBot. Here you'll find the necessary information to obtain the appropriate values to get up and running.
NxBot can be configured to run using environment variables (recommended under Docker deployment), or by writing a config.yml, located in the same directory as the nxbot.exe (or no .exe for non-Windows) binary.
Example: config.yml
-
NX_IP_PORT(env) /nx_ip_port(yaml)Format:
<IP>:<PORT>e.g.192.168.1.2:7001Your Nx server's local IP address. The standard port is
7001. -
NX_USER(env) /nx_user(yaml)The username of the Nx account. This can be a dedicated account with appropriate access or the account you already use to access Nx.
-
NX_PASS(env) /nx_pass(yaml)The password for the above Nx account.
-
HTTP_IP_PORT(env) /http_ip_port(yaml)Format:
<IP>:<PORT>e.g.:7001(omitting IP binds to all network interfaces)An IP and port combination used for the built-in NxBot web-server used for motion-event actions.
-
TG_TOKEN(env) /tg_token(yaml)The token issued by Telegram for access to their HTTP API. You can learn more on how to create a Telegram bot and retrieve the token on the dedicated Wiki page: Telegram: Creating Your Bot.
-
TG_USER_WHITELIST(env) /tg_user_whitelist(yaml)Format: (env)
<id>,<id>...e.g.123456789,987654321
Format: (yaml)[<id>,<id>...]e.g.[123456789,987654321]The user ID or multiple user IDs (comma separated when multiple) of the accounts allowed to communicate with the bot. It's fine to only list one user ID, but be sure to use the
[](square-brackets) when using the yaml config.To learn how to get your Telegram ID, or the ID of others, visit the dedicated Wiki page: Telegram: Getting User IDs.