Skip to content

Post Installation Instruction

Aditya Nugur edited this page Jun 30, 2017 · 8 revisions

WiKiHome | Installation Guide | Get Started | Developer Resources | BEMOSS™ Team


Post Installation Instruction

Hang on there! Just one last step!

To make sure BEMOSS™ can reach to the database, the database needs to be configured. Please follow the steps below to configure Postgresql database.

Step 1 - Start BEMOSS™ Launcher Wizard

If you forget about how to start the BEMOSS™ Launcher Wizard, please review it on this page.

Step 2 - Open Configure File

Click the Advanced Setting button on the BEMOSS™ Launcher Wizard Main Panel, the advanced settings panel will appear. Click the second tab, which shows Database, you will see a panel like the picture below. Click the Open Configure File button, two Postgresql configure files will be open automatically.

System password will be asked, just type in your Ubuntu password and click confirm

Trouble-shooting: If you do not have both configure files open, it is highly possible your system does not have 'gedit' and 'leafpad', which are two common text editors in the Ubuntu system. To solve the problem, open a terminal and type one of the following codes:
$ sudo apt-get install gedit
$ sudo apt-get install leafpad
After you install either gedit or leafpad, click the Open Configure File button again.
This is how configure files look like in our test system (Yours may be different)

Step 3 - Modify Configure Files

Both of the configure files should be updated using the following steps:

1. postgresql.conf:
Please find line 59, delete the # symbol at the beginning of line, replace 'localhost' into a star mark '*', as shown below.

Change from:
#listen_addresses = 'localhost' # what IP address(es) to listen on;
To:
listen_addresses = '*' # what IP address(es) to listen on;

2. pg_hba.conf:
Find the line 92, copy it and paste it as line 93, then change the IP of line 93 from '127.0.0.1' to your local IP. For example, if your IP address is '192.168.10.62', please make the change below.
Change from:

# IPv4 local connections:
host    all             all             127.0.0.1/32            md5

To:

# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
host    all             all             192.168.10.62/32        md5

Make sure your changes are saved, then close these configure files.

Step 4 - Configure BEMOSS IP Address

Open the multinode_data.json file inside your BEMOSS™ main folder, as highlighted in the picture below.

By typing $ gedit #your_bemoss_main_folder_path/multinode_data.json in terminal under home directory, please remember to replace #your_bemoss_main_folder_path in your bemoss main folder directory.

Change the ip (highlighted in yellow) inside "address" line into your system's ip address, as shown below.

Step 5 - Configure WattStopper BACnet Device (Optional)

If you have WattStopper load controllers, please follow the steps below to allow BEMOSS™ connection with such devices. Open the "wattstopper_config.csv" located in DeviceAPI/Bacnetdata folder, as shown below.

A Wattstopper controller can be configured with any number of devices, assign a unique number preferably serially to each wattstopper device connected behind watt stopper controller and fill the Device Number column. Depending upon number of devices inserted unique device numbers added, BEMOSS&trade can discover these devices.;


Presently, BEMOSS™ supports LMLS-400(Light sensor), LMRC-211(Lighting load), LMPL-201(Wattstopper Plug Load) models. Hence, the entry can be any of the devices. Corresponding to each Device Number add readable properties into Reference point names in capital letters. In the case of the Lighting load, readable properties are DIMMER and VOLTAGE, whereas in the case of Plug load readable properties are named RELAY and in the case of Light sensor readable point is named ILLUMINATION. Hence, each device has the number of rows equal to the number of readable properties. Finally, update the index column as property instance obtained from object list generated by the watt stopper.

Step 6 - Configure Modbus Device (Optional)

If you have Modbus devices, please follow the instruction below to allow BEMOSS™ to connect to such devices. Open the "modbus_devices.csv" file located in DeviceAPI.device_details folder, as shown below.
Fill in the Slave_id, ModelName, VendorName and MacAddress columns according to the following instruction.

Any Modbus slave device within the network is assigned a unique slave ID which is configured using DIP Switches or vendor specific configure pages. Slave_id column should have slave IDs of the devices present in the network. ModelName, VendorName and MacAddress are device specific details of the mentioned slave id. These are typically the model, vendor, mac details of the device which can be any string of characters.BEMOSS™ requires model name and mac address to be unique for each entry. Mac address can be any unique number which appears to be specific to the device such as serial number or product number found labelled on top of the device. This can be any value but should be unique.

Step 7 - Configure an email service (Optional)

Please follow the instruction here to configure your email service. Configuring an email service will enable your BEMOSS™ to send alerts via email and SMS.

Step 8 - Configure a weather service (Optional)

Please follow the instruction here to configure your weather service. Setting up weather service will enable your BEMOSS™ to receive weather data from Weather Underground.

Step 9 - Running BEMOSS™ in a multi-node environment (Optional)

Please follow the instruction here to configure your BEMOSS™ to run in a multi-node environment.

Step 10 - Reboot system & Finish

Now, you are almost there! Please reboot your system again for database to reconfigure itself, before complete the BEMOSS™ installation!
After the system restart, please go to Get started to see how to start using BEMOSS™!


[Back to WikiHome]

Clone this wiki locally