HABPanelViewer 0.9.27

First of all, very nice app. This is what i have been waiting for before implementing it on my installation.
I only have one drawback now, i cant see my cameras :frowning:

When will it have support for image.jpg that updates ever 1 seconds?
Or should it already work? Works fine in openhab app, and other browsers.

I am not sure what you are talking about. In order to be able to reproduce your problem, you have to provide some more details. How do you show the image in HABPanel? Do you expect the image to come from the tablets camera?

I have 3 IP cam.
In openhab i can see them in the app using image url with refresh=1000
This also work with Habmin (maybe not in all browsers)
Image url=“http://username:password@IPadress/tmpfs/auto.jpg” refresh=1000

This seems not to work in you app, have tried with phone and two different android tablets.

I have just added an image widget with a refresh interval and had a script running that copied an image to my webserver dir every few seconds. This worked on my phone as well as on my tablet. Are you sure you have 1000ms instead of 1000s refresh?

Yes, the settings are ok. I just get the broken image link.
I see that in firefox it works fine, but not in internet explorer/samsung standard browser or the app.
Maybe its because of the syntax with usernam:password@ip?

Cause of the problem is that webview/chrome does intentionally block subrequests with basic authentication: https://www.chromestatus.com/feature/5669008342777856. Do you have a possibility to get rid of the username/password in the url?

Ah, ok.
In fear of going off topic, but still related to the image problem. Can i show a image from c:/picture/picture.jpg? Or does it need to be inside of openhab folder? This is running on windows.

Hi Tommy, do your cameras/dvr support url auth? ex. http://192.168.1.112:81/image/fdoor?q=50&s=90&user=myuser&pw=mypass instead of the http://user:pass@192.168.1.112, etc…? I use quite a few cams but the URL auth tends to work better in my experience (if the devices support it)

Hey, thanks for this, might be just what I was looking for to upgrade from the Wall Panel webviewer app!

At work so can’t test right now, but wanted to know about this feature:
configurable scrolling prevention: when checked, scrolling is completely disabled

Does that mean if my HABpanel has an inner-scrolling area (overflow-scroll or just very tall), which I want to keep, it won’t scroll?

Yes, that’s why I wrote scrolling is completely disabled. :wink:

I had a feeling, but wanted to confirm, thanks :nerd_face:
Is it through an implementation of scroll/swipe blocking?

In that case I guess I’ll restructure my custom HABpanel through CSS to have a scrolling container and fixed bottom nav.

Thanks for the quick reply, cheers!

Version 0.9.8

  • add welcome screen shown on first start
  • report to openHAB when device battery state is low/not low

Nice App. Might help in the development as well. Can you also add the (front) distance sensor as an (extra) motion input. Camera detection only does not work well when it is dark.

It is my plan to add support for reporting more device sensor values (e.g. proximity, light, …) to openHAB items. I will also change the motion detection to no longer activate the screen, but to also report detected motion to openHAB.

1 Like

That is even better. That we can define the relevant rules in OpenHab. Do you need help?

I wonder how you all disabled that the screen goes off after X seconds/minutes? I can only select from few seconds to a max of 30 minutes within android settings.

I have just pushed a pre version that does now report motion and proximity events to openHAB. But I am pretty sure there is no use in the proximity sensor. My tablet does not have one, and my phone only reports ON/OFF, with ON triggering if you are <2cm close to the device.
If you want to try it out, look at the Status Information. It reports the max. range and resolution of the proximity sensor.

hi,
use caffeine

Thank you for the quick response. I tried caffeine and it does the job.

By chance I stumbled over the android developer settings. There is a setting where you can set the display to always on. This did the job for me, too.

I have pushed another pre version with added support for brightness, pressure and temperature sensors. I have no hardware with pressure sensors, so if anybody has a device with pressure sensors, please test and report if it works.