GithubHelp home page GithubHelp logo

nikito7 / __esphome-influxdb-cloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sebokmarton/esphome-influxdb-cloud

0.0 0.0 0.0 3.16 MB

Component & example project for sending sensor data to cloud

License: MIT License

C++ 66.15% Python 33.85%

__esphome-influxdb-cloud's Introduction

ESPHome InfluxDB Cloud

Component & example project for sending sensor data to cloud

Component

Built on top of esphome-influxdb and using ESP8266 Influxdb, this is a simplified component to send data to an InfluxDB 2 database. It will send all sensor updates in one batch, as fields of the same measurement.

You can use it in your project by pulling from Git or downloading the source - see the air-quality.yaml file.

Example Project

We will send data from an air quality sensor directly to the cloud, so we can avoid having to set up any local hub like Home Assistant. We will use the free versions of InfluxDB Cloud Serverless and Grafana Cloud, which lets us retain data for 30 days.

Hardware

Ingredients:

Wiring:

SEN55 Pin NodeMCU Pin
1 - VDD 5V - VIN 5V
2 - GND GND
3 - SDA P21 - GPIO21
4 - SCL P22 - GPIO22
5 - SEL GND
6 - NC -

Cable:

Firmware

See the ESPHome Sen5x documentation for details on the sensor, and the air-quality.yaml file for an example configuration.

Cloud

Set up a free InfluxDB Cloud Serverless account, create a bucket and a token with write access to the bucket. Configure the access parameters in your secrets.yaml, see the secrets.template.yaml for example.

After flashing and running the firmware, you should see a Connected to InfluxDB message in the logs and you should be able to query your data points with the Data Explorer on the InfluxDB Cloud portal.

Set up a free Grafana Cloud account as well, and follow the instructions to connect them. I used the FlightSQL plugin, which had to be installed first in Grafana.

Dashboard

You can find the description of the sensor readings in the application notes from the sensor documentation page. See an example Grafana dashboard at air-quality.grafana.json, or another one at anotter-sensor-hub.

__esphome-influxdb-cloud's People

Contributors

sebokmarton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.