Skip to content

DanCech/IoTWorkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrafanaCon LA 2019 IoT Workshop

This project is a demonstration of how to monitor temperature and humidity using an ESP32 Pico board and DHT11 sensor, and store that data in a TSDB so it can be graphed with Grafana.

Presentation

https://docs.google.com/presentation/d/1_UPUbFjVLKdW6VeS-KdOSBvoTSDJDRgiEMtXPMg3ULw/edit?usp=sharing

Hardware

Serial Port Driver

You may need to manually install the driver for the USB to serial adapter if it doesn't show up automatically when you plug in the ESP32

Arduino IDE Setup

Required Libraries

Download project into your Arduino sketchbook folder

  • git clone https://github.com/DanCech/IoTWorkshop.git, or
  • Download Zip & extract it

Config file

  • Copy config.h.example to config.h
  • Fill in WiFi connection details
  • Set timezone offset for formatted dates
  • Set a unique name for this sensor
  • Adjust reporting interval if required

How to get the root CA cert: https://techtutorialsx.com/2017/11/18/esp32-arduino-https-get-request/

Hosted Metrics

  • Sign up at https://grafana.com/loki#get
  • Create an API Key with MetricsPublisher role and add it to the config file
  • Go to the details page for your hosted metrics Graphite instance and get the instance id
  • Set that as HM_GRAPHITE_INSTANCE

Hosted Grafana

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages