HABPanelViewer 0.9.27

Please check the wiki for basic troubleshooting information.

Didnt think off that…found it :grinning:

I updated to 0.9.29 (from 0.9.22 I guess, the latest version available in Play Store). It did not re-import the saved settings, but anyway…
What bothers me now is that this version seems to lose more often the connection to the server. It happens approx. every 1-3h. In the previous version it was just happening every couple of days. Is there anything generally to avoid this issue (anything concerning waking up the panel or anything on the main screen refreshing)?

I try not to get crazy with my 6 tablets and HPV crashes. Don’t get me wrong! I’m grateful for this app.
During one of the crashes I’ve got the log as on the picture. Is this the possible reason of crash?
20200927_212925

Seems to bei caused by the webview. Do you have HW acceleration enabled? If yes, disable it and see if that changes anything.

Yes, I had HW enabled, turned it off, I will let you know if this problem occurred again. I’m not an expert but could it be rather problem with permissions? https://stackoverflow.com/questions/34971162/android-privileged-app-gets-permission-denied-when-writing-to-sysfs-in-jni

Are you sure you have disabled power savings for HPV? Have you made other changes (updated openHab, updated router firmware, …) as well or did you only upgrade HPV?

You can try if this apk works better:
https://github.com/vbier/habpanelviewer/raw/okhttp3sse/app-debug.apk

1 Like

Wow! That new apk resolved the issue. Not sure how you analyzed it so fast but with the new apk I have not had any disconnect since I have installed it.

And yes, it have power saving disabled for the app. Just one minor issue. The import of settings did not work.

Hello,
I like the app for giving me full screen view without any clumsy switching inside of a browser. At the moment I use it solely for panels displaying buttons only showing icons without text. My problem is the UI scaling for High DPI displays that is taking place. I’d prefer to design the panels with the native resolution instead of the lesser resolution of the scaled UI. With the lesser resolution I wolud loose a lot of space because of some fixed settings of the built in widgets of HABpanel (e.g. margins). In Firefox I can switch to native resolution with layout.css.devPixelsPerPx. Is there any way to achieve this with HABPanelViewer?

Hi
Thank for a nice app. I have previously used the version from Google Play and now I have installed the latest version from F-Droid 0.9.26. This version has however a red frame around the whole window! How do I remove that?
/Michael

I have now downloaded the newest version in this thread, and it seems to work perfectly :slight_smile:
/Michael

Hi,
Volker thank you very much for this great peace of work!
I am using the app on a Samsung Galaxy Tab A Tablet (Android 10).
I added our door bell to openhab → and what I want to achieve is, that wenn the door bell rings HabpanelViewer should display a dashboard with a camera view and an item which allows to open the door. This should happen also if another app is in the front e.g. Google Calendar.

I read already that things changed in Android 10 https://developer.android.com/guide/components/activities/background-starts

I also tried different things on my own (I am a java developer, but not really android developer)… but the effect is, when google calendar is on top, I can activate the screen, but HabPanelviewer does not go to the front… do you have any experiences or hints for me how I can achieve this?

Best regards

Jochen

Sorry, I have no idea. But HPV uses a webview, which in principle is a chrome browser. So if you find a solution for chrome it will most likely work with HPV as well.

With the current version this is not possible. I can see if i can add a command for bringing HPV to the front when I have the time. But no guarantees if and when. I have added a feature request here: https://github.com/vbier/habpanelviewer/issues/62

Thanks for the information. I have not found a similar setting for chrome yet. Probably I’am out of luck.

Thanks a lot for that. Do you already have a solution in mind? Maybe I can support you with a pull request. I already played around with the given commands e.g. start an activity when using command ā€œSCREEN_ONā€ or trying ActivityManager. moveTaskToFront or trying to show the homescreen (which will be Habpanelviewer) … but everything with more or less success. It worked sometimes but when tablet display turns off e.g. google calendar was active => it will not switch to Habpanelviewer…

It would be nice if you have any ideas, I could check if these ideas would work…

Hi Volker

Thanks for a fantastic app.
On my tablet it however stops updating mostly every day, which is annoying.
I am using version: 0.9.27pre (latest found in this thread).
I have two logs:

