Domoticz part 2 – configuration

Domoticz part 2 – configuration

Hi Readers,

In part 1 I have described domoticz installation process now let’s make the configuration.

First you need to connect to your domoticz server (windows, linux or IOS):

http://:8080/#/Hardware

First window you shall see:

DomoticzHomepage

If you this page this is good. Domoticz has successfully installed. Now you need to add Hardware (type of devices you have) and Devices (physical or virtual devices).

Let’s add first hardware, for me it was temperature sensor (Thermometer) as it is not any know device like e.g. TV but my own prototype board with nodemcu and DS18B20 temperature sensor.

DomoticzAddDummyDevice

After adding this hardware you will see this:

DomoticzDummyDeviceView

Probably you have noticed ‘Create Virtual Sensors’ button. When you will click it you will create virtual sensor which will be feeding data to domoticz server. For me it was my nodemcu DS18B20 sensor and power supply adapter.

IMG_20160515_202211

After that you should see in device section newly added device:

DomoticzDummyDeviceView2

What is important here is name ‘ThermometerDS18B20’ which we will need to set on our nodemcu/esp8266 with EspEasy on board (last week I have published post with tutorial how to install EspEasy on our ESP8266/nodemcu boards) or any other device configuration. As this is device ‘login’ mark is this name. Configuration of my nodemcu (+DS18B20) device which uses EspEasy:

DomoticzDummyTermometherView

My network (router) SSID and key, my controller (Raspberry PI) ip address and port number we have specified in my last post but default is 8080 and you can always use it.

EspEasyDeviceConfig

I have also configured my ‘device’ inside my device (nodemcu with ESPEasy) configuration. As you can see my device is DS18B20 sensor which I have connected on GPIO-2.

Untitled Sketch_bb

Have fun & good luck!

12924512_1729289440624707_7066086451943892407_n

Github repository: https://goo.gl/ii9xsz

Be positive and stay calm!

Cheers,

Radek

Domoticz part 1 – installation

Domoticz part 1 – installation

Hi Readers,

Domoticz has prepared it’s server version for all popular operation systems. Also installation process is very easy.

 

Windows

Windows installation is easy and I will not even try to tell you more about it as I am sure you know everything you need to do it.

Download: http://releases.domoticz.com/releases/release/domoticz_windows_x86.zip

 

Raspberry PI

Linux is also not so hard. I will put each command one by one with description when needed.

First you should do are three classic commands:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install build-essential -y

sudo reboot

Then you will need to install necessary libraries, you can probably have some of them (this is one line whole command which need to be copied to your terminal:

sudo apt-get install nano cmake libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev curl libcurl4-openssl-dev libusb-dev zlib1g-dev libssl-dev git -y

sudo reboot

Let’s download and unpack domoticz for linux:

mkdir Domoticz

cd Domoticz

wget http://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz

tar xvfz domoticz_linux_armv7l.tgz

When everything is ready now we can add it to our startup list:

sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults

Edit the startup script, esp. point DAEMON to the installation folder (but default settings should be enough):

sudo nano /etc/init.d/domoticz.sh
DAEMON=/home/YOURUSERNAME/domoticz/domoticz

If you want to use another web interface port change the ‘8080’ in: DAEMON_ARGS="$DAEMON_ARGS -www 8080" to your own port.

 

Control commands

You can now start/stop/restart domoticz with:
sudo /etc/init.d/domoticz.sh start to start Domoticz
sudo /etc/init.d/domoticz.sh stop to stop Domoticz
sudo /etc/init.d/domoticz.sh restart to restart Domoticz
sudo /etc/init.d/domoticz.sh status to check the status of Domoticz (running/not running)

 

Now you can start domoticz with:

sudo /etc/init.d/domoticz.sh start to start Domoticz

You should see:

pi@raspberrypi:~ $ sudo /etc/init.d/domoticz.sh start
[ ok ] Starting domoticz.sh (via systemctl): domoticz.service.

 

When domoticz have started then you can connect to it and make the configuration:

http://<ip_address&gt;:8080/#/Dashboard

 

But in my next post you will be able to find more about configuration is not hard but it wasn’t so obvious for me. Good luck!

12592264_1726425854244399_7763149214522641008_n

 

Github repository: https://goo.gl/ii9xsz

Be positive and stay calm!

Cheers,

Radek