Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release
3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release
4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release
1.9.4 (build 1099) - 28 November 2014
(a
patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from
the Wiki
Discussion of Ken True's web site templates
Moderator: saratogaWX
Michael_Wright
Posts: 140 Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:
Post
by Michael_Wright » Fri 29 Aug 2014 6:23 am
hi where do I put this code in the ajax I wish to do a 7 day forcast mike
Code: Select all
<table>
<tr align="center" valign="top">
<?php print "<td>$forecasticons[0]</td><td>$forecasticons[1]</td>\n"; ?>
</tr>
<tr align="center" valign="top">
<?php print "<td>$forecasttemp[0]</td><td>$forecasttemp[1]</td>\n"; ?>
</tr>
</table>
The Future you have Not seen but the presants shall all ways be.
saratogaWX
Posts: 1198 Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:
Post
by saratogaWX » Fri 29 Aug 2014 6:01 pm
I'm assuming you mean in the ajax-dashboard.php file to replace the section where the current/next forecast is shown.
If so, replace
Code: Select all
<table width="620" border="0" cellpadding="3" cellspacing="3">
<tr>
<td style="text-align: left" class="datahead"> <?php print $fcstorg; ?> <?php langtrans('Weather Forecast'); ?> - <?php langtrans('Outlook'); ?>: <?php echo $forecasttitles[0]; ?> & <?php echo $forecasttitles[1]; ?></td>
</tr>
<tr>
<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="middle" align="center"><strong><?php echo $forecasticons[0] . "</strong><br />" . $forecasttemp[0]; ?></td>
<td style="width: 504px;" class="data1"><?php print "<b>$fcstorg " . langtransstr('forecast') . ":</b> " . $forecasttext[0] . "<br />\n";
if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[0]) ) {
print ' <b>WXSIM ' . langtransstr('forecast') . ':</b> ' . $WXSIMtext[0] . "<br/>\n";
}
if (isset($SITE['DavisVP']) and $SITE['DavisVP'] and isset($vpforecasttext) and $vpforecasttext <> '') {
print ' <b>Davis VP+ ' . langtransstr('forecast') . ':</b> <span style="color: green; font-size:9pt">' . ucfirst($vpforecasttext) . "</span>";
} ?></td>
</tr>
<tr><td colspan="2"> </td></tr>
<tr>
<td class="data1" style="width: 80px;font-size: 8pt; border:none; text-align: center" valign="middle" align="center"><strong><?php echo $forecasticons[1] . "</strong><br />" . $forecasttemp[1]; ?></td>
<td style="width: 504px;" class="data1"><?php print "<b>$fcstorg " . langtransstr('forecast') . ":</b> " . $forecasttext[1];
if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[1]) ) {
print ' <br/><b>WXSIM ' . langtransstr('forecast') . ':</b> ' . $WXSIMtext[1] . "\n";
}
?> </td>
</tr>
</table>
with
Code: Select all
<table width="620" border="0" cellpadding="2" cellspacing="1" style="border:solid; border-color: #CCCCCC;">
<tr>
<td>
<table width="100%" border="1" cellpadding="2" cellspacing="1">
<tr>
<td style="text-align: left" class="datahead"> <?php print $fcstorg; ?> <?php langtrans('Weather Forecast'); ?> -
<?php langtrans('Outlook'); ?> <?php echo $forecasttitles[0]; ?> & <?php echo $forecasttitles[1]; ?></td>
</tr>
<tr>
<td align="center" valign="middle">
<table width="100%" border="0" cellpadding="2" cellspacing="3">
<tr align="center">
<td style="font-size: 9px;border: none;text-align: center" valign="middle" align="center"><strong>
<?php echo $forecasticons[0] . "<br />" . $forecasttemp[0]; ?></strong>
</td>
<td style="width: 240px; text-align: left" >
<?php print "<b>$fcstorg forecast:</b> " . $forecasttext[0] . "<br />\n";
if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[0]) ) {
print ' <span style="color: green;"><b>WXSIM ' . langtransstr('forecast') . ':</b> ' . $WXSIMtext[0] . "<br /></span>\n";
}
if (isset($vpforecasttext) and $vpforecasttext <> '') {
print ' <b>' . langtransstr('Local station forecast') . ':</b> <span style="color: green; font-size: 9px">' . ucfirst($vpforecasttext) . "</span>";
}
?></td>
<td style="font-size: 9px; border:none; text-align: center" valign="middle" align="center"><strong>
<?php echo $forecasticons[1] . "<br />" . $forecasttemp[1]; ?></strong></td>
<td style="width: 240px; text-align: left" ><?php print "<b>$fcstorg " . langtransstr('forecast') . ":</b> " . $forecasttext[1];
if ($fcstorg <> 'WXSIM' and isset($WXSIMtext[1]) ) {
print ' <br/><span style="color: green;"><b>WXSIM ' . langtransstr('forecast') . ':</b> ' . $WXSIMtext[1] . "<br/></span>\n";
}
?> </td>
</tr>
</table>
<?php if($condIconType <> '.jpg') {
print "<small>".langtransstr('Animated icons courtesy of')." <a href=\"http://www.meteotreviglio.com/\">www.meteotreviglio.com</a>.</small>";
}
?>
</td>
</tr>
<tr>
<td>
<table width="100%" border="1" cellpadding="2" cellspacing="1">
<tr>
<td style="text-align: left" class="datahead"> <?php print $fcstorg; ?> <?php langtrans('Short Term Weather Forecast'); ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[2]; ?><br/>
<?php echo $forecasttemp[2]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[3]; ?><br/>
<?php echo $forecasttemp[3]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[4]; ?><br/>
<?php echo $forecasttemp[4]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[5]; ?><br/>
<?php echo $forecasttemp[5]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[6]; ?><br/>
<?php echo $forecasttemp[6]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[7]; ?><br/>
<?php echo $forecasttemp[7]; ?>
</td>
<td style="font-size: 10px;" align="center" width="14%">
<?php echo $forecasticons[8]; ?><br/>
<?php echo $forecasttemp[8]; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
and that should achieve what you want.
Best regards,
Ken
Michael_Wright
Posts: 140 Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:
Post
by Michael_Wright » Fri 29 Aug 2014 10:59 pm
thanks for that Ken been trying out different codes all the time but goot many error's also how do I upgrade to V3 dashboard mike
The Future you have Not seen but the presants shall all ways be.
saratogaWX
Posts: 1198 Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:
Post
by saratogaWX » Sat 30 Aug 2014 2:12 am
Mike,
If you're running a V2 template, then updating the whole thing to V3 is likely your best route. I do have an
Upgrade V2->V3 tool on my site.
The docs there, and on the custom generated .zip distribution containing all you need (with file-by-file recommendations) is the easiest to get all the latest stuff, and position your site for easy future updates.
Best regards,
Ken
Michael_Wright
Posts: 140 Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:
Post
by Michael_Wright » Thu 02 Apr 2015 11:24 am
thanks ken all working now i signed up with godaddy today found that free webhosting dose not work will well with your templates pay like 6.09 month witch is not bad at all. mike
The Future you have Not seen but the presants shall all ways be.