0

members

Easy Raspberry basics: Project 32a Raspberry PI 3 model B board - How to install IO Broker on your Raspbe

of Acoptex.com in Raspberry Pi 3

Raspberry basics: Project 32a

Project name: Raspberry PI 3 model B board - How to install IO Broker on your Raspberry Pi?

Tags: Raspberry, Raspberry PI 3 model B boardHow to install IO Broker on your Raspberry Pi, IO Broker

Attachments: None

In this project, you needed these parts (Dear visitors. You can support our project buy clicking on the links of parts and buying them or donate us to keep this website alive. Thank you):

1.Raspberry PI 3 model B or B+ 1 pc

2. Micro SD card with NOOBS and SD card adapter 1 pc

3. Micro USB power supply (2.1 A, max 2.5 A) 1 pc

4. USB keyboard 1 pc

5. USB mouse 1 pc

6. TV or PC monitor 1 pc

7. HDMI cable 1 pc

General

We will learn how to install IO Broker on Raspberry Pi.

What is IO Broker?


  • ioBroker is an IoT platform.
  • Full integration of your equipment with ioBroker.
  • The ability to manage your IoT system as one intelligent, robust project.
  • Unique graphics and beautiful interfaces for you.
  • Use one of the best software products for managing your automation system on premise.
  • ioBroker offers you Smart Home as a Service. (Coming soon)
  • Easy setup - JavaScript node.js
  • Runs on Windows, Linux, OSX, Raspberry Pi (2,3,3 B+), ARM or PC
  • Social support - dynamically growing community.

Anyone familiar with home automation will sooner or later discover that no system is perfect. Each system has its strengths and weaknesses. ioBroker is cross-platform. It combines the best of everything into a whole. For example, you can connect the wireless components of Homematic and the wired systems of KNX. Also inexpensive OneWire sensors and wireless modules from Z-Wave can be integrated. Arduino-bound sensors can also be integrated.

If there is a bottleneck in a system with a central station or base station (eg exceeding the duty cycle for radio modules), another central station can be connected. ioBroker is scalable. It can combine any number of systems with any number of control panels into a complete system.

IoBroker makes it easier for the user to get started in home automation. Because of its great variability one is prepared for future systems and can expand his home automation without worrying about having "put on the wrong horse" or invested in the wrong system. The conversion or parallel operation is possible at any time.

In addition to the classic home automation systems, such as lighting, heating or security, ioBroker also integrates consumer electronics devices. Thus hi-fi components and smart TV with network connection can be linked with other sensors and actuators (eg the Phillips Hue lighting system).

The interface to the user is the visualization. ioBroker provides VIS with a powerful visualization platform. This allows the current values ​​of sensors and their historical progress to be displayed graphically. But even complex controls for operation on different devices - from the smartphone on the wall tablet to the personal computer - can be realized by simple drag and drop.

ioBroker is modular and very stable. With the development of so-called adapters, further systems can be integrated into ioBroker. The controller and the adapters run as independent processes under nodejs. If one adapter crashes, all other processes will continue to run smoothly.

The programming is done in the widely used Javascript.

Where can I use IO Broker?


  1. Devices: LIGHTS, BLINDS, LOCKS, GARAGE, MEDIA, VOICE, CLIMATE, HEATING, CAMERA;
  2. Projects: SMART HOME, OFFICE, LABORATORY, HOTEL, BUILDING, SENIOR HOUSING, HOSPITAL, KINDERGARTEN, GARDEN.

IO Broker adapters

You can find the list of IO Broker adapters here.

As you can see there ara different versions:

  • Github : This is the developer version - Alpha stage. It can still contain some bugs and should only be used by very experienced users. It can only be installed manually via the admin.
  • Latest : This is the beta version that can / should be tested by savvy users. The installation is done automatically via the admin (depending on the set repository / repository).
  • Stable (default) : This is the final / public version. It did not show any errors when testing users (see "Latest") and is intended for all users. The installation is done automatically via the admin (depending on the set repository / repository).

Understanding the Raspberry PI 3 model B

The Raspberry Pi 3 is the third-generation Raspberry Pi. It replaced the Raspberry Pi 2 Model B in February 2016.

