> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/general/hot-cloud/integration.md).

# Integration

All right! Now you can do every part of the project. Let integrate them together to work as a system. <br>

1. Start MQTT

```
sudo docker run -it -p 1883:1883 -p 9001:9001 eclipse-mosquitto
```

2\. Connect InfluxDB

```
sudo docker run -d -p 8086:8086 -v influxdb:/var/lib/influxdb --name influxdb influxdb
```

3\. Run Telegraf

```
sudo docker run -v /home/pi/:/etc/telegraf:ro telegraf
```

4\. Connect ESP3266 to the sensor

5\. Run Grafana

```
sudo docker run -d -p 3000:3000 grafana/grafana
```

&#x20;6\. Go the browser and type:

```
http://<your_raspberry_pi_ip>:3000
```

![Log in as "admin" with password 'admin'](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MDTF7fQjvpymTRzURW8%2F-MDTKx0TvrokfNg6HNWt%2FScreen%20Shot%202020-07-29%20at%2011.46.40%20AM.png?alt=media\&token=dc5ba208-2629-47c3-95be-36518455a9a7)

![Create datasource: select InfluxDB ](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MDTL1yZ1EgW1qyKeTfm%2F-MDTL8CN5PCVizUe04VH%2FScreen%20Shot%202020-07-29%20at%201.02.08%20PM.png?alt=media\&token=065d6c20-2658-43f9-a3ed-eff757f2f569)

![Modify dashboard and save](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MDTL1yZ1EgW1qyKeTfm%2F-MDTLDLB1PoBIOBDmepJ%2FScreen%20Shot%202020-07-29%20at%201.11.54%20PM.png?alt=media\&token=b1275411-24d1-4a5e-a337-22dda05075ee)

7\. All is done. You can check the connection among them together.&#x20;

![](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MDTM6cJaYxbp_hhwrFB%2F-MDTMXQMZLd8rlrC1nBT%2FScreen%20Shot%202020-07-29%20at%201.18.52%20PM.png?alt=media\&token=6bf27be3-11b6-4c68-8f45-418c6664b995)
