Charts are not working as before anymore - broken?

I finally found the time to test and it seems you’re right, the chart settings defined in a cfg file are now ignored. I opened an issue:

Settings inside paper UI are also not working for me. I renamed my charts.cfg to .txt but nothing changed. Still only default charts.

1 Like

I have now fixed the issue.
Please be patient, this will require a review and merge, a new ESH build and then finally a new OH snapshoit.
Please read the content of my issue, you will discover that path ofr settings was updated, use now org.eclipse.smarthome.chart rather than org.eclipse.smarthome.ui.chart

Thank you very much. I hope i will see an announcement somewhere in the forum, when there is a new esh build in the snapshots available.

With this fix, can i remove my charts.cfg file and do all settings inside paper ui or can i keep it and openhab will use only my charts.cfg? Or will OH only use the values from the charts.cfg and all other non declared values from the paper ui?

Now -> distro 1253!


Now i´m on #1253 and now i don´t get charts anymore.

Many erros in the log…

2018-04-10 10:37:54.120 [WARN ] [eclipse.jetty.servlet.ServletHandler] - 

javax.servlet.ServletException: Could not get chart provider.

	at org.eclipse.smarthome.ui.internal.chart.ChartServlet.doGet( [151:org.eclipse.smarthome.ui:]

	at javax.servlet.http.HttpServlet.service( [32:j

... and so on ...

It makes no difference if i remove my charts.cfg-file and only make paper ui settings or if i change something in the charts.cfg-file.

I can confirm that it’s working with paper ui settings. But first time I couldn’t see any chart (upgrade to 1253)…a reboot did help and everything is fine now :slight_smile:

For me it is not working. Now i made 2 reboots. Still the same warnings like i posted above.

Any idea?

I renamed the charts.cfg to charts.cfg_txt but still not working.

Where can i make settings for default charts provider?

When i want to open only the icon for the broken image inside my browser, i get this:

Problem accessing /chart. Reason:

    Server Error
Caused by:
javax.servlet.ServletException: Could not get chart provider.
	at org.eclipse.smarthome.ui.internal.chart.ChartServlet.doGet(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.eclipse.jetty.servlet.ServletHolder.handle(
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(
	at org.eclipse.jetty.servlet.ServletHandler.doScope(
	at org.eclipse.jetty.server.session.SessionHandler.doScope(
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
	at org.eclipse.jetty.server.Server.handle(
	at org.eclipse.jetty.server.HttpChannel.handle(
	at org.eclipse.jetty.server.HttpConnection.onFillable(
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
	at org.eclipse.jetty.util.thread.QueuedThreadPool$

How do i have to configure the charts.cfg-file?


This way or with .ui. inside?
–> org.eclipse.smarthome.ui.chart:defaultHeight=

I don’t have a charts.cfg…did you try to delete this file and change the setting directly in the paper ui to something different? Maybe a change is needed to save something in a config-file…but I’m not sure.

Probably because you defined a chart provider different from default ?
Erase your files chart.config and chart.cfg and restart OH.

If I correctly remember, you insisted to set the provider to rrd4j while only default is a valid value.

I have tested with provider:default too, but with no success.

Where is the chart.config saved? I only know the charts.cfg-file?

I removed the charts.cfg completely, made settings inside paper ui charts section, server reboot, changed settings inside paper ui charts, openhab service restart

Still no success. Same error as before.

After another server reboot, now it works!

But with habdroid android app the charts are still ugly. No such charts like on the webbrowser, only black background with ms-dos like (text style, no graphic ui) descriptions.

Is there a way to get the charts style back to the style of the webbrowser-charts?

Maybe someone can tell me, if the ugly charts on habdroid is an error (or feature?) of habdroid (openhab android app) or of the openhab-software itself?

On former versions i got the same charts like on the webbrowser. White background and so on.

Now it looks this way:

If I’m not mistaken the “ugly” chart shown is not from HABPanel! IMHO it is the actual way charts are displayed on HABDroid.

Yes, my mistake… i corrected my post.

It´s from habdroid.

But some time ago i got the same charts inside habdroid like on the webbrowser view.

Where has this changed? Inside habdroid? I can´t remember exactly, but i thought it was after an openhab snapshot update some time ago, so it has to be an openhab server side thing? Not a client side (habdroid)?

IMHO, Yes.

Have a look now, habdroid has been updated.

I was on 2.0.48 beta and now on 2.1 stable , but it looks the same for me. Charts in Webbrowser are still different.

Oh, yes the grey colored surrounding is missing in the app. /sarcasm out/

Look here. The numbers are scaled too. In habdroid, they are still very big.

If you have many numbers in one axis, sometimes in habdroid they are too big. Also the legend (description) is much smaller in the webbrowser. Looks like i get different views than you.