A HTML merge-function, which reads a TEMPLATE.HTML and replaces tags with actual readings.
So far, the following tags are defined:
- TAGTime (current date & time)
- TAGSunrise (sunrise time)
- TAGSunset (sunset time)
- TAGWindSpeed (current windspeed)
- TAGWindSpeedGust (10-minute gust windspeed)
- TAGWindSpeedMax (todays high windspeed)
- TAGWindSpeedAVGMin (1-Minute average windspeed
- TAGWindSpeedAVGHour (1-Hour average windspeed)
- TAGWindSpeedAVGDay (24-hours average windspeed)
- TAGWindDirection (Instant wind direction)
- TAGWindMaxDirection (Wind direction at WindSpeedMax)
- TAGWindAvgDirection (10-minute average wind direction)
- TAGWindDirectionName (Instant wind direction name, N, SE, SSW and so on)
- TAGWindAvgDirectionName (Average wind direction name, N, SE, SSW and so on)
- TAGWindMaxDirectionName (Wind direction at WindSpeedMax name, N, SE, SSW and so on)
Selected temperature sensor
- TAGTemperature ('Selected' current temperature)
- TAGTemperatureMax ('Selected' high temperature)
- TAGTemperatureMin ('Selected' low temperature)
Selected humidity sensor
- TAGHumidity ('Selected' current humidity)
- TAGHumidityMax ('Selected' high humidity)
- TAGHumidityMin ('Selected' low humidity)
- TAGWindChill (Current windchill temperature)
- TAGDewpoint (Current dewpoint temperature)
- TAGHeatIndex (Current heat index temperature)
DS2438-based barometer
- TAGBarometer (Current barometer reading)
- TAGBarometerRate (Current barometer rate/hour)
- TAGBarometerMax (Barometer high reading)
- TAGBarometerMin (Barometer low reading)
- TAGBarometer temperature (Serial+T) (Current barometer 'DS2438' temperature)
DS2423-based raingauge
- TAGRainRate (Current rain rate/hour)
- TAGRainToday (Rain total today)
- TAGRainWeek (Rain total last 7 days)
- TAGRainMonth (Rain total current month)
- TAGRainTotal (Rain total since master reset)
DS1820/DS18S20/DS1822/DS18B20 temperature sensors
- TAG (Current temperature of )
- TAGMax (Max temperature of )
- TAGMin (Min temperature of )
- TAG (serial) (Current counter value of )
- (serial+Sec) (Counts pr second of )
- (serial+Min) (Counts pr minute of )
- (serial+Hour) (Counts pr hour of )
- (serial+Today) (Counts pr hour of )
Generic 2438 sensor
- TAGT (Current temperature)
- TAGTMax (Max temperature)
- TAGTMin (Min temperature)
- TAGV (Current VAD)
- TAGVMax (Max VAD)
- TAGVMin (Min VAD)
- TAGH (Current humidity)
- TAGHMax (High humidity)
- TAGHMin (Low humidity)
- TAG (Current, Max & Min VAD, to )
TAG3400000001259A20_A, TAG3400000001259A20_BMax and so on.
*******************************************************************************************************
Syntax in HTML template: <#tagname>
Like here:
Current wind is <#TAGWindspeed> from <#TAGWindDirection>, gusting to <#TAGWindGust>.
Temperature is now <#TAGTemperature>, with humidity at <#TAGHumidity>
Output is written to CURRENT.HTML., and eventually uploaded using FTP.
If you want this feature enabled, put TEMPLATE.HTML in WServer's directory.