Dashticz - openpopupOn
Posted: Sunday 19 July 2020 14:05
I want to show a popup when the doorbell is triggered.
In this popup, I want to show a snapshot of the doorbell camera.
The popup is working, but the image is too large to fit in the popup.
This is happening using chrome, chromium, but firefox is automatically resizing the image.
The image is shown on a 3.5rpi display.

Is there a possibility to make the popup resize the image? Or even better, show the popup full screen with the picture shrinkToFit
In this popup, I want to show a snapshot of the doorbell camera.
The popup is working, but the image is too large to fit in the popup.
This is happening using chrome, chromium, but firefox is automatically resizing the image.
The image is shown on a 3.5rpi display.

Is there a possibility to make the popup resize the image? Or even better, show the popup full screen with the picture shrinkToFit
Code: Select all
blocks[96] = {}
blocks[96]['openpopupOn'] = {}
blocks[96]['openpopupOn']['url'] = 'http://192.168.2.23:8080/cam/capture.jpg';
blocks[96]['openpopupOn']['auto_close'] = 120; //seconds
blocks[96]['openpopupOn']['framewidth'] = 480;
blocks[96]['openpopupOn']['frameheight'] = 320;