Hello everyone,
I have created a weather station using Blynk. I’m using an ESP32 with a rain gauge and a BME280 sensor.
Now, I want to display the hourly or daily rainfall (historically) in a Super Chart. Unfortunately, it’s not working at all. I have tried the following methods:
- Resetting the virtual pin every hour → Super Chart shows strange values
- Never resetting the virtual pin, but unfortunately, the total values are always displayed (which is not desired)
- Querying only daily, but it’s always queried at 02:00, causing the values from the previous day to be displayed on the wrong day
There must be some way to display the hourly rainfall, or is that only possible with the Simple Chart?
Difficult to comment without more info.
Personally, I calculate rainfall for the last minute, then use arrays to store the rainfall data over the last hour and 24 hours.
From your explanation it’s not clear what you are trying to achieve, or how you are attempting to do it.
Pete.
Hello Pete,
thanks for your fast response.
Basically, I just want to find the right settings for the Super Chart to display the rainfall over the past few days. I have arrays for the last day, week, month, and year, as well as for 6h, 12h, 18h, and 24h intervals. However, it would be nice to see, for example, how much it rained yesterday at 2 PM.
Is that possible?
Yes, it’s possible, but what you have seems an overkill.
You’ll need to write the values for these various arrays to their own datastreams once per minute.
What options you have regarding displaying the data in Superchart(s) depends on your subscription type. Free subscription allows just one datastream per Superchart.
Pete.
Yeah i know but my problem is, if i want to see the rainfall every hour its always counting up, until i the Virtual Pin gets resettet. But i want to see the hourly rainfall, an the daily rainfall if i click on 1 week.
Example:
At 6-7am is 3mm and then from 7-8 just 1mm.
Now theres from 7-8 4mm, thats not what i want
Is this posible?
It sounds like you’re sending cumulative data to the datastream rather than the current hourly value.
You need to share your coding logic if you want more assistance.
Pete.
Thats rirght, im sending cumulative data because i dont wanna see the hole rainfall, just the rainfall in 1hour, but i think thats not working.
In my code i have a lot of cumulative rainfall virtuall pins
For exemple one that reset every hour and thats what i want to use, so i can see the rainfall every hour, but thats not working on super chart.
My question, is there another way to see the cumulative rainfall every hour in super chart. So if from 3am to 4am the rainfall goes from 51 to 54 i want to see 3mm in my super chart an not 51 to 54.