directus-labs / guest-authoring

A repo for our guest authors to work on content
12 stars 40 forks source link

Directus and IoT: Sensor Data with an ESP32 #119

Closed vicradon closed 6 months ago

vicradon commented 8 months ago

What is your idea?

This is an article that gets users started with using Directus for IoT projects. It’s a simple project that demonstrates how to collect and visualize temperature and humidity data from a DHT22 temperature and humidity sensor and send this data to Directus through an ESP32. An ESP32 is a board that allows IoT developers and hobbyists to work with sensors and controllers with built-in Wifi support. This Wifi support allows the board to connect to the internet and send data to destinations such as Directus by making HTTP calls. Below is a quick overview of the major sections of the article:

  1. It begins by highlighting the necessity of collecting and visualizing temperature and humidity data in various settings, including industrial and home environments.
  2. Next, it illustrates both physical and simulated circuit configurations to aid readers in implementing the project using either physical components or the Wowki IoT simulator.
  3. The setup process for Directus is then outlined, offering guidance on configuring it either through Directus Cloud or a self-hosted setup.
  4. Instructions are provided for creating a collection named "temperature_and_humidity," designed to store temperature and humidity data with four essential fields: id, temperature, humidity, and date_created.
  5. A demonstration follows on how to send data to this collection using the Directus REST API.
  6. Subsequently, readers are acquainted with making HTTP calls from an ESP32 using embedded C++ scripting.
  7. The article proceeds to showcase a demo of the HTTP POST request responsible for sending data to the "temperature_and_humidity" collection from the ESP32 script.
  8. The final step involves visualizing the accumulated temperature and humidity data using Directus Dashboards.
  9. Concluding the article, a discussion is presented, reflecting on the completed tasks and potential enhancements, such as incorporating a board_id field to identify the source board for each record within the collection.

What are the key takeaways from your post?

  1. How to store data from an IoT system to the cloud with the aid of Directus
  2. How to use Directus dashboards to easily visualize data from a database
  3. How to use the Directus API to make POST requests
  4. How to effectively utilize role permissions and access tokens in a Directus-powered project

What type of post is this?

Full Project Build with Directus

Country of residence

Nigeria

Terms & Conditions

github-actions[bot] commented 8 months ago

Thank you for submitting an idea for our guest blog.
We work through new ideas every few weeks as we put together our content schedule. This means you may not get an immediate response as to whether your idea has been accepted, or any follow-up questions we have to clarify your idea.
If your idea is accepted, we will provide a deadline for first draft and how much we can pay you for the post. You will have a few days to confirm whether you are still able and willing to write the post.
If you have any questions in the meantime, feel free to add a comment to this issue.

phazonoverload commented 7 months ago

Are you happy to frame this as Directus and IoT: Sensor Data with an ESP32? I think the topic you've submitted is interesting, but if we generalize a bit (this is about IoT generally with this fairly straightforward example to start) I think it would have more appeal.

vicradon commented 7 months ago

Hi @phazonoverload I think your topic suggestion is still reasonable enough for the proposed outline. What do you think about the outline?

phazonoverload commented 7 months ago

Yup all good! It's just narrative, not actual technical changes. Based on the agreed scope we can pay $500 for this post and the accompanying repository which you can create in your account and we will fork.

This post will be included as part of our June content schedule. The first draft is due on May 1 so we have time to properly review it and you have time to respond.

If interested and you’re happy to commit to the deadline, please let me know in the next few days and I will mark this issue as Approved.

The process is detailed in the README of this repo 😄

vicradon commented 7 months ago

Thank you @phazonoverload Can the post be included in the May schedule instead? I will submit the first draft on Monday, the 15th of April.

phazonoverload commented 7 months ago

Possibly. If you get it in on Monday I'll review it next week. Our schedule if full for May but there are a couple of posts that might not be ready in time.

Regardless, payment is based on the post being finished (not published) if that's why you're asking 😄

vicradon commented 7 months ago

Ah, I see. I thought the payment was based on the publication month. I'll try my best to complete it before April runs out. Thank you!

vicradon commented 6 months ago

Hi @phazonoverload I submitted the first draft a few days back. Could you please take a look at it?

phazonoverload commented 6 months ago

No need to bump - I've seen and have scheduled in time to review it.