Thrifty - Cutils Command Qualifier: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:


Thrifty was primarily developed with internet transfers in mind, in a second stage CPU usage and generation were added. This is a work in progress as user requests, new efficiency discoveries and efficiency code changes will change over time.
Thrifty was primarily developed with internet transfers in mind, in a second stage CPU usage and generation were added. This is a work in progress as user requests, new efficiency discoveries and efficiency code changes will change over time.
'''NOTE: With the coming of the [[ChartsCompiler]] the Thrifty algorithm for the ''Website'' command for the charts and for cumulsutuils.txt (containing the Home page charts) will change. Until then it is like below and if you use the [[ChartsCompiler]] you should run a non Thrifty Website command if you  make changes.'''


== Operation ==
== Operation ==
Line 15: Line 17:


   utils/bin/cumulusutils.exe Thrifty Website      => This activates the Thrifty command qualifier on the Website generation
   utils/bin/cumulusutils.exe Thrifty Website      => This activates the Thrifty command qualifier on the Website generation
  utils/bin/cumulusutils.exe Thrifty All          => This activates the Thrifty command qualifier on the All modules generation
   utils/bin/cumulusutils.exe Website Thrifty      => This only runs Website, Thrifty is ignored  
   utils/bin/cumulusutils.exe Website Thrifty      => This only runs Website, Thrifty is ignored  
   utils/bin/cumulusutils.exe YADR Records Thrifty  => This activates the Thrifty command qualifier on the named modules
   utils/bin/cumulusutils.exe YADR Records Thrifty  => This activates the Thrifty command qualifier on the named modules
Line 34: Line 35:
   MiscGraphsPeriod=1
   MiscGraphsPeriod=1
   SolarGraphsPeriod=3
   SolarGraphsPeriod=3
For specified parts or/of modules, periodicity can be specified for the Thrifty system. See also the table below. Numbers are in days. Default is 1 day for each parameter. So if you give a periodicity of 2 for e.g. the temperature graphs (not individual graphs), then every other day the temperature graphs will be refreshed.
If the following is true then the module is calculated:
  <math>{current\ day\ of\ year}\, \bmod\, {periodicity} \equiv 0</math>
So, for that temperature graph, on a 123th day of the year, with a periodicity of 3 those graphs will be created. With a periodicity of 4 it will not.
Advise: Start with the defaults and if it takes too long, start augmenting the periodicity, balancing it to your need for up to date graphs. First graphs to look at would be the Wind graphs (which includes the WindRose).


== Inner working ==
== Inner working ==
Line 73: Line 82:
=== Uploading Automatically ===
=== Uploading Automatically ===
Automatic ''Thrifty'' handling assumes a daily run of ''CumulusUtils''.
Automatic ''Thrifty'' handling assumes a daily run of ''CumulusUtils''.
For proper understanding we split the usage in ''modules'' and ''website''.
==== Thrifty Website ====
Under Thrifty, the following holds for the website files and the website infrastructure:
#Always upload ''index.html'' after generating the website.
#The runtime javascript environment files will NOT be generated and NOT be uploaded - to prevent old existing files to upload - under the ''Thrifty Website'' command.
#The library files from the distribution will NOT upload under the ''Thrifty Website'' command:
Runtime javascript environment files:
cumulusutils.js
cumuluscharts.txt
HighchartsLanguage.js
Library files from the distribution:
HighchartsDefaults.js
gauges.js
suncalc.js
tween.min.js
language.js
RGraph.common.core.js
RGraph.rose.js
steelseries.min.js
NOTE: When updating, copy those files from the distribution and DO NOT USE THRIFTY
==== Thrifty Modules ====
The decision to automatically upload a file or not - assuming ''DoUploadFTP=true'' = is done on the basis of two parameters:
The decision to automatically upload a file or not - assuming ''DoUploadFTP=true'' = is done on the basis of two parameters:
#Have the cycle conditions become true
#Have the cycle conditions become true
Line 108: Line 145:
| Yadr || yadr.txt<br>yadrtemp{year}.txt<br>yadrrain{year}.txt<br>yadrwind{year}.txt<br>yadrwindrun{year}.txt<br>yadrpress{year}.txt<br>yadrhum{year}<br> || 2d day of year<br>current year<br>current year<br>current year<br>current year<br>current year<br>current year<br> || 2d day of year<br>current year<br>current year<br>current year<br>current year<br>current year<br>current year<br>
| Yadr || yadr.txt<br>yadrtemp{year}.txt<br>yadrrain{year}.txt<br>yadrwind{year}.txt<br>yadrwindrun{year}.txt<br>yadrpress{year}.txt<br>yadrhum{year}<br> || 2d day of year<br>current year<br>current year<br>current year<br>current year<br>current year<br>current year<br> || 2d day of year<br>current year<br>current year<br>current year<br>current year<br>current year<br>current year<br>
|-
|-
| AirQuality || airquality.txt || Never || Never
| AirLink || airlink.txt || Never || Never
|-
|-
| StationMap || Stationmap.txt || Never || Never
| StationMap || Stationmap.txt || Never || Never
Line 114: Line 151:


<references />
<references />
[[Category:CumulusUtils]]

Navigation menu