Log 1:
--------- beginning of events
11-26 08:59:00.845 12627 12627 I am_on_paused_called: [0,de.vier_bier.habpanelviewer.MainActivity,handlePauseActivity]
11-26 08:59:01.069 12627 12627 I am_on_stop_called: [0,de.vier_bier.habpanelviewer.MainActivity,sleeping]
11-26 09:12:31.983 12627 12627 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.MainActivity,RESUME_ACTIVITY]
11-26 10:07:03.641 12627 12627 I am_on_paused_called: [0,de.vier_bier.habpanelviewer.MainActivity,handlePauseActivity]
11-26 10:07:03.705 12627 12627 I am_on_stop_called: [0,de.vier_bier.habpanelviewer.MainActivity,sleeping]
11-26 10:36:23.925 12627 12627 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.MainActivity,RESUME_ACTIVITY]
--------- beginning of main
11-26 11:22:06.552 12627 14980 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 11:24:06.528 12627 12755 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 11:26:06.553 12627 12755 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 11:28:06.580 12627 12755 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 11:29:37.515 12627 12632 I zygote : Do partial code cache collection, code=251KB, data=213KB
11-26 11:29:37.517 12627 12632 I zygote : After code cache collection, code=251KB, data=213KB
11-26 11:29:37.517 12627 12632 I zygote : Increasing code cache capacity to 1024KB
11-26 11:29:37.599 12627 12627 I am_on_paused_called: [0,de.vier_bier.habpanelviewer.MainActivity,handlePauseActivity]
11-26 11:29:37.897 12627 12627 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.LogActivity,LAUNCH_ACTIVITY]

Log 2:
--------- beginning of events
11-26 15:25:53.170 22269 22269 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.MainActivity,RESUME_ACTIVITY]
11-26 17:35:43.101 22269 22269 I am_on_paused_called: [0,de.vier_bier.habpanelviewer.MainActivity,handlePauseActivity]
11-26 17:35:43.185 22269 22269 I am_on_stop_called: [0,de.vier_bier.habpanelviewer.MainActivity,sleeping]
11-26 18:20:42.151 22269 22269 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.MainActivity,RESUME_ACTIVITY]
--------- beginning of main
11-26 18:52:08.810 22269 22330 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 18:54:08.736 22269 22322 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 18:56:08.770 22269 22330 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 18:58:08.795 22269 22330 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 19:00:08.781 22269 22330 D libc-netbsd: getaddrinfo: get result from proxy gai_error = 0
11-26 19:00:26.104 22269 22269 I am_on_paused_called: [0,de.vier_bier.habpanelviewer.MainActivity,handlePauseActivity]
11-26 19:00:26.377 22269 22269 I am_on_resume_called: [0,de.vier_bier.habpanelviewer.LogActivity,LAUNCH_ACTIVITY]

I have tried to enable all features in Android to avoid sleeping, and from the log it seems the app is actually running, just not updating the data.
Do you have any suggestion of what could be wrong?
/Michael

Sorry, there is not much to see in the logs. Does the connection drop after the same time or does it seem to be random? Does it drop the connection if you force the screen to stay on?

The drop seems to be random, sometimes after only a few hours, but mostly after 1-2 days. I will try to keep the screen on and see if it changes any thing.

If it is random, then it most likely has nothing to do with OS power saving mechanisms and leaving screen on won’t change anything. Are you sure you have the latest 0.9.27pre installed? What build date does the system information show? 11/14?

What exactly do you mean by it stops updating? Do you see a red border around the screen and HABPanel does not update? Or does HPV stop to propagate sensor values to openHAB?

Do you restart openHAB every few days? Might this be the reason for the disconnects? HPV has problems reconnecting to a restarted openHAB server. I still have to look into this but did not have the time.

I have tried to leave the screen on, but it still stops after some time, as you expect.
The version is: image
If this is not the correct version, where do I find it then?
With stop updating I mean that the sensor values stop updating, i.e. temperatures stops, graphs stops updating etc (no red border). (I am only using HPV as a viewer).
When this happens I use the menu on the right in HPV ā€œRestart Appā€.
(The OpenHAB server (RaspberryPi) is never reset.)
/Michael