Specification:

  • Quad Core 1.2GHz Broadcom BCM2837 64bit CPU
  • 1GB RAM
  • BCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board
  • 40-pin extended GPIO
  • 4 USB 2 ports
  • 4 Pole stereo output and composite video port
  • Full size HDMI
  • CSI camera port for connecting a Raspberry Pi camera
  • DSI display port for connecting a Raspberry Pi touchscreen display
  • Micro SD port for loading your operating system and storing data
  • Upgraded switched Micro USB power source up to 2.5A

Signals and connections of the Raspberry PI 3 model B


Step by Step instruction

Attention: Please use a card of at least speed class 10 or higher (UHS), since the read/write speed of the sdcard will heavily influence the system speed. Best results are achieved by using cards of type A1. 

There are two methods of IO Broker installation.  Let's review both of them.

1. First method - downloading the image

We assume that you have empty micro SD card with SD card adapter.

1. Downloading the image Raspbian light Stretch for Raspberry Pi 2/3 All-In-One with YAHM-nodejs 6.11.4-ioBroker-redis-YAHM 2.29.23 with IP-Support

  1. Insert Micro SD card to SD card adapter.
  2. Insert SD card adapter to your SD card reader in your PC or connect external SD card reader to PC/laptop USB port.
  3. Go to iobroker.net website and click on Download, then select Downloads for installation
  4. Select 
    SD-Image Raspbian light Stretch for Raspberry Pi 2/3 
    All-In-One with YAHM
    -nodejs 6.11.4
    -ioBroker
    -redis
    -YAHM 2.29.23 with IP-Support
    user: pi
    pass: raspberry
    SD-Image Raspbian light Stretch for Raspberry Pi 2/3 All-In-One with YAHM-nodejs 6.11.4-ioBroker-redis-YAHM 2.29.23 with IP-Support
    user: pi pass: raspberry
  5. Click on Download button.
  6. The file ioBroker_Image_RPi_2-3_20171017_stretch_YAHM.zip will be downloaded and saved in Downloads folder on your PC.
  7. You will need to unzip (you can use the free program 7Zip) file ioBroker_Image_RPi_2-3_20171017_stretch_YAHM.img to Downloads folder.

2. Installing the IO Broker

  1. Go to etcher.io website and install the Etcher on your PC. Choose the file for your OS.
  2. When the installation is completed, open Etcher and click on Select image. Choose the image you’ve previously downloaded - ioBroker_Image_RPi_2-3_20171017_stretch_YAHM.img in Download folder. Select the SD card and click on Flash! button. Please note that SD card must be formatted (FAT32 format) before doing this step. Wait a few minutes while Etcher flashes the image on the micro SD card.

3. Booting the first time

  1. Make sure that Raspberry PI 3 switched off.
  2. Take the Micro SD card out and insert the Micro SD card with image to your Raspberry Pi 3 board.
  3. Connect Raspberry PI 3 board HDMI port and to your TV or Monitor HDMI port with HDMI cable.
  4. Connect an Ethernet cable to LAN' port of Raspberry Pi 3 board.
  5. Make sure that your monitor or TV is turned on, and that you have selected the right input (e.g. HDMI 1,  etc).
  6. Plug in your USB mouse and USB keyboard to Raspberry PI 3 USB ports.
  7. Connect Micro USB power supply to Raspberry PI 3 board micro USB input.
  8. IO Broker should boot now.
  9. If you want to get access to Terminal type the login - pi and password - raspberry.
  10. Connect to your router and find the IP address of Raspberry Pi. It will be All-in-One-Pi in the list of your WiFi devices.
  11. Go to any Internet browser (Internet Explorer, Microsoft Edge..) on your PC/Laptop and type http://IP-Address-Raspberry-Pi:8081 (in our case http://192.168.1.174:8081). You will see the IO Broker admin panel.
  12. Select the language, tick on the box and click on Agree button.
  13. Fill in the system settings fields.
  14. Click on Save button first, then click on Next button.
  15. Select methods and click on Discover button to find all devices on your network.
  16. Tick on Use and click on Create Instance button. The packages will be installed automatically.
  17. Click on Finish button. You can see the list of Instances. You will also find athe list of adapters in Adapters section.

