WxSim forecast not displaying

I’m playing around with the Weather Display/PHP/AJAX Website Template Set and I can’t get the WxSim forecast to display with the EC and Davis forecasts on the home page. Would someone tell what I’m doing wrong please?

http://www.beamsvillewx.ca/wd/wxindex.php

Hi Ann-Marie,

As distributed, the templates let you choose one primary forecast agency for use in the dashboard (determined by the Settings.php).
For Canada, you can choose to have either EC or WXSIM provide the forecast icons and text.

If you want to have WXSIM also display a forecast, you’ll need to change the code in ajax-dashboard.php to also include plaintext-parser.php, and change the table layout at the bottom to include both EC and WXSIM displays.

Something like

<?php 
  $doPrint = false;
  include_once("plaintext-parser.php");
?>
       <td align="center">
	    <table width="620" border="0" cellpadding="3" cellspacing="3">
           <tr>
		   <td class="data1" style="width: 80px;font-size: 8pt;border: none;text-align: center" valign="top" align="center">
		   <strong><?php print "<b>$fcstorg  forecast </b>
 "; ?><?php echo $forecasticons[0] . "</strong>
" . $forecasttemp[0]; ?></td>
		   <td class="data1" style="width: 80px;font-size: 8pt;border: none;text-align: center" valign="top" align="center"><strong><?php print "<b>WXSIM forecast</b>
 "; ?><?php echo $WXSIMicons[0] . "</strong>
" . $WXSIMtemp[0]; ?></td>
           <td style="width: 426px;" class="data1"><?php print "<b>$fcstorg  forecast: </b> " . $forecasttext[0] . "
\n";
		   if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[0]) ) {
		      print '              <b>WXSIM  forecast: </b> ' . $WXSIMtext[0] . "
\n";
		   }
		   if ($vpforecasttext <> '') {
		      print '		   	   <b>Davis VP+  forecast:</b> <span style="color: green; font-size:9pt">' . ucfirst($vpforecasttext) . "</span>"; 
			} ?></td>
           </tr>
		   <tr><td colspan="2">&nbsp;</td></tr>
           <tr>
		   <td class="data1" style="width: 80px;font-size: 8pt; border:none; text-align: center" valign="top" align="center"><strong><?php echo $forecasticons[1] . "</strong>
" . $forecasttemp[1]; ?></td>
		   <td class="data1" style="width: 80px;font-size: 8pt; border:none; text-align: center" valign="top" align="center"><strong><?php echo $WXSIMicons[1] . "</strong>
" . $WXSIMtemp[1]; ?></td>
           <td style="width: 504px;" class="data1"><?php print "<b>$fcstorg  forecast: </b> " . $forecasttext[1];
		   if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[1]) ) {
		      print '              
<b>WXSIM  forecast: </b> ' . $WXSIMtext[1] . "\n";
		   }
		    ?>			</td>
           </tr>
       </table>
	 </td>

That’s great, Ken, thanks very much :slight_smile:

hello I would want to create a page like world tempelate but I do not know from where to begin. who puo to help me indicating which rows to me I must edit and which rows to put nell’ ftp Fabry thanks

It’s probably easier to download the WD-World (or WD-World-ML) template, and just copy the code from there into your website. You can choose what to copy and leave the rest behind.

Best regards,
Ken