################################################################################ ### FOR beteljuice's "yet another dayfile reader" HowTo ## file version 7.1.1 ## ################################################################################ After downloading the .zip you will need some files but which ones? A working system needs 4 files plus the 5 graphics plus access to the dayfile.txt file which Cumulus uploads each night. 1. betel_dayfile_languages.php 2. betel_readDayfile.php 3. a .css file - see below. 4. a basic.php - ('holding' page) also see below 5. the 6 graphic files (daffodil.png, hatch2.jpg, leaf.png, snowflake.png, sun.png, raindrop.png) There are 4 .css files to choose from; wide - betel_datasummary.css (900px) medium - 750betel_datasummary.css (750px) narrow - 700betel_datasummary.css (700px) with 3 basic.php files to match and meteo900_betel_datsummary.css - for use with Weather By You template Only you can decide which is best for you and you can try them all. The sample scripts below assume the chosen width of .css file has been renamed to betel_datasummary.css but you can change it to the original if you prefer. ################################################################################ Customisation; 1. Starting at approx. line #45 of betel_readDayfile.php work your way through IT IS RECOMMENDED betel_readDayfile.php IS IN THE SAME DIRECTORY AS THE PAGE WHICH USES IT !! - If NOT you have to change $this_file_name = The location for your dayfile.txt, $buttons = .. You have a choice of a 'buttons' menu OR a dropdown menu in the table title. $show_year_averages = true; // show year(s) averages below daily summary, true / false 2. Southern Hemisphere? Simply change $north_hemisphere = true; at approx. line #54 to false - this will reverse the seasons in all languages. 3. NEW with Ver 7.1 - Settings for any kind of solar sensors. READ the notes at line #57 and enter at least a 'start' date for the sensors involved. Sun hours bargraph options - READ the notes at line #74 set your choice. *** If you want to use 0 or 1 you MUST set your lat long co-ordinates ( and perhaps time zone) *** So do it ! - lines 94 to 88 4. Make sure you have defined your 'native' Units Of Measure at uom array aprox. line #110 ... although if you are using 'satatogaWX' style template these will set automatically. 5. Languages: A seperate betel_dayfile_languages.php look-up file is provided which you may add to ;-) To set the default to anything other than 'en', it can be changed at approx. line #118 6. Change 'default' page from 'daily' to 'seasonal' To do this permanently change line approx #141 (// which table do we want ?) OR simply on-the-fly on the 'link' url add eg. ***.php?pane=1 7. To remove unwanted data items from the menu(s); In betel_readDayfile.php See the notes beginning at approx. line #147 - especially the part about show buttons. In the following $label_items array change true to false near the end of the lines for the menu items you DON'T want to display OR DON'T have sensors for ! 8. You may want to alter the order of the buttons in the $list_items array. see NOTE line #158 in order to achieve a better looking layout (Different languages may also influence your decision) 9. Change 'default' dataset (currently 'maxxtemp') To do this permanently go to the bottom of the script and change approx. line #2447 $dataSet = 'maxtemp'; // default dataset OR simply on-the-fly on the 'link' url add eg. ***.php?data=??????? ******************************************************************************** CUMULUS EXAMPLE ################################################################################ For the Cumulus generated standard website, create a new page combining features from the standard cumulus pages and basic.php and name it betel_datasummaryT.htm. This is an example of a working Cumulus betel_datasummaryT.htm Template file; <#location>

<#location>

 Latitude <#latitude>    Longitude <#longitude>    Elevation <#altitude>

:now: :annual data: :gauges: :today: :yesterday: :this month: :this year: :records: :monthly records: :trends: <#forum><#webcam>


Page updated <#update>
powered by Cumulus v<#version> (<#build>) Valid HTML | Valid CSS

And this into the menu bar at the bottom of all the other ...T.htm pages in c:\cumulus\web; :annual data: On the Cumulus 'Internet Settings', 'Files' screen, add an entry; a. 'local filenames' C:\cumulus\web\betel_datasummaryT.htm b. 'Remote filenames' websitepathname/betel_datasummary.php where websitepathname is the same as in 'Directory' on the 'Internet Settings', 'Sites/Options' screen. NOTE:- the output is .php not .htm !! c. tick Process? and FTP? Note: Normally the only thing on this page that is going to be updated is the time / date at the bottom of the page. So once it has been processed / uploaded, you could edit that WEB file (removing date / time reference) and then remove it from the Cumulus internet settings. (or untick process / edit options) ******************************************************************************** SARATOGA template example ################################################################################ For Saratoga Template websites create a new 'starter' file combining features from a Saratoga wxnewpage.php file and basic.php. This is an example of a working Saratoga starter script; # TNET Services, Inc. # # Copyright: (c) 1992-2007 Copyright TNET Services, Inc. ############################################################################ # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 3 Settings ############################################################################ //Version CU 1.00 - 18-Sep-2012 - CU in Cumulus format require_once("Settings.php"); require_once("common.php"); ############################################################################ $useUTF8 = true; // force this page to convert language files to UTF8 for display $TITLE="Annual Weather Data"; $showGizmo = true; // set to false to exclude the gizmo include("top.php"); ############################################################################ ?>
The; allows the output to sit properly beside the flyout menu. Adding this into flyout-menu.xml will provide direct access to both daily and seasonal options without compromising the internal menu however on a page refresh it will return to the version selected from the flyout-menu. ******************************************************************************** For the Weather by You PHP 'Weather Blues' generated standard website, create a new page combining features from the empty.php pages and basic.php and name it betel_datasummary.php. ################################################################################ This is an example of a working 'Weather By You' betel_datasummary.php Template file ################################################################################ My own page
?>

<#location>

 Latitude <#latitude>    Longitude <#longitude>    Elevation <#altitude>

Cumulus / saratoga instructions - BCJKiwi "Weather By You" instructions - joewith Edited by the beteljuice