Follow by Email

Search This Blog

Install Domoticz on a Raspberry Pi

domoticz a smart home control system for Raspberry Pi, simple steps to install it
Share it:
Domoticz
1. What is Domoticz? 
This is an open source multi-platform software focused on creating a smart home control system. It supports a large number of different devices from different vendors.

Install
1. Use Class 10 SD card. ( microsd for raspberry pi )
2. Are you using Class 10 SD card? This is important!
3. Download the Domoticz SD image for your spare time. http://sourceforge.net/projects/domoticz/files/
4. Unzip. SD image is included.
5. Write the image to the SD card.
6. Turn off the Raspberry Pi
7. Insert an SD card into your pie and connect a mouse, keyboard, Ethernet cable and monitor. Finally, connect to a micro USB power supply. This action will turn on and launch your raspberry pie.
Install Domoticz with the following command:
sudo curl -L https://install.domoticz.com | sudo bash
After the software has been installed, the installation will start and a number of questions will be asked. Answer this and then the installation will be completed. At the end there is an overview:

domoticz raspberry pi
Restart the system with command:
sudo reboot
Remove unnecessary services
We are now going to remove unnecessary services such as readKey (uses a lot of CPU) and mongoose (blocks port 443 in case you want to use SSL). Reconnect to PuTTY and log in. Remove the readKey service with command:
sudo update-rc.d readKey remove
Remove service mongoose with command:
sudo update-rc.d mongoose remove
Restart the system with command:
sudo reboot
Start Domoticz automatically
To ensure that Domoticz data always starts up automatically, we must make a number of changes to the system. Do this with the following commands:
cd domoticz
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
The next step is to adjust the startup script and adjust the USERNAM, DAEMON and DAEMON_ARGS parameters, so that they match your settings. By default, Domoticz will be installed in '/ home / pi / domoticz' with port 8080. If you have deviated from this (for example, a different path or port number), you can adjust this at this location. If you want everything to be 'standard', you can skip the step below.
sudo nano /etc/init.d/domoticz.sh

USERNAME=pi
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8080"
If you want to use a different port number for the web interface, adjust the port number.

Start Domoticz with the command:
sudo service domoticz.sh start
Now you can connect to Domoticz via a browser and see if it runs via HTTP or HTTPS (Secure):
http://ipadres:8080
https://ipadres:443
(ipadres is the IP address of the  Raspberry Pi )
After Domoticz is running, it is wise to see if an update is available. You do this by going to "Setup - Check for Updates" within the Domoticz software.
If this is not possible due to the reasons for this, then this can still be done via the console (SSH). To do this, execute the following commands after you have logged in to the Raspberry Pi via SSH :
cd domoticz
./updaterelease
Restart the Raspberry Pi again to see if the automatic startup of Domoticz works properly.
sudo reboot
Approach Domoticz
Now that the server is ready, we can access it from any web browser by going to the URL below
http://IP_DOMOTICZ:8080
domoticz raspberry pi
Share it:

Raspberry Pi

Post A Comment:

0 comments: