Search
Search titles only
By:
Search titles only
By:
Home
Shop
Forums
New posts
Search forums
What's new
New posts
New resources
New profile posts
Latest activity
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Home
Forums
Community
General Discussion
How To Install Domoticz On Raspberry Pi
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="cielopearly" data-source="post: 854" data-attributes="member: 4"><p><strong>What is Domoticz?</strong></p><p>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.</p><p></p><p><strong>Install</strong></p><p></p><ol> <li data-xf-list-type="ol">Use Class 10 SD card. ( microsd for raspberry pi )</li> <li data-xf-list-type="ol">Are you using Class 10 SD card? This is important!</li> <li data-xf-list-type="ol">Download the Domoticz SD image for your spare time. <a href="http://sourceforge.net/projects/domoticz/files/" target="_blank">http://sourceforge.net/projects/domoticz/files/ 1</a></li> <li data-xf-list-type="ol">Unzip. SD image is included.</li> <li data-xf-list-type="ol">Write the image to the SD card.</li> <li data-xf-list-type="ol">Turn off the Raspberry Pi</li> <li data-xf-list-type="ol">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.</li> </ol><p><strong>Install Domoticz with the following command:</strong></p><p></p><p>sudo curl -L https: //install .domoticz.com | sudo bash</p><p></p><p>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:</p><p>[ATTACH=full]407[/ATTACH]</p><p></p><p>Restart the system with command:</p><p></p><p>sudo reboot</p><p></p><p><strong>Remove unnecessary services</strong></p><p>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:</p><p></p><p>sudo update-rc.d readKey remove</p><p></p><p>Remove service mongoose with command:</p><p></p><p>sudo update-rc.d mongoose remove</p><p></p><p>Restart the system with command:</p><p></p><p>sudo reboot</p><p></p><p><strong>Start Domoticz automatically</strong></p><p>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:</p><p></p><p>cd domoticz</p><p></p><p>sudo cp domoticz.sh /etc/init .d</p><p></p><p>sudo chmod +x /etc/init .d /domoticz .sh</p><p></p><p>sudo update-rc.d domoticz.sh defaults</p><p></p><p>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.</p><p></p><p>sudo nano /etc/init .d /domoticz .sh</p><p></p><p>USERNAME=pi</p><p></p><p>DAEMON= /home/ $USERNAME /domoticz/ $NAME</p><p></p><p>DAEMON_ARGS= "-daemon -www 8080"</p><p></p><p>If you want to use a different port number for the web interface, adjust the port number.</p><p></p><p>Start Domoticz with the command:</p><p></p><p>sudo service domoticz.sh start</p><p></p><p>Now you can connect to Domoticz via a browser and see if it runs via HTTP or HTTPS (Secure):</p><p></p><p>http: //ipadres :8080</p><p></p><p>https: //ipadres :443</p><p></p><p>(ipadres is the IP address of the Raspberry Pi )</p><p>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.</p><p>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 :</p><p></p><p>cd domoticz</p><p></p><p>. /updaterelease</p><p></p><p>Restart the Raspberry Pi again to see if the automatic startup of Domoticz works properly.</p><p></p><p>sudo reboot</p><p></p><p><strong>Approach Domoticz</strong></p><p>Now that the server is ready, we can access it from any web browser by going to the URL below</p><p></p><p>http://IP_DOMOTICZ:8080</p></blockquote><p></p>
[QUOTE="cielopearly, post: 854, member: 4"] [B]What is Domoticz?[/B] 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. [B]Install[/B] [LIST=1] [*]Use Class 10 SD card. ( microsd for raspberry pi ) [*]Are you using Class 10 SD card? This is important! [*]Download the Domoticz SD image for your spare time. [URL='http://sourceforge.net/projects/domoticz/files/']http://sourceforge.net/projects/domoticz/files/ 1[/URL] [*]Unzip. SD image is included. [*]Write the image to the SD card. [*]Turn off the Raspberry Pi [*]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. [/LIST] [B]Install Domoticz with the following command:[/B] 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: [ATTACH type="full"]407[/ATTACH] Restart the system with command: sudo reboot [B]Remove unnecessary services[/B] 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 [B]Start Domoticz automatically[/B] 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 [B]Approach Domoticz[/B] Now that the server is ready, we can access it from any web browser by going to the URL below http://IP_DOMOTICZ:8080 [/QUOTE]
Verification
Post reply
Home
Forums
Community
General Discussion
How To Install Domoticz On Raspberry Pi
Top
Bottom