Howto setup iframe button ?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Howto setup iframe button ?

Post by tontze »

Hi !

Ive been trying to set up iframe window to dashticz, but havent succeed this far. I would like to get meteo from this site :

https://www.meteoblue.com/en/weather/wi ... and_643492

This is what i have come up to, it is completely ignored by dashticz, no error, not anything visible either :(

Code: Select all

var frames = {}
frames.weather = {refreshiframe:10000,height:500,frameurl:'https://www.meteoblue.com/en/weather/widget/daily/tampere_finland_634963?geoloc=fixed&days=7&tempunit=CELSIUS&windunit=KILOMETER_PER_HOUR&precipunit=MILLIMETER&coloured=monochro\
me&pictoicon=0&pictoicon=1&maxtemperature=0&maxtemperature=1&mintemperature=0&mintemperature=1&windspeed=0&windspeed=1&windgust=0&winddirection=0&winddirection=1&uv=0&humidity=0&precipitation=0&precipitation=1&precipitationprobability=0\
&precipitationprobability=1&spot=0&pressure=0&layout=light%22%20frameborder=%220%22%20scrolling=%22NO%22%20allowtransparency=%22true%22%20sandbox=%22allow-same-origin%20allow-scripts%20allow-popups%20allow-popups-to-escape-sandbox%22%20\
style=%22width:%20378px;height:%20303px%22%3E%3C/iframe%3E%3Cdiv%3E%3C!--%20DO%20NOT%20REMOVE%20THIS%20LINK%20--%3E%3Ca%20href=%22https://www.meteoblue.com/en/weather/forecast/week/tampere_finland_634963?utm_source=weather_widget&utm_me\
dium=linkus&utm_content=daily&utm_campaign=Weather%2BWidget%22%20target=%22_blank%22%3Emeteoblue%3C/a%3E%3C/div%3E',width:12}

Code: Select all

columns[12] = {}
columns[12]['blocks'] = [2,250,144,1,162,36,'frames.weather']
columns[12]['width'] = 6
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Howto setup iframe button ?

Post by tontze »

no one ?
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
Beschuitje
Posts: 32
Joined: Saturday 24 February 2018 12:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Howto setup iframe button ?

Post by Beschuitje »

You need to get rid of the '. I put your weather frame in my dashticz and it worked

change

Code: Select all

columns[12] = {}
columns[12]['blocks'] = [2,250,144,1,162,36,'frames.weather']
columns[12]['width'] = 6
to

Code: Select all

columns[12] = {}
columns[12]['blocks'] = [2,250,144,1,162,36,frames.weather]
columns[12]['width'] = 6
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest