Dashticz - openpopupOn

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
azonneveld
Posts: 160
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Dashticz - openpopupOn

Post by azonneveld »

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.

Image

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; 
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
azonneveld
Posts: 160
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Dashticz - openpopupOn

Post by azonneveld »

[bump]
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest