Page 1 of 1

New dashboardCombined Block

Posted: Sun Feb 08, 2026 4:21 pm
by davidefa
This is a replacement for graphCombined block ( which does not work very well anymore ), updated to use the newer 'dashboard' feature of highcharts ( which is the library used to draw charts in meteotemplate ).
To use it you need to update your indexDesktop.php script near line 212 adding the following lines, after similar ones ( same for script indexFull.php near line 83 ):

Code: Select all

        <script src="https://code.highcharts.com/dashboards/dashboards.js"></script>
        <script src="https://code.highcharts.com/dashboards/modules/layout.js"></script>
Configuration is the same as the graphCombined block.

ver 0.1 dashboardCombined
- initial release

ver 0.2 dashboardCombined
- corrected block naming error to dashboardCombined

ver 0.3 2026-02-10 dashboardCombined
- corrected aligment of x axis and data


If you have other charts in your homepage, please install the accompanying dashboardCombinedI block too.
This is an iframe that stops the interaction with other charts.
To use it you need to copy the included indexFull1.php and header1.php in your meteotemplate root directory and in your desktop layout you have to add the dashboardCombinedI
dashboardCombined_0.3.zip
(7 KiB) Downloaded 175 times
dashboardCombined_0.2.zip
(7.09 KiB) Downloaded 189 times
dashboardCombinedI_0.2.zip
(10.66 KiB) Downloaded 187 times

Re: New dashboardCombined Block

Posted: Wed Feb 11, 2026 11:08 am
by alexvanuxem
Hi David,

Thank you again!

With me only the iframe seems to work, is that the intention ?

Also the wind and windvector block doesn't work anymore , maybe the same issue as with the graphscombined block (highcharts)?

When I do ?errors after my sitename I hget a lot of errors with indexDesktop.php on line 144 (not related to your block):
for($i=0;$i<count($installedBlocks);$i++){
if($latestVersions['blocks'][$installedBlocks[$i][0]]>$installedBlocks[$i][2]){
$blocksToUpdate[] = $installedBlocks[$i][0];
} with example of error: Warning: Undefined array key "dashboardCombinedI" in /var/www/sint-katelijne-waver-meteo.be/sint-katelijne-waver-meteo.be/wwwroot/template/indexDesktop.php on line 144

and in my php log [Wed Feb 11 12:04:25.237104 2026] [proxy_fcgi:error] [pid 2275211:tid 2275257] [client 84.197.91.132:0] AH01071: Got error 'PHP message: PHP Warning: Undefined array key "us" in /var/www/sint-katelijne-waver-meteo.be/sint-katelijne-waver-meteo.be/wwwroot/template/scripts/functions.php on line 122', referer: https://www.sint-katelijne-waver-meteo. ... php?errors

Any ideas?

Grtz

Alex

Re: New dashboardCombined Block

Posted: Thu Feb 12, 2026 10:03 pm
by davidefa
Well... I forgot a line, you have to add the following two lines to indexDesktop and indexFull:

Code: Select all

        <script src="https://code.highcharts.com/dashboards/dashboards.js"></script>
        <script src="https://code.highcharts.com/dashboards/modules/layout.js"></script>
Installing only dashboardCombined you may find other blocks 'performing strangely' ( this happened with graphCombined too ).

I updated the other blocks too for compatibility with php 8.5 ( will post updates ).
Would like to post a complete template update for php 8.5 ( still 'a few' things to complete )

Re: New dashboardCombined Block

Posted: Fri Feb 13, 2026 9:42 am
by alexvanuxem
Hi David,

the block is ok now. Thank you for that.

Thanks for all the good work!
I'm happy to help you and test things out if needed!

KR

Alex