I experimented that way and got text and data but haven't figured out yet how to get the columns to line up, let alone how to put separate text and data on the same line.
![bash :bash:](./images/smilies/bash.gif)
Paul
Moderator: saratogaWX
Well for your 'record's (recordT.htm data simple cut/pastePaulMy wrote:Thanks nitrx,
I experimented that way and got text and data but haven't figured out yet how to get the columns to line up, let alone how to put separate text and data on the same line.![]()
Paul
Code: Select all
<p>Recorden vanaf <#recordsbegandate>. Hier zijn de extremen vanaf.</p>
<table width="100%" cellpadding="0" cellspacing="0" id="Current_Weather_Records">
<caption>Recorden vanaf <#recordsbegandate></caption>
<tr>
<td colspan="3" class="tableseparator_temp">Temperatuur en Rel. Luchtvochtigheid</td>
</tr>
<tr class="td_temperature_data">
<td class="main_table_text_labels">Hoogste Temperatuur</td>
<td class="right_align_indented"><#tempH> <#tempunit></td>
<td class="right_align_indented"><#TtempH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_temperature_data">
<td class="main_table_text_labels">Laagste Temperatuur</td>
<td class="right_align_indented"><#tempL> <#tempunit></td>
<td class="right_align_indented"><#TtempL format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_temperature_data">
<td class="main_table_text_labels">Laagste Wind chill</td>
<td class="right_align_indented"><#wchillH> <#tempunit></td>
<td class="right_align_indented"><#TwchillH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_temperature_data">
<td class="main_table_text_labels">Hoogste Minimum Temperatuur</td>
<td class="right_align_indented"><#mintempH> <#tempunit></td>
<td class="right_align_indented"><#TmintempH format="'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_temperature_data">
<td class="main_table_text_labels">Laagste Maximum Temperatuur</td>
<td class="right_align_indented"><#maxtempL> <#tempunit></td>
<td class="right_align_indented"><#TmaxtempL format="'op' dd mmmm yyyy"></td>
</tr>
<tr>
<td colspan="3" class="tableseparator_rainfall">Neerslag</td>
</tr>
<tr class="td_rainfall_data">
<td class="main_table_text_labels">Hoogste neerslagintensiteit per uur</td>
<td class="right_align_indented"><#rrateM> <#rainunit>/hr</td>
<td class="right_align_indented"><#TrrateM format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_rainfall_data">
<td class="main_table_text_labels">Hoogste neerslag per uur</td>
<td class="right_align_indented"><#rfallhH> <#rainunit></td>
<td class="right_align_indented"><#TrfallhH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_rainfall_data">
<td class="main_table_text_labels">Hoogste dagelijkse neerslag</td>
<td class="right_align_indented"><#rfallH> <#rainunit></td>
<td class="right_align_indented"><#TrfallH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_rainfall_data">
<td class="main_table_text_labels">Hoogste maandelijkse neerslag</td>
<td class="right_align_indented"><#rfallmH> <#rainunit></td>
<td class="right_align_indented"><#TrfallmH format="'over' mmmm yyyy"></td>
</tr>
<tr>
<td colspan="3" class="tableseparator_wind">Wind</td>
</tr>
<tr class="td_wind_data">
<td class="main_table_text_labels">Hoogste windvlaag</td>
<td class="right_align_indented"><#gustM> <#windunit></td>
<td class="right_align_indented"><#TgustM format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_wind_data">
<td class="main_table_text_labels">Hoogste Windsnelheid</td>
<td class="right_align_indented"><#wspeedH> <#windunit></td>
<td class="right_align_indented"><#TwspeedH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr>
<td colspan="3" class="tableseparator_pressure">Luchtdruk op zee niveau</td>
</tr>
<tr class="td_pressure_data">
<td class="main_table_text_labels">Laagste Luchtdruk</td>
<td class="right_align_indented"><#pressL> <#pressunit></td>
<td class="right_align_indented"><#TpressL format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
<tr class="td_pressure_data">
<td class="main_table_text_labels">Hoogste Luchtdruk</td>
<td class="right_align_indented"><#pressH> <#pressunit></td>
<td class="right_align_indented"><#TpressH format="'om' hh:nn 'op' dd mmmm yyyy"></td>
</tr>
</table>
Code: Select all
<?php langtrans('Gust Month'); ?>: <?php echo $mrecordwindgust. " $uomWind"; ?>
Code: Select all
. " $uomWind"
I tried that with the Cumulus tags but found I needed to use the php tags provided in Ken's template and that is where I got into deep trouble.Well for your 'record's (recordT.htm data simple cut/paste
Maybe I should leave it your language so I can refresh my Vlaamsand not use my language
Ron, Paul cannot just cut-and-paste the code as the templates are not processed by Cumulus - meaning the Cumulus tags will not be added.nitrx wrote:Well for your 'record's (recordT.htm data simple cut/paste
Code: Select all
tempH|<#tempH>:|:
Code: Select all
$tempH = $WX['tempH'];
Code: Select all
<td class="right_align_indented"><#tempH> <#tempunit></td>
Code: Select all
<td class="right_align_indented"><?php echo $tempH . ' ' . $uomtemp; ?></td>
Code: Select all
<?php print $WX['variableName']; ?>
Code: Select all
<td>Temperature</td>
Code: Select all
<td><?php langtrans('Temperature'); ?></td>
Code: Select all
langlookup|Records began on|Records began on|
langlookup|Here are the extremes recorded since then|Here are the extremes recorded since then|
langlookup|Records Since|Records Since|
langlookup|Highest|Highest|
langlookup|Lowest|Lowest|
langlookup|Wind Chill|Wind Chill|
langlookup|Minimum|Minimum|
langlookup|Maximum|Maximum|
langlookup|Rainfall|Rainfall|
langlookup|Hourly Rainfall|Hourly Rainfall|
langlookup|Daily Rainfall|Daily Rainfall|
langlookup|Monthly Rainfall|Monthly Rainfall|
langlookup|Wind Gust|Wind Gust|
langlookup|Wind Speed Average|Wind Speed Average|
Code: Select all
langlookup|Records began on|Recorden vanaf|
langlookup|Here are the extremes recorded since then|Hier zijn de extremen vanaf|
langlookup|Records Since|Recorden vanaf|
langlookup|Highest|Hoogste|
langlookup|Lowest|Laagste|
langlookup|Wind Chill|Wind Chill|
langlookup|Minimum|Minimum|
langlookup|Maximum|Maximum|
langlookup|Rainfall|Neerslag|
langlookup|Hourly Rainfall|neerslag per uur|
langlookup|Daily Rainfall|dagelijkse neerslag|
langlookup|Monthly Rainfall|maandelijkse neerslag|
langlookup|Wind Gust|windvlaag|
langlookup|Wind Speed Average|Windsnelheid|
Ummm.. not quite. The ajax-dashboard hasn9mfk wrote:Ken
line 515 of ajax-dashboard b readsin all v2 dashboard do not have theCode: Select all
<?php langtrans('Gust Month'); ?>: <?php echo $mrecordwindgust. " $uomWind"; ?>
BeauCode: Select all
. " $uomWind"
Code: Select all
$uomWind = ' mph';
...
if (isset($SITE['uomWind'])) {$uomWind = $SITE['uomWind'];}
Thanks Ken, I understand the advantages (allthough it's all very complicated to me) but it seems the date and time functions will give strange figures I get data in the seventies http://www.apeldoorn.tk/weer/wxcurecords.php compared to my 'real' data http://www.apeldoorn.tk/weer/wxlinks.php , I'll try to do some other pages this week like today and yesterdayT.htmsaratogaWX wrote: I'm not trying to say this is the only way to add new pages with native Cumulus data, and you are free to do as you wish. The suggested method above has several advantages:
1) it is easier on you long-term
2) it keeps your template system maintainable for future updates
3) it lets you easily offer translations
4) it presents the UOM and date/time format as you specified in the Settings.php
5) it avoids unnecessary uploads by leveraging the single CUtags.php for ALL the Cumulus data available
I hope this helps... enjoy the new wxcurecords.php page
Best regards,
Ken
Hi Ron,nitrx wrote:Thanks Ken, I understand the advantages (allthough it's all very complicated to me) but it seems the date and time functions will give strange figures I get data in the seventies http://www.apeldoorn.tk/weer/wxcurecords.php compared to my 'real' data http://www.apeldoorn.tk/weer/wxlinks.php , I'll try to do some other pages this week like today and yesterdayT.htmsaratogaWX wrote: I'm not trying to say this is the only way to add new pages with native Cumulus data, and you are free to do as you wish. The suggested method above has several advantages:
1) it is easier on you long-term
2) it keeps your template system maintainable for future updates
3) it lets you easily offer translations
4) it presents the UOM and date/time format as you specified in the Settings.php
5) it avoids unnecessary uploads by leveraging the single CUtags.php for ALL the Cumulus data available
I hope this helps... enjoy the new wxcurecords.php page
Best regards,
Ken![]()
Thanks,
Ron
Ahh... I didn't really understand your first question correctly.n9mfk wrote:Hi Ken,
I do not think i was clear in my last post
on line 515 if you look st the image it reads Gust Month: 34.0 mph Feb 01
most v2 ajax-dashboard read Gust Month: 34.0 Feb 01
so i was ask to have the mph removed on that 1 line
Beau
Code: Select all
<?php langtrans('Gust Month'); ?>: <?php echo $mrecordwindgust. " $uomWind"; ?>
Code: Select all
<?php langtrans('Gust Month'); ?>: <?php echo $mrecordwindgust; ?>
Great that does the jobsaratogaWX wrote: I've done an update to the wxcurecords.php page to add additional processing in the date areas. I forgot that I needed to convert the <i>dd month yyyy</i> where month was in Dutch to english for processing by strtotime(). I borrowed a bit of that function from the wxastronomy.php page, so now the months display as they should.
Best regards,
Ken
Thanks Ken,can see there is some confusion on how you can add a page with native Cumulus variables on the page, so I've generated an example (attached) of the port of the recordsT.htm template so you can see how it can be done.
In short:
1) you should never have to upload a PHP page with embedded Cumulus <#variableName> markup .. all the available Cumulus tags are available in PHP through the upload of CUtags.txt->CUtags.php and are useable as
Hi Paul,PaulMy wrote:Thanks Ken,can see there is some confusion on how you can add a page with native Cumulus variables on the page, so I've generated an example (attached) of the port of the recordsT.htm template so you can see how it can be done.
In short:
1) you should never have to upload a PHP page with embedded Cumulus <#variableName> markup .. all the available Cumulus tags are available in PHP through the upload of CUtags.txt->CUtags.php and are useable as
I had learned what needs to be done just not familiar enough yet with php to get the right results (got the data - high temp, date and time, etc. to show but all on different lines) so took the simple way that I could handle for the time being. I will look at wxcurecords.zip and work on it further so it will continue when the ajax/php templates replaces my existing.
On another matter, I have looked but without success, where would I remove the text "The WXSIM forecast is not currently available." that is displayed on the Home page below the local Radar?
Then on to changing the top header with some images/graphics, text, etc. before the changeover. It has been a great learning experience.
Paul
Code: Select all
$SITE['WXSIM'] = true; // Set to false if no WXSIM/plaintext-parser.php
Code: Select all
$SITE['WXSIM'] = false; // Set to false if no WXSIM/plaintext-parser.php