- Level - Beginner 30%
- Duration - 20-30 min 35%
- Cost - € 75,75 to € 133,69 50%
You need:
- Raspberry Pi 3 or 4
Raspberry Pi 4
Raspberry Pi 3 - Micro SD card, 16GB or more
- Raspberry Pi power supply
Raspberry Pi power supply 4
Raspberry Pi power supply 3 - Raspberry Pi Enclosure
Raspberry Pi housing 4
Raspberry Pi housing 3 - Ethernet cable (optional, but recommended)
- Raspberry Pi imager
Instant download - Advanced IP scanner
- SSH document
- WiFi configuration document (only if you don't have an ethernet connection)
Step 1: Prepare your Raspberry Pi
Now that you've got everything ready, let's start installing Raspbian Lite. Raspbian Lite is the lightest version of Raspbian, the OS for the Raspberry Pi. Insert your micro SD card into your computer via an adapter and start up the Raspberry Pi imager. Allow the Raspberry Pi imager to make adjustments to your system.
What you will see now is the following:
We will first select an Operating System (OS). In this case, Raspbian Lite.
Now that you have selected your OS, it is time to select the correct SD card.
We use a 16GB micro SD card. What you see here may differ based on your micro SD card.
If you have selected your micro SD card you will arrive at the next screen.
You will now go through the next three screens. When the writing process is finished, you can close the imager. Then remove the micro SD card.
Step 2: Set up the Raspberry Pi
Now that you have Raspbian Lite installed on your micro SD card, it is time to make some adjustments to the settings. Be the first to insert the micro SD card back into the computer. This process consists of a step that you only need to perform if you do not have an Ethernet connection. The second step is necessary for both an Ethernet connection and a wireless connection.
We are going to work in the “boot” disk. In this you will find something similar to the following photo.
What we are going to do now is edit the ”wpa_supplicant.conf” 'and add it to the ”boot” disk. You should have downloaded this file from supplies. If not, look below this text. Open the document with notepad. You should now see the following text. If not, copy the following text.
ctrl_interface = DIR = / var / run / wpa_suppliant GROUP = netdev
update_config = 1
country = NL
network = {
ssid = "Your_Network_Name"
psk = "Your_Network_Password"
key_mgmt = WPA-PSK
}
Now change “Your_Network_Name” and “Your_Network_Password” with your WiFi's name and password.
In our case:
Name: Electronics For You
Password: Electronics @ 123
Here you see an example of the end result.
ctrl_interface = DIR = / var / run / wpa_suppliant GROUP = netdev
update_config = 1
country = NL
network = {
ssid = "Electronics For You"
psk = ”Electronics @ 1234 ″
key_mgmt = WPA-PSK
}
If you have edited this document and saved it to the "boot" disk you can go to the next step.
Step 2.2: Configure remote approach
Go to the windows explorer and then to this computer. Now click on the hard drive named: ”boot”. And paste the following file here: ssh
You are now ready to install domoticz. Remove the micro SD card from your PC and insert the micro SD card into your Raspberry Pi. Now connect the Raspberry Pi to your power supply and possibly with an ethernet cable.
Step 3: Install Domoticz
We are now going to connect to our Raspberry pi. This process consists of two steps. Finding the IP address of the Raspberry and connecting and installing domoticz.
Then you will see something similar to the photo on the right.
Search for IPv4 Address. Here you will find your IP address. This is important for finding the IP address of your Raspberry Pi.
Your IP address will consist of xxxx, in our case 10.120.0.166.
Open now advanced IP scanner, a preparation program.
You will see this now. In the circled line type xxx0-254, so in our case 10.120.0.0-254.
Then click Scan.
You will now see a list of Device Names, IP addresses, Manufacturers and MAC addresses. Unfortunately, we cannot see a manufacturer or name with the Raspberry Pi. So we are going to search by MAC address. A MAC address consists of XX: XX: XX: XX: XX: XX. With a Raspberry Pi this always starts with DC: A6: 32: or B8: 27: EB:. Now find such a MAC address and see which IP address is listed. In our case '10.120.0.154 .XNUMX '.
Step 3.2: Connecting to your Raspberry Pi
Go back to the windows search bar and type 'cmd'. Click on enter.
You will now see the following screen.
Now type 'ssh pi @ xxxx', where xxxx is the IP address of your Raspberry Pi. So in our case it will be 'ssh pi@10.120.0.154'. After entering, click enter.
You will be asked for a password. The default password is 'raspberry'. Enter this password. While typing passwords, no characters will appear. This is normal. Click enter after entering your password.
You are now logged in to your Raspberry Pi. The first thing we're going to do is create a new password so that not everyone can access your Raspberry Pi. Type 'passwd' and click enter. Type your current password and the new password twice. Click enter after each password.
You now have a secure Raspberry Pi accessible only to you. We still have to perform a number of steps until the domoticz is ready for use. Type the command 'sudo apt-get update' and click enter. Wait for the process to finish. This command updates your Raspberry Pi.
Now that we have prepared everything, the time has finally come. We are going to install domoticz. Type the command 'sudo su'. Then type
'curl -sSL install.domoticz.com | sudo bash". Click on enter.
A number of configurable settings will then appear. We recommend the default settings, but if you have already installed OpenMediaVault change port 8080 to 8888. You can navigate through the steps with enter.
Step 4: The web interface
To connect to the web interface, go in your web browser to the IP address of your Raspberry Pi, xxx.xxx.xxx.xxx, and then type “:” and the port you have chosen. Should be 8080 or 8888. So in our case we go to http://10.120.0.154:8080 or http://10.120.0.154:8888
I bought the domiticz kit from you. unfortunately I can't get into the raspberry with no way. I emailed you, but I have not had any response. the ssh pi @ command times out on port 22
what to do?
Hi Rob,
Curious that you have not received an answer to your email? We have to find out this. Could you send the email to simon@elektronicavoorjou.nl? Then I'll pick it up.
Yours faithfully,
Simon
Electronics For You
I follow everything super but can not log in with the ip address this site is not safe.
Hello Theo,
Here you can find more information about HTTPS & SSL.
https://www.domoticz.com/wiki/Native_HTTPS_/_SSL_support
Good luck with the project!