Page 1 of 1

Howto setup iframe button ?

Posted: Thursday 12 April 2018 15:39
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

Re: Howto setup iframe button ?

Posted: Wednesday 18 April 2018 8:47
by tontze
no one ?

Re: Howto setup iframe button ?

Posted: Wednesday 18 April 2018 21:22
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