Meteox have changed the format of their rain radar widget
https://widgets.meteox.com/en-gb
I have no idea how to incorporate the new widget into my PWS!
Meteox have changed the format of their rain radar widget
https://widgets.meteox.com/en-gb
I have no idea how to incorporate the new widget into my PWS!
You can use the widgets in a webcam block.
Line 67-68 reads in the original version
echo '<img src="'.$webcam_img.'" alt="weathercam" style="'.$webcam_width.$webcam_height.';" />
</a>'.PHP_EOL;
The information between line 67 echo '
and the next line </a>'
needs to be replaced with the code you copy from the Meteox site.
Click button āApply and Get Codeā and then āCopy codeā
Many thanks for your quick reply
Done as you suggested but the end result is not so good
The popup window is perfect!
The small visible area is the second improvement we need.
Better not use the widget with the two coloured bottom rows.
Select another one.
The popup from the āenlargeā text is the third thing we have to adept.
Luckily when clicking the image we already go to their new website.
There will be more users of the old meteox widget, so I think there will be also a few users with time on their hand to solve these issues.
Wim
Ok - many many thanks - I will wait and in the meantime use another tile in its place!!
Hi Wim
Using your example Webcam 3 Block I have a rain radar working with Windy
Many thanks
just for info i found this part of the code
style="width:100%!important;max-width:600px!important;max-height:600px!important;height:100%!important;padding:0px;border:none!important;box-sizing:border-box!important;" scrolling="no" frameborder="0"></iframe>
was causing a letter box display had to change to
width="100%" height="800" scrolling="yes" frameborder="0" name="iframe"></iframe>
this gave the size required Ballaugh Weather - Radar (hc-iom.co.uk) as they clearly have not checked the code that they provide
Our discourse system āimprovesā our texts by changing the straight quotes to curly qoutes.
Those do not work in html, if you copy the code from hcorrinās post the code will fail
Copy from this line:
width="100%" height="800" scrolling="yes" frameborder="0" name="iframe"
You should adept the 100% and 800 to your situation.
Wim
To ensure code isnāt reformatted incorrectly you can use three backticks ``` on a line above and below the code. Discourse will try itās best to identify code and prompt you to add the backticks, but it doesnāt mandate/force this.
You can go a step further and identify what type of code the backticks contain to further āimproveā the formatting, e.g. ```php can be used to mark a block of PHP code. Thereās an extensive list of languages supported by this function - see
Supported Languages ā highlight.js 11.9.0 documentation for the full list.
Iāve edited the original code block to add backticks.
PS. If you wish to protect a block of code from being edited but not reformatted in any way you can use ```text