I know there are tons of resources about this but something doesn’t add up to me.
According to what I have understood $_interval is a variable that takes the interval from this dropdown menu:
So that the panel displays the correct information according to that interval. If that’s true then I’m doing something else wrong.
I have a simple database with the following values:
These values store energy.
See response for the rest of the problem (I can’t attach more than 2 images)