This tutorial is for usage of Collaborative-IoT+House-of-IoT which ignores the setup of the HOI-WebClient. To get instructions on how to setup the Collaborative-IoT portion of the system, please visit the collaborative Org.
This tutorial is for no-sql usage.
You need to setup one ExternalController and one GeneralServer for the heart of the system.
1. The admin password for your server ("apw_hoi_gs").
2. The regular password for your server ("rpw_hoi_gs").
3. The super admin password for your server ("sapw_hoi_gs").
4. The twilio account sid for your server ("hoi_t_account_sid").
5. The twilio auth token for your server ("hoi_t_auth_token").
6. The twilio phone number for your server ("hoi_t_phone_number").
7. The password to connect to your external controller instance ("hoi_exc_s_pw").
{
"disconnecting": false, -> Does disconnecting require admin auth?
"activating": true, -> Does activating require admin auth?
"deactivating": false, -> Does deactivating require admin auth?
"viewing": true, -> Does viewing require admin auth?
"host": "localhost", -> Host
"port": 50888, -> Port
"using_sql" :false, -> SQL usage? Remember this tutorial isn't for SQL usage!
"device_specific":true, -> Device specific actions requires authentication?
"external_controller_location":"wss://localhost:50224", -> Location of your external controller
"relations":true} -> Adding/removing relations requires admin authenticaion(recommended to be true)
- Clone the repo(
git clone https://github.com/House-of-IoT/HOI-GeneralServer
) and Clone the repo(https://github.com/House-of-IoT/HOI.py
) - setup your config and env variables(explained above)
- Make sure you have python installed https://www.python.org/ .
- Install HOI.py in the runtime by going into
HOI.py
and runningpython setup.py install
- Make sure you install the requirements.txt file using python.
- Start the server!
python main.py
/python3 main.py
1. The regular password to connect to the general server("hoi_mdc_pw")
NOTE:this password should be the same as the password above for the general server("rpw_hoi_gs")
NOTE:this password is needed only to read the passive data and execute relations
2. The admin password to connect to the general server("hoi_exc_a_pw")
NOTE:this password should be the same as the password above for the general server("apw_hoi_gs")
NOTE:this password is used to authenticate as an admin if the server requires admin auth for action execution.
3. The password to connect to the external controller("hoi_exc_s_pw")
This file is for connecting to the GeneralServer.
{"host": "localhost", -> Host
"port": 50888, -> Port
"name": "ExternalController", -> The name that your external controller will use to connect to the general server. Should never change(unless you know what you are doing).
"type": "non-bot"} -> The type that your external controller will use to connect to the general server. Should never change.
This file holds hosting information for the external controller to accept connections.
{
"host": "127.0.0.1", -> Host
"port": 50224} -> Port
- Clone the repo(
git clone https://github.com/House-of-IoT/ExternalController
) - Setup the config files mentioned above
- Make sure you have python installed https://www.python.org/.
- Make sure you install the requirements.txt file using python.
- run
python main.py
/python3 main.py
Now you should have both of these components running, now please check the complete setup for the collaborative portion of the system to setup the web interface/clubhouse esque features. https://github.com/Collaborative-IoT/Docs/blob/main/CompleteSetup.MD.