-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jdbc.mysql] First two hours of any chart always flat #8502
Comments
I noticed the same quite some time ago, but didn't investigate further. |
That sounds like a plausible explanation. Is there any way I could check this? |
Ok, well, yes. The container the database is running in has timezone UTC. OpenHAB container is on CEST. The mysql.cfg has "localtime=true", though. Should that not work around the difference? |
I can confirm the problem too. Unfortunately, the charts only show a static value in the period of 1 hour and not a trend! From a period of 4 hours and higher, the course is displayed correctly in the chart. This is also the case in the HabPanel's chart widget. I have not given a range but the course of the current hour should be given. I use mysql as a database. The time stamps of the data records are entered correctly. Dierk |
When adding any chart to the sitemap (classic ui), the first two hours are always a flat line. Doesn't seem to be an issue with persistence, if I switch to a longer period, the data is there and displayed. Just for each chart, not depending on displayed period, first two hours display a flat line. For hourly charts, of course the trace is then entirely flat.
I use the mysql persistence. No other persistence services enabled.
How to reproduce:
Every chart in a sitemap is affected. For example:
"Chart item=SomeNumberItem period=h refresh=30000" should produce a flat line.
I'm using openhab2 with docker, using the following docker file:
The text was updated successfully, but these errors were encountered: