KRVPerera / IOT-mini-project-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOT-mini-project-1

How to install

server

IPv6 enabled amazon EC2 instance

  • Get an IPv6 enabled amazon instance (Ubuntu preferred as we are using docker-compose)

    • Reference Configure IPv6 for AWS EC2 Instance : YouTube

    • follow the link Amazon Docs : ipv6-addressing

    • Remember to add inbound rules and routing table

      ##### Inbound Rules
      
      ![inbound rules](resources/inbound_rules.png "Inbound Rules")
      This is okay for a production environment. And you only have to enable UDP for IPv6 sources. For security you may want to add specific source addresses.
      
      ##### IPv6 Routing
      
      ![Routing table](resources/routting_table.png "Routing Table")
      
  • Install docker and docker compose plugin If you are using an recommended ubunutu server you can run the script to install docker and all the tools

      server\amazon_ubuntu_docker_install.sh
    

    References

  • After that you can clone this repository inside amazon EC2 instance

    • cd into server folder

    • use docker compose

      cd server
      docker compose up --build -d
      
    • grafana dashboard and data influxdb are already setup via docker compose

    • Use http://instanece_address_public_ip4:3000 from your brower to access grafana

    • default user name and password is admin

    • Choose the Temperature dashboard

Testbed

  • Get ssh access to frontend

  • login to grenoble site

  • clone the repository

  • cd into repository folder

  • In the sensor\main.c add your EC2 instance public IPv6 addrss coap_command[i++] = "mention_your_ipv6_here"; eg: coap_command[i++] = "2600:1234:1234:1234:1234:1234:1234:1234";

  • Then run all.sh

    • This builds the sensor code with new ip address
    • Star the border router (already built)
  • After building one time you can run start.sh

About


Languages

Language:C 55.0%Language:Makefile 23.4%Language:Python 13.1%Language:Shell 7.4%Language:Batchfile 0.7%Language:Dockerfile 0.5%