I've been trying all this time, but I can't not get it:
I have created a block that should display a meteogram from meteoblue.
But I don't get the size in the complete box:
How can I fill the complete block?
(I can embed the link with the img tag, but then it automatically scales so large that the whole blocks are no longer displayed in two columns on my weather page.)
my block looks like this:
Code: Select all
<?php
# meteoblue Meteogram
# Namespace: meteoblue_Meteogram
# Meteotemplate Block
// load theme
$designTheme = json_decode(file_get_contents("../../css/theme.txt"),true);
$theme = $designTheme['theme'];
include("../../../config.php");
include("../../../css/design.php");
include("../../../scripts/functions.php");
$languageRaw = file_get_contents($baseURL."lang/gb.php");
$language['gb'] = json_decode($languageRaw,true);
$languageRaw = file_get_contents($baseURL."lang/".$lang.".php");
$language[$lang] = json_decode($languageRaw,true);
?>
<style>
</style>
<!-- BLOCK CONTENT -->
<h4 align="center">Meteogramm von meteoblue</h4></font>
<iframe src="https://my.meteoblue.com/visimage/meteogram_web?look=KILOMETER_PER_HOUR%2CCELSIUS%2CMILLIMETER%2Cdarkmode&apikey=5838a18e295d&temperature=C&windspeed=kmh&precipitationamount=mm&winddirection=3char&city=Coppenbr%C3%BCgge&iso2=de&lat=52.1185&lon=9.5487&asl=136&tz=Europe%2FBerlin&lang=de&sig=d90adba0224359989865dfa54fc9cd67" srcset="https://my.meteoblue.com/visimage/meteogram_web_hd?look=KILOMETER_PER_HOUR%2CCELSIUS%2CMILLIMETER%2Cdarkmode&apikey=5838a18e295d&temperature=C&windspeed=kmh&precipitationamount=mm&winddirection=3char&city=Coppenbr%C3%BCgge&iso2=de&lat=52.1185&lon=9.5487&asl=136&tz=Europe%2FBerlin&lang=de&sig=f39f07e86a21b682fdb8ee9a68d8038d 1.4x" alt="Meteogram - 5 days - Coppenbrügge"></iframe><div><a href="https://www.meteoblue.com/de/wetter/woche/coppenbr%c3%bcgge_deutschland_2939862" target="_blank" rel="noreferrer" style="display: block;">Wetter Coppenbrügge - meteoblue</a></div>