Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
335 bytes added ,  18:49, 23 January 2015
m
→‎Slightly less simple customisation of trendsT.htm: Text re-sequenced when adding comment only applies to Cumulus 1
m (→‎Slightly less simple customisation of trendsT.htm: Text re-sequenced when adding comment only applies to Cumulus 1)
Line 187: Line 187:
</pre>
</pre>
=== Slightly less simple customisation of trendsT.htm ===
=== Slightly less simple customisation of trendsT.htm ===
There are many ways that ''trendsT.htm'' can be modified.
The standard template plots temperature range and rainfall on a day by day basis for the '''Daily Chart period''' as set on ''Display'' settings screen from '''Configuration menu''', but all the other graphs plot points at 10 minutes interval for thumbnails and 1 minute interval for the large graph (assuming you have left Cumulus running) for the '''Detailed Chart Period''' set in the same place.
 
There are many ways that ''trendsT.htm'' (this section applies to Cumulus version 1 only) can be modified.
# You can change which Cumulus produced graphs are included (the standard version includes indoor temperature but excludes solar related graphs). The necessary edits to do this are described below.
# You can change which Cumulus produced graphs are included (the standard version includes indoor temperature but excludes solar related graphs). The necessary edits to do this are described below.
# The standard template uses JavaScript to action the change of the large graph when a thumbnail graph is clicked. All modern browsers support script, but you might want to eliminate script and just use pure HTML as explained  [[Editing_content_of_a_webpage_using_either_HTML_or_Script| elsewhere in this Wiki]].
# The standard template uses JavaScript to action the change of the large graph when a thumbnail graph is clicked. All modern browsers support script, but you might want to eliminate script and just use pure HTML as explained  [[Editing_content_of_a_webpage_using_either_HTML_or_Script| elsewhere in this Wiki]].
# The standard template plots temperature range and rainfall on a day by day basis for the '''Daily Chart period''' as set on ''Display'' settings screen from '''Configuration menu''', but all the other graphs use the '''Detailed Chart Period''' set in the same place and plot points at 10 minutes interval for thumbnails and 1 minute interval for the large graph (assuming you have left Cumulus running).  If you want points plotted at hourly intervals for up to 7 days, the recent history tags and external script libraries can be used to do this as explained [http://sandaysoft.com/forum/viewtopic.php?f=18&t=12321 in this thread on the support forum].
# If you want points plotted at hourly intervals for up to 7 days, the recent history tags and external script libraries can be used to do this as explained [http://sandaysoft.com/forum/viewtopic.php?f=18&t=12321 in this thread on the support forum].
# That same support forum thread includes how to plot histograms (best for daily totals such as rainfall and windrun) made from colour blocks reading the values from the daily summary log. But of course if you use PHP, you might want to read from a database table with similar information.


TO CHANGE WHICH GRAPHS ARE INCLUDED:
TO CHANGE WHICH GRAPHS ARE INCLUDED:
5,838

edits

Navigation menu