Commit da4e49e9 authored by Rostislav Spinar's avatar Rostislav Spinar

Files moved to install folder in previous step

parent b728dcbd
# IoT Starter Kit - Part 2: IQRF GW
## Step 1 - Insert IQRF Coordinator
![IQRF SPI board](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-spi-board.png)
* Attach [IQRF SPI board](http://www.iqrf.org/weben/downloads.php?id=412)
* Insert prepared IQRF Coordinator to the IQRF SPI board
## Step 2 - Install OS Linux
* Install [UbiLinux 4.0](https://up-community.org/downloads/download/44-ubilinux/90-ubilinux-installer-4-0)
* Post-install tips
```bash
sudo apt update && sudo apt full-upgrade -y
```
## Step 3 - Install Docker CE
* Install [Docker for Debian 9.0 Stretch](https://github.com/iqrfsdk/iqrf-daemon/blob/master/docker/INSTALL.md)
## Step 4 - Run Docker image
* Ready IQRF GW [image](https://hub.docker.com/r/iqrfsdk/iqrf-gateway-debian/)
```bash
docker container run -d -p 80:80 -p 1883:1883 -p 8080:8080 -p 9001:9001 --device /dev/spidev2.0:/dev/spidev2.0 --privileged --name iqrf-gateway --restart=always iqrfsdk/iqrf-gateway:latest
```
### Check IQRF WebAPP dashboard
```bash
http://localhost:8080
```
![IQRF daemon WebAPP dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-daemon-webapp-gateway.png "IQRF daemon WebAPP dashboard")
* Login using: user=admin; pass=iqrf
### Check Node-RED dashboard
```bash
http://localhost/ui
```
![IQRF App dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/node-red-ui.png "IQRF App dashboard")
### Check Node-RED flow
```bash
http://localhost
```
![IQRF App flow](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/node-red-flows.png "IQRF App flow")
### Check Supervisor Service dashboard
```bash
http://localhost:9001
```
![IQRF Supervisor dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/supervisor-dashboard.png "IQRF Supervisor dashboard")
## Optional - Stop Docker image
```bash
docker container stop iqrf-gateway
```
# IoT Starter Kit - Part 2: IQRF GW
## Step 1 - Download IoT Starter Kit installer image
[IoT Starter Kit installer](https://dl.iqrfsdk.org/iot-starter-kit-v080-installer.img.bz2)
Installer burns complete image right after the boot without any user interaction, just wait:
* Ubilinux 4.0
* IQRF daemon
* IQRF daemon webapp
* Mosquitto broker
* Nodejs
* Node-RED
* Node-RED IoT Starter Kit dashboard
* Gparted
Burning is signalled by blinking of the GREEN led on the UP board. When we are done blinking stops.
## Step 2 - Install 7-Zip and Rufus tools
* Download and install [7-Zip](http://www.7-zip.org/)
* Download and install [Rufus](https://rufus.akeo.ie/)
## Step 3 - Extract image and burn it to 8G(16G) USB disk
* Extract image using 7-Zip
* Burn image to USB disk using Rufus
![Burn installer to 8G(16G) USB disk](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/rufus-burn-installer.png)
## Step 4 - Plug 8G(16G) USB installer to the UP board
* Plug 8G(16G) USB installer to the UP board
* Let the UP board boot from USB (Press F7 and select UEFI disk to boot from)
* Wait till blinking of GREEN led is stopped
* Power-off the UP board
* Unplug USB installer
## Step 5 - Insert IQRF coordinator
![IQRF SPI board](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-spi-board.png)
* Attach [IQRF SPI board](http://www.iqrf.org/weben/downloads.php?id=412)
* Insert prepared IQRF Coordinator to the IQRF SPI board
## Step 6 - Boot installed image
* Power-on the UP board and boot normally
* Login using: user=ubilinux; pass=ubilinux
* Run Gparted and extend UP board flash to 32GB
Enjoy, your are done!
Now, check all is fine!
## Step 7 - Check IQRF daemon WebAPP dashboard
```bash
http://localhost
```
![IQRF daemon WebAPP dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-daemon-webapp-gateway.png "IQRF daemon WebAPP dashboard")
* Login using: user=admin; pass=iqrf
## Step 8 - Check Node-RED dashboard
```bash
http://localhost:1880/ui
```
![IQRF App dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/node-red-ui.png "IQRF App Dashboard")
## Step 9 - Check Node-RED flow
```bash
http://localhost:1880
```
![IQRF App flow](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/node-red-flows.png "IQRF App Flow")
# IoT Starter Kit - Part 2: IQRF GW
## Step 1 - Insert IQRF coordinator
![IQRF SPI board](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-spi-board.png)
* Attach [IQRF SPI board](http://www.iqrf.org/weben/downloads.php?id=412)
* Insert prepared IQRF Coordinator to the IQRF SPI board
## Step 2 - Install OS Linux
* Install [UbiLinux 4.0](https://up-community.org/downloads/download/44-ubilinux/90-ubilinux-installer-4-0)
## Step 3 - Update UbiLinux 4.0
```bash
sudo apt-get update && sudo apt-get full-upgrade -y
```
## Step 4A - Install MQTT broker
```bash
sudo apt-get install -y mosquitto mosquitto-clients
```
## Step 4B - Confirm MQTT broker is running
```bash
ubilinux@ubilinux:~$ systemctl status mosquitto.service
â mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
Loaded: loaded (/etc/init.d/mosquitto; generated; vendor preset: enabled)
Active: active (running) since Wed 2017-11-22 17:24:13 UTC; 1min 59s ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/mosquitto.service
ââ14253 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
```
## Step 5A - Install IQRF daemon
```bash
echo "deb http://repos.iqrfsdk.org/debian stretch testing" | sudo tee -a /etc/apt/sources.list.d/iqrf-daemon.list
sudo apt-get install -y dirmngr
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F973CFCE6B3BE25C
sudo apt-get update && sudo apt-get install -y iqrf-daemon
```
## Step 5B - Confirm IQRF daemon is running
```bash
ubilinux@ubilinux:~$ systemctl status iqrf-daemon.service
â iqrf-daemon.service - IQRF daemon iqrf_startup
Loaded: loaded (/lib/systemd/system/iqrf-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-22 17:31:01 UTC; 52s ago
Main PID: 15905 (iqrf_startup)
Tasks: 11 (limit: 4915)
CGroup: /system.slice/iqrf-daemon.service
ââ15905 /usr/bin/iqrf_startup /etc/iqrf-daemon/config.json
```
## Step 6A - Install IQRF daemon webapp
```bash
cd /home/ubilinux
git clone https://github.com/iqrfsdk/iqrf-daemon-webapp.git
cd iqrf-daemon-webapp/install/
sudo python3 install.py -d debian -v 9
```
## Step 6B - Confirm IQRF daemon webapp is running
```bash
http://localhost
```
![IQRF daemon WebAPP dashboard](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-daemon-webapp-gateway.png "IQRF daemon WebAPP dashboard")
* Login using: user=admin; pass=iqrf
## Step 7A - Configure IQRF SPI interface
```bash
http://localhost/en/config/iqrf
```
![Select spidev2.0 interface](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-daemon-webapp-config-iqrf.png "Select spidev2.0 interface")
## Step 7B - Restart IQRF daemon
```bash
http://localhost/en/service
```
![Restart IQRF daemon](https://github.com/iqrfsdk/iot-starter-kit/blob/master/install/pics/iqrf-daemon-webapp-service-restart.png "Restart IQRF daemon")
## Step 8A - Install Nodejs
```bash
cd /home/ubilinux
git clone https://github.com/iqrfsdk/iot-starter-kit.git
cd iot-starter-kit/install
sudo cp lsb-release-debian /etc/lsb-release
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install nodejs
```
TBC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment