This is an old revision of the document!
Table of Contents
Getting Started
Configuring AvaDroid
Pre Configure
In your terminal cd ~/avadroid/<name>/bot/config, where <name> is the folder named after your AvaDroid. Edit config.json .. nano config.json
Find the section that looks like:
"Corrade": {
"Address": "corrade",
"Port": 1883,
"NPort": 54377,
"Group": "group",
"Password": "password",
"Topic": "topic"
},
Change “Address”: “corrade” to “Address”: “<IP Number of the Host Docker is on>”
Example: "Address": "192.168.1.10" Note the quotation marks as this is a string variable.
Change “Port”: 1883 to “Port”: <Port Number mapped in compose.yml>
Example: "Port": 17001 the MQTT Port. Note NO quotation marks as this is an Integer variable.
Change “NPort”: 54377 to “NPort”: <Port Number mapped in compose.yml>
Example: "NPort": 19001 the Nucleus Port. Note NO quotation marks as this is an Integer variable.
Change “Group”: “group” to “Group”: “<The group you create in Avatar configuration>”
Example: You created the group The_Mob and invited your AvaDroid Avatar to it so, the change will be "Group": "The_Mob" Note the quotation marks as this is a string variable.
Change “Password”: “password” to “Password”: “<Password you set in Corrade Setup>”
Example: "Password": "MyP@ssW0rd1" if you allocated MyP@ssW0rd1 as your your super secret password. Note the quotation marks as this is a string variable.
Change “Topic”: “topic” to “Topic”: “<The group you create in Avatar configuration>/<Password you set in Corrade Setup>”
Example: as above "Topic": "The_Mob/MyP@ssW0rd1" Note the "/" between group and password. Note the quotation marks as this is a string variable. Note there is no "," at the end of this line.
So, using the example the JSON code after you have edited it:
"Corrade": {
"Address": "192.168.1.10",
"Port": 17001,
"NPort": 19001,
"Group": "The_Mob",
"Password": "MyP@ssW0rd1",
"Topic": "The_Mob/MyP@ssW0rd1"
},
Now save the config.json file, in nano that is CNTL x, y, <enter>. Further configuration will now happen in the GUI.
Return to the avadroid/<name> directory (folder) by in the terminal entering cd .. (back to bot) then cd .. back to <name>. You should be back in /home/<your user>/avadroid/<name>. do a pwd command in terminal to confirm.
