# 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'](/files/-MDTKx0TvrokfNg6HNWt)

![Create datasource: select InfluxDB ](/files/-MDTL8CN5PCVizUe04VH)

![Modify dashboard and save](/files/-MDTLDLB1PoBIOBDmepJ)

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

![](/files/-MDTMXQMZLd8rlrC1nBT)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aic-eec.com/general/hot-cloud/integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
