Php webtags: Difference between revisions

440 bytes added ,  17:30, 26 June 2020
m
Line 106: Line 106:
If there are dates and times to output, Cumulus changes the date for certain web tags for times between midnight and rollover time (if 9am or 10am). Be sure you understand how any ready-made script is reporting combinations of date and time.
If there are dates and times to output, Cumulus changes the date for certain web tags for times between midnight and rollover time (if 9am or 10am). Be sure you understand how any ready-made script is reporting combinations of date and time.


=== station and/or sensor specific tags ===
=== Tags that are specific to station type and/or sensor specific ===


*Remember some web tags are specific to particular station types and may not return any useful information for your station.  
*Remember some web tags are specific to particular station types and may not return any useful information for your station.  
*For example <code>$light=<#Light>;</code> is a value that only applies to those Fine Offset stations that have a solar sensor and not to any other make or type (although note that stations manufactured by Fine Offset are sold by a number of different companies who brand those stations with their own name, and in the USA the Fine Offset brand name itself is never used).  
**For example <code>$light=<#Light>;</code> is a value that only applies to those Fine Offset stations that have a solar sensor and not to any other make or type (although note that stations manufactured by Fine Offset are sold by a number of different companies who brand those stations with their own name, and in the USA the Fine Offset brand name itself is never used).  
*Equally Evapotranspiration and storm rain is specific to Davis models.
**Equally Evapotranspiration and storm rain is specific to Davis models.
*If you look at a list of web tags, you may be surprised by how long the list is of web tags that are specific to either particular station types or to set-ups with particular sensors. In general these sensors will be reporting values that do need to be updated at real time interval, if you do have that sensor.  
*If you look at a list of web tags, you may be surprised by how long the list is of web tags that are specific to either particular station types or to set-ups with particular sensors.  
 
**When looking at a ready made script, see if using it will upload a larger file than you need because it includes lots of script variable you will never use.
Some ready made scripts will omit station specific tags, some will include them. Check if any script you choose to use includes the tags you want, and edit out any you can't use.
** Remember, this file will need to be uploaded at real time interval because most sensors, even if you don't have all of them, update their values frequently, so the larger file than you need is being updated a lot using up your upload allowance.
* If you choose to use a ready-made script, check if it includes the tags you want, and edit out any you can't use.
**Remember that the person producing the ready-made script might have left out tags that he/she had no interest in because of the make of weather station he/she used and/or the sensors he/she has.


=== parameters ===
=== parameters ===
5,838

edits