There are a lot of reasons for monitoring temperature inside a room, but how useful is it really if you miss the alerts? That is why most configurations use email, phone, SMS, and often used apps for sending notifications. Some people use Slack or even Discord daily, so why not receive critical alerts there too?
This brought me the idea for this project, a system divided into two main parts: collecting sensor data into a database and using that data to trigger Discord notifications based on specific conditions.
ESP32 devkit care sa contina:
Acces pentru urmatoarele platforme:
The first step in any workflow is the trigger condition. The free account has a daily limit on requests: 10. The triggers need to be spaced out evenly across the day, or design the system to send the median temperature once per day. InfluxDB has a way to send notifications by itself but they are not available for the free account.
The next challenge related to accessing the information in the database. Pipeline offers a couple of solutions for this, but at the end I decided to use HTTP Requests. First I tested in the CMD window using curl. The first requests were targeting “INFLUX_URL/api/v2/buckets” which apparently only retrieves buckets metadata. The tutorial [1] didn't really specify in detail that I should've used another url (/api/v2/query). One more error I was getting at some point,