2. Second method - Installing IO Broker on Raspbian Stretch Lite OS

You need to have Raspbian Stretch Lite OS installed on your SD card. We will not cover the installation of Raspbian Stretch Lite OS on Raspberry Pi. You will need to format the SD card (FAT32), go to raspberrypi.org , download Raspbian Stretch Lite OS 2019-04-08-raspbian-stretch-lite.zip file, unzip and write the image 2019-04-08-raspbian-stretch-lite.img on SD card.

1. Preparation

  1. Make sure that Raspberry PI 3 switched off.
  2. Insert the Micro SD card with Raspbian Stretch Lite OS image to your Raspberry Pi 3 board.
  3. Connect Raspberry PI 3 board HDMI port and to your TV or Monitor HDMI port with HDMI cable.
  4. Connect an Ethernet cable to LAN' port of Raspberry Pi 3 board.
  5. Make sure that your monitor or TV is turned on, and that you have selected the right input (e.g. HDMI 1,  etc).
  6. Plug in your USB mouse and USB keyboard to Raspberry PI 3 USB ports.
  7. Connect Micro USB power supply to Raspberry PI 3 board micro USB input.
  8. The Raraspspbian Stretch Lite will start up.
  9. Type the login - pi and password - raspberry
  10. Type the command: sudo raspi-config to access raspi-config tool.
  11. Go to 1 Change user password. It is important to change it for your security.
  12. Go to 5 Interfacing Options and select P2 SSH. Enable it, then go out - select Finish.
  13. You need to know your Raspberry Pi IP address. Type this command: ifconfig
  14. You will see your Raspberry Pi local IP address (we had 192.168.1.174).
  15. Go to putty.org website, download and install PuTTY.
  16. Open PuTTY program, go to Session and in Host name field type your raspberry Pi IP address and click on Open button.
  17. You will need to enter your login - pi and password which you enetered in raspi-config tool.
  18. To update the system type the command: sudo apt-get update && sudo apt-get upgrade

2. Installing the Node.js

The currently recommended version is node 8.x; with js-controller 1.5.7 also node 10.x. Odd versions are not recommended as they are development versions.

  1. Check the versions of nodejs and npm. Type the commands: node -v 
  2. nodejs -v
  3. npm -v

  4. If ALL of these commands do not produce a result (that is, no longer show a version number) go to step 9 of this section, otherwise if the version does not match what you want it to do the following -uninstall the existing node & node.js versions: by typing the commands: sudo apt-get --purge remove node
  5. sudo apt-get --purge remove nodejs
  6. sudo apt-get autoremove
  7. Reboot the Raspberry Pi, type the command: sudo reboot
  8. Reinstall Node.js by typing this commands: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  9. sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
  10. Reboot your Raspberry Pi by typing this command: sudo reboot
  11. After installation, the commands: node -v and nodejs -v must return the same version number.
  12. If the command node -v produces an error message such as "not found", please sudo ln -s /usr/local/bin/nodejs /usr/bin/node execute one at the console. If the versions are different, please re-execute the reinstallation of Node.js.
  13. Check the version of npm, type the command: npm -v . If this results in a version <6, please continue with this command: sudo -H npm install -g npm@6a to do npm update.

3. Installing ioBroker

The installation can be done with the user pi but also with the user root.

 

  1. To start installation type the command: curl -sL https://iobroker.net/install.sh | bash -
  2. The ioBroker directory will be created, installation files downloaded. Then the ioBroker will be installed and installation finalized.
  3. Finally, you will see the message that - ioBroker was installed successfully Open http://localhost:8081 in a browser and start configuring!

  4. Go to any Internet browser (Internet Explorer, Microsoft Edge..) on your PC/Laptop and type http://IP-Address-Raspberry-Pi:8081 (in our case http://192.168.1.174:8081). You will see the IO Broker admin panel.

 

Summary

We learnt how to install IO Broker on Raspberry Pi.



Other projects of Acoptex.com
Easy Basics: Project 086d ESP-12E module, BME280 sensor - Web server of Acoptex.com in ESP8266 ESP-12 18-07-2019

« Go back to category
Is this project fake? Report it!   
Recommend to a friend
Published at 01-05-2019
Viewed: 369 times