-
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>:<PORTe.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>:<PORTe.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.