User Tools

Site Tools


latinet:unicaes:workshops:nig

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
latinet:unicaes:workshops:nig [2023/09/01 20:31] jan.sonntaglatinet:unicaes:workshops:nig [2024/09/13 19:11] (current) – [3. InfluxDB] harley.lara
Line 13: Line 13:
   - If you are on Linux, you can forward to step 2. If you are on Windows we recommend installing the Windows-Subsystem-for-Linux (WSL) with Ubuntu as the distribution.    - If you are on Linux, you can forward to step 2. If you are on Windows we recommend installing the Windows-Subsystem-for-Linux (WSL) with Ubuntu as the distribution. 
   - Now that we are in our Linux (testing done in Ubuntu) environment, we can install docker. You can follow the steps on the official website: [[https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository|Install Docker Ubuntu]]. If you are on WSL, every time you start the system you need to restart docker with: ''sudo service docker start''   - Now that we are in our Linux (testing done in Ubuntu) environment, we can install docker. You can follow the steps on the official website: [[https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository|Install Docker Ubuntu]]. If you are on WSL, every time you start the system you need to restart docker with: ''sudo service docker start''
-  - Download NIG docker files here: {{ :latinet:unicaes:workshops:local-nig.zip |Download local NIG files}} +    * For windows user: [[https://docs.docker.com/desktop/install/windows-install/|Install Docker Desktop on Windows]]  
-  - Unpack the files into an empty folder +  - Download NIG docker files here: ''git clone https://github.com/EOLab-HSRW/intro-to-iot.git'' 
-  - Open your WSL instance/Terminal and navigate to that folder. If you are using WSL you can find all the windows files under "/mnt/c/".+  - Open your WSL instance/Terminal and navigate to the folder called ''nig''. If you are using WSL you can find all the windows files under "/mnt/c/".
   - ''docker compose up''   - ''docker compose up''
   - Open the individual application locally:   - Open the individual application locally:
Line 51: Line 51:
   * [[https://docs.influxdata.com/influxdb/v2.7/|Some Guides - Documentation]]   * [[https://docs.influxdata.com/influxdb/v2.7/|Some Guides - Documentation]]
  
-  - Open up your [[http://localhost:8082/|Influx]] instance. You can log in with the username ''influx'' and the password ''influxdb''+  - Open up your [[http://localhost:8082/|Influx]] instance. You can log in with the username ''influx'' and the password ''influxDB''
   - On the left-hand side you will find a sidebar. Click on the little graph symbol which is the Data Explorer   - On the left-hand side you will find a sidebar. Click on the little graph symbol which is the Data Explorer
   - The Data Explorer can be used to review your data and help with developing new database queries. For this tutorial it is very easy to use:   - The Data Explorer can be used to review your data and help with developing new database queries. For this tutorial it is very easy to use:
Line 81: Line 81:
   - After doing that, we can now finally click the big blue button ''+ Add visualization''. In the upcoming pop-up, we need to choose the just-created data source.   - After doing that, we can now finally click the big blue button ''+ Add visualization''. In the upcoming pop-up, we need to choose the just-created data source.
   - Now we are in the UI where we can create our graph. At the bottom of the screen, you can see a text box. In this text box, we need to paste in the query we created earlier. If you click out of the text box this should already show us our graph!!   - Now we are in the UI where we can create our graph. At the bottom of the screen, you can see a text box. In this text box, we need to paste in the query we created earlier. If you click out of the text box this should already show us our graph!!
-  - The next steps are pretty self-explanatory. First, you can for example change the name of the graph. All of the options for modifying the +  - The next steps are pretty self-explanatory. First, you can for example change the name of the graph. All of the options for modifying the graph can be found in that menu. Just go through them. Most of them are easy to understand like Unit, Min, Max, etc. Play around and have fun! 
 +  - To save the graph just click ''Save'' in the top right corner and don't forget to save the dashboard again as well.
  
 +That's basically it! You now have your first dashboard that shows YOUR sensor data from a sensor that YOU developed and built! Now there is a lot more to come. Just think of something you want to build and try to do it. We just gave you a brief introduction to the world of IoT.
  
 ===== Recording ===== ===== Recording =====
latinet/unicaes/workshops/nig.1693593072.txt.gz · Last modified: 2023/09/01 20:31 by jan.sonntag