Enhanced template features
Posted: Wed Apr 14, 2010 10:20 pm
I added these additional variables to be used in templates (and tables and cvs exports as well):
Examples of use:
[20100101000000_day1_misc_lunarphasetext]
[actual_day1_misc_sunrisestandardlocaltime]
New variables are defined as properties of a virtual sensor id named "misc". This virtual id does not retrieve data from database but computes results from given information like timestamp, etc.
When new charting engine does show problems with your existing graphs, please report to me and temporarily use "meteochart-v1.cgi" instead of "meteochart.cgi" for displaying graphs. "v1" is the old engine.
- longitude, latitude
- localtime, utctime
- uploadlocaltime, uploadutctime
- unarphasepercentage
- lunarphasesegment
- lunaragedays
- lunarphasetext
- lunarphaseicondaylengthstandardhours, daylengthcivilhours, daylengthnauticalhours
- daylengthstandardtime, daylengthciviltime, daylengthnauticaltimesunrisestandardutctime, sunsetstandardutctime, sunrisestandardlocaltime, sunsetstandardlocaltime, sunriseciviltwilightutctime, sunsetciviltwilightutctime, sunriseciviltwilightlocaltime, sunsetciviltwilightlocaltime, sunrisenauticaltwilightutctime, sunsetnauticaltwilightutctime, sunrisenauticaltwilightlocaltime, sunsetnauticaltwilightlocaltime
- moonriseutctime, moonsetutctime, moonriselocaltime, moonsetlocaltime
Examples of use:
[20100101000000_day1_misc_lunarphasetext]
[actual_day1_misc_sunrisestandardlocaltime]
New variables are defined as properties of a virtual sensor id named "misc". This virtual id does not retrieve data from database but computes results from given information like timestamp, etc.
When new charting engine does show problems with your existing graphs, please report to me and temporarily use "meteochart-v1.cgi" instead of "meteochart.cgi" for displaying graphs. "v1" is the old engine.