how does the discover function work? discover didnt work for me. i set the start page manually . i use follow hostname for openhab server: http:rpi.fritz.box:8080
It looks like the app can not connect at all to the server. The most obvious reason would be:
the URL is wrong (you wrote you used http:rpi.fritz.box:8080, which is missing the two slashes behing http: )
the app is not allowed to communicate with the server (that also might be the reason for the not working discovery), because of settings in the router
Both of these problems can be ruled out if you copy the server URL from the settings page and paste it into the chrome browser on your tablet. If this works and you see the openHAB start page, then the URL is correct and HTTP access is allowed by the router.
When the server URL is correct, then there has to be some other problem regarding the SSE connection.
The app opens a connection to the following URL: server URL/rest/events?topics=smarthome/items/name of an openHAB item/statechanged
So next replace server URL and name of an openHAB item with correct values and try to open the URL with chrome on your tablet. This should look as if the page is loading. If you now set a value to the item, you should see it in the browser.
Hello, I have a problem with HABPanelViewer, I am not able to visualize my Graphana plots. They work pretty well on my laptop but not within the HABPanelViewer.
Come on people, in case you want help, at least take a little time to provide some details. What does “I am not able to visualize my plots” mean? Do you get broken links, do you get pictures of Donald Trump instead or are the values wrong?
Please describe the problem in more detail or add screen shots, as otherwise I can not help. I have sold my crystal ball last week.
Have you tried to open the page with chrome on your tablet? Does it work there?
Screenshot 1: running Habpanel on Chrome
Screenshot 2: OpenHAB URL in HabPanelViewer
Screenshot 3: Connection Status still not connected
Screenshot 4: Testresult with successfully state change
Screenshot 5: URL of Startpage in HabpanelViewer
Regards, Web
Edit: i already unchecked HTPS Connection, but Server still not discovered. I changed the System Language after this Screenshot to english because Habpanelviewer displays in current configured language.
Okay, this looks like everything is set up correctly on your side. Can you install the apk i linked a few posts back and send me the part of the adb log showing the app start? You can as well open an issue in the github project and add the needed information there.
BTW. The router is in the loop regardless of this is LAN or internet, as the tablet most likely has no ad-hoc network with the openHAB server. There are settings in the router to control if devices in the LAN can communicate with each other.
I’m using version 0.9.18. In the pictures you can see the same page using Google Chrome and HABPanelViewer. It looks like it cannot load the plots links from Grafana.
Do you use https for the start page? If i do this and try to link grafana charts with an http url, I see the described problem as well (loading of http content in frames of https pages is blocked by webview). Switching the start page to http might help (or setting up grafana to use https, which would be the better way).
I have simplified your use case and only created a HabPanel page with a frame widget using a Grafana chart URL and this works once you are logged in to Grafana. So it does not seem to be a WebView problem.
Edit: I just saw that I added a settings that allows mixed content, so you could try that as well if you use https.