#ifndef _WMR_TXT_H
#define _WMR_TXT_H

#include "app_general.h"

#define METEO_VALUE_LENGTH  (32)

#define NF                  ("no format")

#define UTC_DATE        (0x0001)
#define UTC		(0x0002)
#define SOLAR		(0x0004)
#define LOCAL_DATE	(0x0008)
#define LOCAL		(0x0010)
#define BMT_DATE	(0x0020)
#define BMT		(0x0040)
#define FAHRENHEIT	(0x0080)
#define HG		(0x0100)
#define KPA		(0x0200)
#define KMH		(0x0400)
#define COMPASSPOINTS	(0x0800)
#define UNITY_ANGLE	(0x1000)
#define UNITY_TIME	(0x2000)

typedef enum meteo_data_type {
  /* 00: anemometer and wind related data */
  battery_status_0,		/* ALGORITHM: sensor_data */
  gust_direction,		/* ALGORITHM: sensor_data */
  gust_speed,			/* ALGORITHM: sensor_data */
  average_gust_speed,		/* ALGORITHM: sensor_data */
  wind_chill,			/* ALGORITHM: sensor_data */
  
  /* 01: rain gauge data */
  battery_status_1,		/* ALGORITHM: sensor_data */
  rain_rate,			/* ALGORITHM: sensor_data */
  bucket_tips,			/* ALGORITHM: sensor_data */
  rain_total,			/* ALGORITHM: sensor_data */
  rain_yesterday,		/* ALGORITHM: sensor_data */
  rain_total_reset,		/* ALGORITHM: sensor_data */
  
  /* 02: extra sensor data, copy of last received, calibrated es data*/
  es_battery_status_2,		/* ALGORITHM: sensor_data */
  es_sensor_number,		/* ALGORITHM: sensor_data */
  es_outside_temp,		/* ALGORITHM: sensor_data */
  es_relative_humidity,		/* ALGORITHM: sensor_data */
  es_dew_point,	/* ALGORITHM: sensor_data */

  /* 02: extra sensor data */
  es1_battery_status_2,		/* ALGORITHM: sensor_data */
  es1_sensor_number,		/* ALGORITHM: sensor_data */
  es1_outside_temp,		/* ALGORITHM: sensor_data */
  es1_relative_humidity,		/* ALGORITHM: sensor_data */
  es1_dew_point,	/* ALGORITHM: sensor_data */
  
  /* 02: extra sensor data */
  es2_battery_status_2,		/* ALGORITHM: sensor_data */
  es2_sensor_number,		/* ALGORITHM: sensor_data */
  es2_outside_temp,		/* ALGORITHM: sensor_data */
  es2_relative_humidity,		/* ALGORITHM: sensor_data */
  es2_dew_point,	/* ALGORITHM: sensor_data */

  /* 02: extra sensor data */
  es3_battery_status_2,		/* ALGORITHM: sensor_data */
  es3_sensor_number,		/* ALGORITHM: sensor_data */
  es3_outside_temp,		/* ALGORITHM: sensor_data */
  es3_relative_humidity,		/* ALGORITHM: sensor_data */
  es3_dew_point,	/* ALGORITHM: sensor_data */

  /* 03: outside temp, humidity and dewpoint */
  battery_status_3,		/* ALGORITHM: sensor_data */
  outside_temp,			/* ALGORITHM: sensor_data */
  outside_relative_humidity,	/* ALGORITHM: sensor_data */
  outside_dew_point,		/* ALGORITHM: sensor_data */
  
  /* 05: inside temp, humidity, dewpoint and baro */
  /* 06: inside temp, humidity, dewpoint, baro for wmr986 and some wmr918's */
  battery_status_5_6,		/* ALGORITHM: sensor_data */
  inside_temp,			/* ALGORITHM: sensor_data */
  inside_relative_humidity,	/* ALGORITHM: sensor_data */
  inside_dew_point,		/* ALGORITHM: sensor_data */
  baro_pressure,		/* ALGORITHM: sensor_data */
  baro_pressure_tendency,	/* ALGORITHM: sensor_data */
  weather_forecast,		/* ALGORITHM: sensor_data */
  baro_pressure_sealevel,	/* ALGORITHM: sensor_data */
  
  /* 0E: sequence number */
  battery_status_e,		/* ALGORITHM: sensor_data */
  minute,			/* ALGORITHM: sensor_data */
  
  /* 0F: hourly status report */
  battery_status_f,		/* ALGORITHM: sensor_data */
  hour,				/* ALGORITHM: sensor_data */
  day,				/* ALGORITHM: sensor_data */
  month,			/* ALGORITHM: sensor_data */
  year,				/* ALGORITHM: sensor_data */

  /* derived data (0): time aspects */
  minutes_to_hour,		/* ALGORITHM: simple */
  minutes_to_half,		/* ALGORITHM: simple */
  minutes_past_half,		/* ALGORITHM: simple */
  hour_minute,			/* ALGORITHM: simple */
  day_light_saving,		/* ALGORITHM: dst_classification */
  iso_week,			/* ALGORITHM: simple */
  days_after_easter,		/* ALGORITHM: calc_easter */
  day_in_year,			/* ALGORITHM: gregorian_to_jd */
  month_day,			/* ALGORITHM: simple */
  week_in_month,		/* ALGORITHM: simple */
  last_week_in_month,		/* ALGORITHM: simple */
  relative_day_in_month,	/* ALGORITHM: simple */
  last_weekday_in_month,	/* ALGORITHM: simple */

  
  /* derived data: baro pressure dependent */
  baro_pressure_normalized,	/* ALGORITHM: normalized_baro */
  expected_baro_pressure,	/* ALGORITHM: baro_pressure	*/	
  filtered_baro_pressure1,	/* ALGORITHM: filter */	
  filtered_baro_pressure2,	/* ALGORITHM: filter */	
  baro_pressure_tendency2,	/* ALGORITHM: baro_pressure	*/
  weather_type_now,		/* ALGORITHM: baro_pressure	*/
  weather_type_expected,	/* ALGORITHM: baro_pressure	*/
  rain_chance_now,		/* ALGORITHM: baro_pressure	*/
  rain_chance_expected,		/* ALGORITHM: baro_pressure	*/
  
  /* temperature forecasts */
  min_temp_today_forecast,	/* ALGORITHM: temperature_forecast */
  max_temp_today_forecast,	/* ALGORITHM: temperature_forecast */
  min_temp_tomorrow_forecast,	/* ALGORITHM: temperature_forecast */
  max_temp_tomorrow_forecast,	/* ALGORITHM: temperature_forecast */
  min_temp_forecast,		/* ALGORITHM: temperature_forecast */
  max_temp_forecast,		/* ALGORITHM: temperature_forecast */
  min_temp_forecast_time,   	/* ALGORITHM: temperature_forecast */ 
  max_temp_forecast_time,    	/* ALGORITHM: temperature_forecast */
  min_temp_tomorrow_forecast2,  /* ALGORITHM: temperature_forecast */ 
  max_temp_tomorrow_forecast2,  /* ALGORITHM: temperature_forecast */ 
  min_temp_tomorrow_forecast2f, /* ALGORITHM: temperature_forecast */ 
  max_temp_tomorrow_forecast2f, /* ALGORITHM: temperature_forecast */ 
  temp_variability,		/* ALGORITHM: temperature_forecast */ 
  forecast_filter_time_const,	/* ALGORITHM: temperature_forecast */
  ai_min_temp_forecast,         /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_forecast,         /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_tomorrow,         /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_tomorrow,         /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_forecast2,        /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_forecast2,        /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_tomorrow2,        /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_tomorrow2,        /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_forecast2f,       /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_forecast2f,       /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_tomorrow2f,       /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_tomorrow2f,       /* ALGORITHM: ai_temperature_forecast */
  ai_min_temp_24_48,            /* ALGORITHM: ai_temperature_forecast */
  ai_max_temp_24_48,            /* ALGORITHM: ai_temperature_forecast */
  max_tomorrow,			/* ALGORITHM: temperature_forecast_combined */
  min_tomorrow,			/* ALGORITHM: temperature_forecast_combined */
  
  /* derived data (1): sun/moon items */
  now_julian_date,		/* ALGORITHM: get_jd */
  start_of_year_julian_day,     /* ALGORITHM: simple */
  last_new_moon_julian_date,	/* ALGORITHM: phasehunt */
  first_quarter_julian_date,	/* ALGORITHM: phasehunt */
  full_moon_julian_date,	/* ALGORITHM: phasehunt */
  last_quarter_julian_date,	/* ALGORITHM: phasehunt */
  new_moon_julian_date,		/* ALGORITHM: phasehunt */
  lunation_number,		/* ALGORITHM: phasehunt */
  moon_subtends,		/* ALGORITHM: phase */
  moon_distance,		/* ALGORITHM: phase */
  moon_phase,			/* ALGORITHM: phase */
  moon_age_day,			/* ALGORITHM: phasehunt */
  moon_age_hour,		/* ALGORITHM: phasehunt */
  moon_age_minute,		/* ALGORITHM: phasehunt */
  sun_subtends,			/* ALGORITHM: phase */
  sun_distance,			/* ALGORITHM: phase */
  sun_distance_au,		/* ALGORITHM: phase */

  /* derived data (2): sun/moon rise and set, and twilight times */
  actual_sun_rise_jd,		/* ALGORITHM: sun_data */
  actual_sun_set_jd,		/* ALGORITHM: sun_data */
  moon_rise_jd,			/* ALGORITHM: moon_data */
  moon_set_jd,			/* ALGORITHM: moon_data */
  mathematical_moon_rise_jd,	/* ALGORITHM: moon_data */
  mathematical_moon_set_jd,	/* ALGORITHM: moon_data */
  moon_transit_jd,		/* ALGORITHM: moon_data */
  sun_rise_jd,			/* ALGORITHM: sun_data */
  sun_set_jd,			/* ALGORITHM: sun_data */
  mathematical_sun_rise_jd,	/* ALGORITHM: sun_data */
  mathematical_sun_set_jd,	/* ALGORITHM: sun_data */
  sun_transit_jd,		/* ALGORITHM: sun_data */
  equation_of_time,		/* ALGORITHM: eot */
  civil_twilight_start_jd,	/* ALGORITHM: sun_data */
  civil_twilight_end_jd,	/* ALGORITHM: sun_data */
  nautical_twilight_start_jd,	/* ALGORITHM: sun_data */
  nautical_twilight_end_jd,	/* ALGORITHM: sun_data */
  astro_twilight_start_jd,	/* ALGORITHM: sun_data */
  astro_twilight_end_jd,	/* ALGORITHM: sun_data */
  day_night,			/* ALGORITHM: sun_data */
 
  /* derived data: start of seasons in 'this' year */
  start_spring_julian_date,	/* ALGORITHM: start_seasons */
  start_summer_julian_date,	/* ALGORITHM: start_seasons */
  start_autumn_julian_date,	/* ALGORITHM: start_seasons */
  start_winter_julian_date,	/* ALGORITHM: start_seasons */

  /* derived data: start of zodiac signs in 'this' year */
  start_aquarius_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_pisces_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_aries_julian_date, 	 /* ALGORITHM: sun_ecliptic_longitude */
  start_taurus_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_gemini_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_cancer_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_leo_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_virgo_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_libra_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_scorpio_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */
  start_sagittarius_julian_date, /* ALGORITHM: sun_ecliptic_longitude */
  start_capricorn_julian_date,	 /* ALGORITHM: sun_ecliptic_longitude */

  /* sun and moon specials */
  sun_elevation,		/* ALGORITHM: sun_data */
  sun_azimuth,			/* ALGORITHM: sun_data */
  sun_declination,		/* ALGORITHM: sun_data */
  sun_ecliptic_long,		/* ALGORITHM: sun_data */
  sun_right_ascension,		/* ALGORITHM: sun_data */
  sun_earth_dist,		/* ALGORITHM: sun_data */
  sun_earth_dist_au,		/* ALGORITHM: sun_data */
  delta_t1,			/* ALGORITHM: sun_data */
  eq_of_time1,			/* ALGORITHM: sun_data */
  moon_elevation,		/* ALGORITHM: moon_data */
  moon_azimuth,			/* ALGORITHM: moon_data */
  moon_declination,		/* ALGORITHM: moon_data */
  moon_ecliptic_long,		/* ALGORITHM: moon_data */
  moon_ecliptic_lat,		/* ALGORITHM: moon_data */
  moon_right_ascension,		/* ALGORITHM: moon_data */
  moon_earth_dist,		/* ALGORITHM: moon_data */
  
  /* planet positions */
  mercury_right_ascension,	/* ALGORITHM: planet_data */
  mercury_declination,		/* ALGORITHM: planet_data */
  mercury_azimuth,		/* ALGORITHM: planet_data */
  mercury_elevation,		/* ALGORITHM: planet_data */
  venus_right_ascension,	/* ALGORITHM: planet_data */
  venus_declination,		/* ALGORITHM: planet_data */
  venus_azimuth,		/* ALGORITHM: planet_data */
  venus_elevation,		/* ALGORITHM: planet_data */
  mars_right_ascension,		/* ALGORITHM: planet_data */
  mars_declination,		/* ALGORITHM: planet_data */
  mars_azimuth,			/* ALGORITHM: planet_data */
  mars_elevation,		/* ALGORITHM: planet_data */
  jupiter_right_ascension,	/* ALGORITHM: planet_data */
  jupiter_declination,		/* ALGORITHM: planet_data */
  jupiter_azimuth,		/* ALGORITHM: planet_data */
  jupiter_elevation,		/* ALGORITHM: planet_data */
  saturn_right_ascension,	/* ALGORITHM: planet_data */
  saturn_declination,		/* ALGORITHM: planet_data */
  saturn_azimuth,		/* ALGORITHM: planet_data */
  saturn_elevation,		/* ALGORITHM: planet_data */
  uranus_right_ascension,	/* ALGORITHM: planet_data */
  uranus_declination,		/* ALGORITHM: planet_data */
  uranus_azimuth,		/* ALGORITHM: planet_data */
  uranus_elevation,		/* ALGORITHM: planet_data */
  neptune_right_ascension,	/* ALGORITHM: planet_data */
  neptune_declination,		/* ALGORITHM: planet_data */
  neptune_azimuth,		/* ALGORITHM: planet_data */
  neptune_elevation,		/* ALGORITHM: planet_data */
  pluto_right_ascension,	/* ALGORITHM: planet_data */
  pluto_declination,		/* ALGORITHM: planet_data */
  pluto_azimuth,		/* ALGORITHM: planet_data */
  pluto_elevation,		/* ALGORITHM: planet_data */

  /* parameter data (1): geographical position and time zone */
  latitude,			/* ALGORITHM: settings */
  longitude,			/* ALGORITHM: settings */
  latitude_degrees,             /* ALGORITHM: simple */ 
  longitude_degrees,            /* ALGORITHM: simple */
  height,			/* ALGORITHM: settings */
  time_zone,			/* ALGORITHM: settings */
  place,			/* ALGORITHM: settings */
  country,			/* ALGORITHM: settings */
  
  /* derived data (3) wind data*/
  filtered_wind_speed1,		/* ALGORITHM: filter  */
  filtered_wind_speed2,		/* ALGORITHM: filter  */
  filtered_wind_speed3,		/* ALGORITHM: filter  */
  wind_speed_tendency,		/* ALGORITHM: tendency  */
  filtered_gust_dir1,		/* ALGORITHM: weighed_wind_dir  */
  filtered_gust_dir2,		/* ALGORITHM: weighed_wind_dir  */
  filtered_gust_dir3,		/* ALGORITHM: weighed_wind_dir  */
  wind_dir_tendency,		/* ALGORITHM: dir_tendency  */
  gust_compass_point,		/* ALGORITHM: compass_point  */
  filtered_gust_compass_point1,	/* ALGORITHM: compass_point  */
  filtered_gust_compass_point2,	/* ALGORITHM: compass_point */
  
  /* derived data (4) psychological temperatures */
  chill_siple_passel,		/* ALGORITHM: chill */
  warmth_loss_siple_passel,	/* ALGORITHM: chill */
  risk_warmth_loss_siple_passel, /* ALGORITHM: heat_loss_risk */
  chill_court,			/* ALGORITHM: chill */
  warmth_loss_court,		/* ALGORITHM: chill */
  risk_warmth_loss_court,	/* ALGORITHM: heat_loss_risk */
  chill_steadman,		/* ALGORITHM: chill */
  warmth_loss_steadman,		/* ALGORITHM: chill */
  risk_warmth_loss_steadman,	/* ALGORITHM: heat_loss_risk */
  chill_rees,			/* ALGORITHM: chill */
  warmth_loss_rees,		/* ALGORITHM: chill */
  risk_warmth_loss_rees,	/* ALGORITHM: heat_loss_risk */
  heat_index_nws,		/* ALGORITHM: heat_index */
  risk_heat_index_nws,		/* ALGORITHM: heat_index_risk */
  heat_index_usa_today,		/* ALGORITHM: heat_index */
  risk_heat_index_usa_today,	/* ALGORITHM: heat_index_risk */
  humidex,			/* ALGORITHM: heat_index */
  risk_humidex,			/* ALGORITHM: heat_index_risk */
  net_effective_temperature,	/* ALGORITHM: net_effective_temperature */
  weathertype,			/* ALGORITHM: weather_type */
  weatherclass,			/* ALGORITHM: weather_class */
  current_temp_classification,	/* ALGORITHM: temp_classification */
  day_temp_classification,	/* ALGORITHM: temp_classification */
  hittegolf_indicator,		/* ALGORITHM: check_hittegolf */
  yest_hittegolf_length,	/* ALGORITHM: check_hittegolf */
  hittegolf_length,		/* ALGORITHM: check_hittegolf */
     
  /* derived data (5): humidity */
  absolute_humidity,		/* ALGORITHM: absolute_humidity */
  computed_outside_dew_point,	/* ALGORITHM: dew_point */
  
  /* derived data heights */
  cloud_level,			/* ALGORITHM: temperature_height */
  snow_level,			/* ALGORITHM: temperature_height */

  /* derived data: medical indicator (psychological) */
  medical_indicator1,		/* ALGORITHM: medical_indicator1 */
  medical_indicator2,		/* ALGORITHM: medical_indicator2 */

  /* derived data (6): up since */
  up_since_minute,		/* ALGORITHM: simple */
  up_since_hour,		/* ALGORITHM: simple */
  up_since_day,			/* ALGORITHM: simple */
  up_since_month,		/* ALGORITHM: simple */
  up_since_year,		/* ALGORITHM: simple */
  up_all_day,			/* ALGORITHM: simple */
  up_indicator,    /* ALGORITHM: simple */

  /* derived data (7): min max average */
  min_outside_temp,		/* ALGORITHM: statistics */
  max_outside_temp,		/* ALGORITHM: statistics */
  sum_outside_temp,		/* ALGORITHM: statistics */
  cnt_outside_temp,		/* ALGORITHM: statistics */
  avg_outside_temp,		/* ALGORITHM: statistics */
  min_outside_temp_time,	/* ALGORITHM: statistics */
  max_outside_temp_time,	/* ALGORITHM: statistics */
  min_baro_pressure,		/* ALGORITHM: statistics */
  max_baro_pressure,		/* ALGORITHM: statistics */
  sum_baro_pressure,		/* ALGORITHM: statistics */
  cnt_baro_pressure,		/* ALGORITHM: statistics */
  avg_baro_pressure,		/* ALGORITHM: statistics */
  min_baro_pressure_time,	/* ALGORITHM: statistics */
  max_baro_pressure_time,	/* ALGORITHM: statistics */
  min_gust_speed,		/* ALGORITHM: superfiltered_stats */
  max_gust_speed,		/* ALGORITHM: superfiltered_stats */
  sum_gust_speed,		/* ALGORITHM: superfiltered_stats */
  cnt_gust_speed,		/* ALGORITHM: superfiltered_stats */
  avg_gust_speed,		/* ALGORITHM: superfiltered_stats */
  min_gust_speed_time,		/* ALGORITHM: superfiltered_stats */
  max_gust_speed_time,		/* ALGORITHM: superfiltered_stats */
  favg_gust_speed,		/* ALGORITHM: superfiltered_stats */
  var_gust_speed,		/* ALGORITHM: superfiltered_stats */
  std_gust_speed,		/* ALGORITHM: superfiltered_stats */
  fupper_gust_speed,		/* ALGORITHM: superfiltered_stats */
  flower_gust_speed,		/* ALGORITHM: superfiltered_stats */
  min_chill_temp,		/* ALGORITHM: statistics */
  max_chill_temp,		/* ALGORITHM: statistics */
  sum_chill_temp,		/* ALGORITHM: statistics */
  cnt_chill_temp,		/* ALGORITHM: statistics */
  avg_chill_temp,		/* ALGORITHM: statistics */
  min_chill_temp_time,		/* ALGORITHM: statistics */
  max_chill_temp_time,		/* ALGORITHM: statistics */
  graaddagen,			/* ALGORITHM: graaddagen */
  degree_days,			/* ALGORITHM: degreedays */
  degree_day_higher, /* ALGORITHM: user_degree_days */
  degree_day_lower, /* ALGORITHM: user_degree_days */
  hellmann,			/* ALGORITHM: simple */


  /* yesterday values */
  yest_min_outside_temp,	/* ALGORITHM: simple */
  yest_max_outside_temp,	/* ALGORITHM: simple */
  yest_avg_outside_temp,	/* ALGORITHM: simple */
  yest_min_outside_temp_time,	/* ALGORITHM: simple */
  yest_max_outside_temp_time,	/* ALGORITHM: simple */
  yest_min_baro_pressure,	/* ALGORITHM: simple */
  yest_max_baro_pressure,	/* ALGORITHM: simple */
  yest_avg_baro_pressure,	/* ALGORITHM: simple */
  yest_min_baro_pressure_time,	/* ALGORITHM: simple */
  yest_max_baro_pressure_time,	/* ALGORITHM: simple */
  yest_min_gust_speed,		/* ALGORITHM: simple */
  yest_max_gust_speed,		/* ALGORITHM: simple */
  yest_avg_gust_speed,		/* ALGORITHM: simple */
  yest_min_gust_speed_time,	/* ALGORITHM: simple */
  yest_max_gust_speed_time,	/* ALGORITHM: simple */
  yest_min_chill_temp,		/* ALGORITHM: simple */
  yest_max_chill_temp,		/* ALGORITHM: simple */
  yest_avg_chill_temp,		/* ALGORITHM: simple */
  yest_min_chill_temp_time,	/* ALGORITHM: simple */
  yest_max_chill_temp_time,	/* ALGORITHM: simple */
  yest_min_gust_speed_bft,	/* ALGORITHM: simple */
  yest_max_gust_speed_bft,	/* ALGORITHM: simple */
  yest_avg_gust_speed_bft,	/* ALGORITHM: simple */
  yest_min_gust_speed_bft_time,	/* ALGORITHM: simple */
  yest_max_gust_speed_bft_time,	/* ALGORITHM: simple */
  yest_bucket_tips,		/* ALGORITHM: simple */
  yest_temp_classification,	/* ALGORITHM: simple */
  temp_history,			/* ALGORITHM: hittegolf_history */
  
  /* graaddagen */
  yest_graaddagen,		/* ALGORITHM: simple */
  yest_degree_days,		/* ALGORITHM: simple */
  yest_hellmann,		/* ALGORITHM: simple */
  yest_degree_day_higher, /* ALGORITHM: simple */
  yest_degree_day_lower, /* ALGORITHM: simple */

  /* ice thickness forecast */
  yest_ice_thickness,		/* ALGORITHM: simple */
  ice_thickness,		/* ALGORITHM: simple */
  yest_ice_thickness2,		/* ALGORITHM: simple */
  ice_thickness2,		/* ALGORITHM: simple */
  ice_thickness2f,		/* ALGORITHM: simple */
  ice_thickness3_freeze,	/* ALGORITHM: simple */
  ice_thickness3_thaw,		/* ALGORITHM: simple */
  ice_thickness3_start_time,    /* ALGORITHM: simple */
  

  /* calendar info in different languages/cultures */
  num_lunar_islamic_month,	/* ALGORITHM: simple */
  lunar_islamic_year,		/* ALGORITHM: simple */
  islamic_dow,			/* ALGORITHM: simple */
  num_islamic_day,		/* ALGORITHM: jd_to_islamic */
  num_islamic_month,		/* ALGORITHM: jd_to_islamic */
  islamic_year,			/* ALGORITHM: jd_to_islamic */
  lunar_new_year_jd,		/* ALGORITHM: phasehunt start_seasons */
  lunar_new_year_day,		/* ALGORITHM: phasehunt start_seasons */
  lunar_new_year_month,		/* ALGORITHM: phasehunt start_seasons */
  chinese_year,			/* ALGORITHM: gregorian_to_jd phasar */
  asian_year,			/* ALGORITHM: gregorian_to_jd phasar */
  hebrew_year,			/* ALGORITHM: jd_to_hebrew */
  hebrew_month,			/* ALGORITHM: jd_to_hebrew */
  hebrew_day,			/* ALGORITHM: jd_to_hebrew */
  zodiac_sign,                  /* ALGORITHM: zodiac */
      
  /* wind data */
  gust_speed_bft,		/* ALGORITHM: speed_to_beaufort */
  gust_filtered_speed_bft,	/* ALGORITHM: filter */
  gust_speed_bft_acc,		/* ALGORITHM: statistics */
  min_gust_speed_bft,		/* ALGORITHM: statistics */
  max_gust_speed_bft,		/* ALGORITHM: statistics */
  sum_gust_speed_bft,		/* ALGORITHM: statistics */
  cnt_gust_speed_bft,		/* ALGORITHM: statistics */
  avg_gust_speed_bft,		/* ALGORITHM: statistics */
  min_gust_speed_bft_time,	/* ALGORITHM: statistics */
  max_gust_speed_bft_time,	/* ALGORITHM: statistics */
  gust_speed_description,	/* ALGORITHM: speed_to_beaufort */
  fujita_storm_descr,		/* ALGORITHM: speed_to_fujita */
  fujita_storm_class,		/* ALGORITHM: speed_to_fujita */
  
  /* inside/outside rh and calculated dew */
  computed_outside_dew_point2,	/* ALGORITHM: dew_rh */
  inside_outside_rh,		/* ALGORITHM: dew_rh */
  abs_inside_humidity, 		/* ALGORITHM: absolute_humidity */
  weather_forecast_code,	/* ALGORITHM: sensor_data */
  
  /* special days */
  day_of_week,			/* ALGORITHM: jd_2_day_of_week */
  passion_day,			/* ALGORITHM: passion_day_name */
  start_dst_day,		/* ALGORITHM: dst_start */
  start_dst_month,		/* ALGORITHM: dst_start */
  end_dst_day,			/* ALGORITHM: dst_end */
  end_dst_month,		/* ALGORITHM: dst_end */
  
  /* server info */
  compiler_version,		/* ALGORITHM: server_info */
  compilation_date,		/* ALGORITHM: server_info */
  operating_system,		/* ALGORITHM: server_info */
  node_name,			/* ALGORITHM: server_info */
  release_id,			/* ALGORITHM: server_info */
  machine_name,			/* ALGORITHM: server_info */
  server_version,		/* ALGORITHM: preset */
  cpu_model,        /* ALGORITHM: server_info */
  cpu_frequency,    /* ALGORITHM: server_info */
  cpu_bogo_mips,    /* ALGORITHM: server_info */
  cpu_load_averages,    /* ALGORITHM: server_info */
  cpu_uptime,  /* ALGORITHM: server_info */
  mem_total,    /* ALGORITHM: server_info */
  mem_free,    /* ALGORITHM: server_info */
  mem_cached,    /* ALGORITHM: server_info */
  mem_active,    /* ALGORITHM: server_info */
  srv_utime,   /* ALGORITHM: server_info */
  srv_stime,   /* ALGORITHM: server_info */
  srv_cputime,   /* ALGORITHM: server_info */
  srv_maxrss,   /* ALGORITHM: server_info */
  srv_ixrss,   /* ALGORITHM: server_info */
  srv_idrss,   /* ALGORITHM: server_info */
  srv_isrss,   /* ALGORITHM: server_info */
  srv_minflt,   /* ALGORITHM: server_info */
  srv_majflt,   /* ALGORITHM: server_info */
  srv_nswap,   /* ALGORITHM: server_info */
  srv_inblock,   /* ALGORITHM: server_info */
  srv_oublock,   /* ALGORITHM: server_info */
  srv_msgsnd,   /* ALGORITHM: server_info */
  srv_msgrcv,   /* ALGORITHM: server_info */
  srv_nsignals,   /* ALGORITHM: server_info */
  srv_nvcsw,   /* ALGORITHM: server_info */
  srv_nivcsw,   /* ALGORITHM: server_info */
  
  /* license info */
  license_hostid,		/* ALGORITHM: preset */
  license_time,		        /* ALGORITHM: preset */
  license_options,		/* ALGORITHM: preset */
  license_key,		        /* ALGORITHM: preset */
  license_result,		/* ALGORITHM: license */
  
  /* day averages */
  av24_outside_temp,		/* ALGORITHM: day_averages */
  av24_wind_chill,		/* ALGORITHM: day_averages */
  av24_outside_dew_point,	/* ALGORITHM: day_averages */
  av24_gust_speed,		/* ALGORITHM: day_averages */
  av24_gust_direction,		/* ALGORITHM: day_averages */
  av24_baro_pressure,		/* ALGORITHM: day_averages */
  av24_outside_relative_humidity, /* ALGORITHM: day_averages */
  av24_inside_temp,		/* ALGORITHM: day_averages */
  av24_inside_relative_humidity, /* ALGORITHM: day_averages */
  av24_inside_dew_point,	/* ALGORITHM: day_averages */
  av24_absolute_humidity,	/* ALGORITHM: day_averages */
  av24_computed_outside_dew_point, /* ALGORITHM: day_averages */
  av24_chill_siple_passel,	/* ALGORITHM: day_averages */
  av24_chill_court,		/* ALGORITHM: day_averages */
  av24_chill_steadman,		/* ALGORITHM: day_averages */
  av24_chill_rees,		/* ALGORITHM: day_averages */
  av24_heat_index_nws,		/* ALGORITHM: day_averages */
  av24_heat_index_usa_today,	/* ALGORITHM: day_averages */
  av24_humidex,			/* ALGORITHM: day_averages */
  av24_net_effective_temperature, /* ALGORITHM: day_averages */
  av24_filtered_wind_speed1,	/* ALGORITHM: day_averages */
  av24_filtered_wind_speed2,	/* ALGORITHM: day_averages */
  av24_filtered_gust_dir1,	/* ALGORITHM: day_averages */
  av24_filtered_gust_dir2, 	/* ALGORITHM: day_averages */
  av24_gust_speed_bft,		/* ALGORITHM: day_averages */
  av24_gust_filtered_speed_bft,	/* ALGORITHM: day_averages */
  av24_computed_outside_dew_point2, /* ALGORITHM: day_averages */
  av24_inside_outside_rh,	/* ALGORITHM: day_averages */
  av24_abs_inside_humidity,	/* ALGORITHM: day_averages */

  /* day trends */
  tr24_outside_temp_filtered,	/* ALGORITHM: temperature_forecast */
  
  tr24_outside_temp,		/* ALGORITHM: day_trends */
  tr24_wind_chill,		/* ALGORITHM: day_trends */
  tr24_outside_dew_point,		/* ALGORITHM: day_trends */
  tr24_gust_speed,		/* ALGORITHM: day_trends */
  tr24_gust_direction,		/* ALGORITHM: day_trends */
  tr24_baro_pressure,		/* ALGORITHM: day_trends */
  tr24_outside_relative_humidity,	/* ALGORITHM: day_trends */
  tr24_inside_temp,		/* ALGORITHM: day_trends */
  tr24_inside_relative_humidity,	/* ALGORITHM: day_trends */
  tr24_inside_dew_point,		/* ALGORITHM: day_trends */
  tr24_absolute_humidity,		/* ALGORITHM: day_trends */
  tr24_computed_outside_dew_point, /* ALGORITHM: day_trends */
  tr24_chill_siple_passel,	/* ALGORITHM: day_trends */
  tr24_chill_court,		/* ALGORITHM: day_trends */
  tr24_chill_steadman,		/* ALGORITHM: day_trends */
  tr24_chill_rees,		/* ALGORITHM: day_trends */
  tr24_heat_index_nws,		/* ALGORITHM: day_trends */
  tr24_heat_index_usa_today,	/* ALGORITHM: day_trends */
  tr24_humidex,			/* ALGORITHM: day_trends */
  tr24_net_effective_temperature,	/* ALGORITHM: day_trends */
  tr24_filtered_wind_speed1,	/* ALGORITHM: day_trends */
  tr24_filtered_wind_speed2,	/* ALGORITHM: day_trends */
  tr24_filtered_gust_dir1,	/* ALGORITHM: day_trends */
  tr24_filtered_gust_dir2, 	/* ALGORITHM: day_trends */
  tr24_gust_speed_bft,		/* ALGORITHM: day_trends */
  tr24_gust_filtered_speed_bft,	/* ALGORITHM: day_trends */
  tr24_computed_outside_dew_point2, /* ALGORITHM: day_trends */
  tr24_inside_outside_rh,		/* ALGORITHM: day_trends */
  tr24_abs_inside_humidity,	/* ALGORITHM: day_trends */

  /* day minima */
  min24_outside_temp,		/* ALGORITHM: day_minima */
  min24_wind_chill,		/* ALGORITHM: day_minima */
  min24_outside_dew_point,	/* ALGORITHM: day_minima */
  min24_gust_speed,		/* ALGORITHM: day_minima */
  min24_gust_direction,		/* ALGORITHM: day_minima */
  min24_baro_pressure,		/* ALGORITHM: day_minima */
  min24_outside_relative_humidity, /* ALGORITHM: day_minima */
  min24_inside_temp,		/* ALGORITHM: day_minima */
  min24_inside_relative_humidity, /* ALGORITHM: day_minima */
  min24_inside_dew_point,	/* ALGORITHM: day_minima */
  min24_absolute_humidity,	/* ALGORITHM: day_minima */
  min24_computed_outside_dew_point, /* ALGORITHM: day_minima */
  min24_chill_siple_passel,	/* ALGORITHM: day_minima */
  min24_chill_court,		/* ALGORITHM: day_minima */
  min24_chill_steadman,		/* ALGORITHM: day_minima */
  min24_chill_rees,		/* ALGORITHM: day_minima */
  min24_heat_index_nws,		/* ALGORITHM: day_minima */
  min24_heat_index_usa_today,	/* ALGORITHM: day_minima */
  min24_humidex,		/* ALGORITHM: day_minima */
  min24_net_effective_temperature, /* ALGORITHM: day_minima */
  min24_filtered_wind_speed1,	/* ALGORITHM: day_minima */
  min24_filtered_wind_speed2,	/* ALGORITHM: day_minima */
  min24_filtered_gust_dir1,	/* ALGORITHM: day_minima */
  min24_filtered_gust_dir2, 	/* ALGORITHM: day_minima */
  min24_gust_speed_bft,		/* ALGORITHM: day_minima */
  min24_gust_filtered_speed_bft, /* ALGORITHM: day_minima */
  min24_computed_outside_dew_point2, /* ALGORITHM: day_minima */
  min24_inside_outside_rh,	/* ALGORITHM: day_minima */
  min24_abs_inside_humidity,	/* ALGORITHM: day_minima */
  
  /* day maxima */
  max24_outside_temp,		/* ALGORITHM: day_maxima */
  max24_wind_chill,		/* ALGORITHM: day_maxima */
  max24_outside_dew_point,	/* ALGORITHM: day_maxima */
  max24_gust_speed,		/* ALGORITHM: day_maxima */
  max24_gust_direction,		/* ALGORITHM: day_maxima */
  max24_baro_pressure,		/* ALGORITHM: day_maxima */
  max24_outside_relative_humidity, /* ALGORITHM: day_maxima */
  max24_inside_temp,		/* ALGORITHM: day_maxima */
  max24_inside_relative_humidity, /* ALGORITHM: day_maxima */
  max24_inside_dew_point,	/* ALGORITHM: day_maxima */
  max24_absolute_humidity,	/* ALGORITHM: day_maxima */
  max24_computed_outside_dew_point, /* ALGORITHM: day_maxima */
  max24_chill_siple_passel,	/* ALGORITHM: day_maxima */
  max24_chill_court,		/* ALGORITHM: day_maxima */
  max24_chill_steadman,		/* ALGORITHM: day_maxima */
  max24_chill_rees,		/* ALGORITHM: day_maxima */
  max24_heat_index_nws,		/* ALGORITHM: day_maxima */
  max24_heat_index_usa_today,	/* ALGORITHM: day_maxima */
  max24_humidex,		/* ALGORITHM: day_maxima */
  max24_net_effective_temperature, /* ALGORITHM: day_maxima */
  max24_filtered_wind_speed1,	/* ALGORITHM: day_maxima */
  max24_filtered_wind_speed2,	/* ALGORITHM: day_maxima */
  max24_filtered_gust_dir1,	/* ALGORITHM: day_maxima */
  max24_filtered_gust_dir2, 	/* ALGORITHM: day_maxima */
  max24_gust_speed_bft,		/* ALGORITHM: day_maxima */
  max24_gust_filtered_speed_bft, /* ALGORITHM: day_maxima */
  max24_computed_outside_dew_point2, /* ALGORITHM: day_maxima */
  max24_inside_outside_rh,	/* ALGORITHM: day_maxima */
  max24_abs_inside_humidity,	/* ALGORITHM: day_maxima */
  
  /* long term day averages */
  long_term_average_temp,	/* ALGORITHM: long_term_averages */  
  long_term_max_temp,		/* ALGORITHM: long_term_averages */ 
  long_term_min_temp,		/* ALGORITHM: long_term_averages */ 
  long_term_sunshine,		/* ALGORITHM: long_term_averages */ 
  long_term_humidity,		/* ALGORITHM: long_term_averages */ 
  
  /* auxilary  */
  aux1,				/* ALGORITHM: simple */
  aux2,                         /* ALGORITHM: simple */

 /* status info */
  wind_packet_0,		/* ALGORITHM: sensor */ 
  wind_packet_0_time,		/* ALGORITHM: time_measurement */
  wind_packet_0_time_min,	/* ALGORITHM: filtered_stats */
  wind_packet_0_time_max,	/* ALGORITHM: filtered_stats */
  wind_packet_0_time_avg,	/* ALGORITHM: filtered_stats */
  wind_packet_0_time_var,	/* ALGORITHM: filtered_stats */
  wind_packet_0_time_std,	/* ALGORITHM: filtered_stats */
  wind_packet_0_upd_time, /* ALGORITHM: filtered_stats */
  wind_packet_0_upd_int,  /* ALGORITHM: filtered_stats */
  rain_packet_1,		/* ALGORITHM: sensor */ 
  rain_packet_1_time,		/* ALGORITHM: time_measurement */
  rain_packet_1_time_min,	/* ALGORITHM: filtered_stats */
  rain_packet_1_time_max,	/* ALGORITHM: filtered_stats */
  rain_packet_1_time_avg,	/* ALGORITHM: filtered_stats */
  rain_packet_1_time_var,	/* ALGORITHM: filtered_stats */
  rain_packet_1_time_std,	/* ALGORITHM: filtered_stats */
  rain_packet_1_upd_time, /* ALGORITHM: filtered_stats */
  rain_packet_1_upd_int,  /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2,	/* ALGORITHM: sensor */ 
  extra_sensor1_packet_2_time,	/* ALGORITHM: time_measurement */
  extra_sensor1_packet_2_time_min, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_time_max, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_time_avg, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_time_var, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_time_std, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_upd_time, /* ALGORITHM: filtered_stats */
  extra_sensor1_packet_2_upd_int,  /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2,	/* ALGORITHM: sensor */ 
  extra_sensor2_packet_2_time,	/* ALGORITHM: time_measurement */
  extra_sensor2_packet_2_time_min, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_time_max, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_time_avg, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_time_var, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_time_std, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_upd_time, /* ALGORITHM: filtered_stats */
  extra_sensor2_packet_2_upd_int,  /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2,	/* ALGORITHM: sensor */ 
  extra_sensor3_packet_2_time,	/* ALGORITHM: time_measurement */
  extra_sensor3_packet_2_time_min, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_time_max, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_time_avg, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_time_var, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_time_std, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_upd_time, /* ALGORITHM: filtered_stats */
  extra_sensor3_packet_2_upd_int,  /* ALGORITHM: filtered_stats */
  outside_packet_3,		/* ALGORITHM: sensor */ 
  outside_packet_3_time,	/* ALGORITHM: time_measurement */
  outside_packet_3_time_min,	/* ALGORITHM: filtered_stats */
  outside_packet_3_time_max,	/* ALGORITHM: filtered_stats */
  outside_packet_3_time_avg,	/* ALGORITHM: filtered_stats */
  outside_packet_3_time_var,	/* ALGORITHM: filtered_stats */
  outside_packet_3_time_std,	/* ALGORITHM: filtered_stats */
  outside_packet_3_upd_time, /* ALGORITHM: filtered_stats */
  outside_packet_3_upd_int,  /* ALGORITHM: filtered_stats */
  inside_old_packet_5,		/* ALGORITHM: sensor */ 
  inside_old_packet_5_time,	/* ALGORITHM: time_measurement */
  inside_old_packet_5_time_min,	/* ALGORITHM: filtered_stats */
  inside_old_packet_5_time_max,	/* ALGORITHM: filtered_stats */
  inside_old_packet_5_time_avg,	/* ALGORITHM: filtered_stats */
  inside_old_packet_5_time_var,	/* ALGORITHM: filtered_stats */
  inside_old_packet_5_time_std,	/* ALGORITHM: filtered_stats */
  inside_old_packet_5_upd_time, /* ALGORITHM: filtered_stats */
  inside_old_packet_5_upd_int,  /* ALGORITHM: filtered_stats */
  inside_packet_6,		/* ALGORITHM: sensor */ 
  inside_packet_6_time,		/* ALGORITHM: time_measurement */
  inside_packet_6_time_min,	/* ALGORITHM: filtered_stats */
  inside_packet_6_time_max,	/* ALGORITHM: filtered_stats */
  inside_packet_6_time_avg,	/* ALGORITHM: filtered_stats */
  inside_packet_6_time_var,	/* ALGORITHM: filtered_stats */
  inside_packet_6_time_std,	/* ALGORITHM: filtered_stats */
  inside_packet_6_upd_time, /* ALGORITHM: filtered_stats */
  inside_packet_6_upd_int,  /* ALGORITHM: filtered_stats */
  minute_packet_e,		/* ALGORITHM: sensor */ 
  minute_packet_e_time,		/* ALGORITHM: time_measurement */
  minute_packet_e_time_min,	/* ALGORITHM: filtered_stats */
  minute_packet_e_time_max,	/* ALGORITHM: filtered_stats */
  minute_packet_e_time_avg,	/* ALGORITHM: filtered_stats */
  minute_packet_e_time_var,	/* ALGORITHM: filtered_stats */
  minute_packet_e_time_std,	/* ALGORITHM: filtered_stats */
  minute_packet_e_upd_time, /* ALGORITHM: filtered_stats */
  minute_packet_e_upd_int,  /* ALGORITHM: filtered_stats */
  hour_packet_f,		/* ALGORITHM: sensor */ 
  hour_packet_f_time,		/* ALGORITHM: time_measurement */
  hour_packet_f_time_min,	/* ALGORITHM: filtered_stats */
  hour_packet_f_time_max,	/* ALGORITHM: filtered_stats */
  hour_packet_f_time_avg,	/* ALGORITHM: filtered_stats */
  hour_packet_f_time_var,	/* ALGORITHM: filtered_stats */
  hour_packet_f_time_std,	/* ALGORITHM: filtered_stats */
  hour_packet_f_upd_time, /* ALGORITHM: filtered_stats */
  hour_packet_f_upd_int,  /* ALGORITHM: filtered_stats */
  unknown_packet_x,		/* ALGORITHM: sensor */ 
  unknown_packet_id,		/* ALGORITHM: sensor */
  unknown_packet_x_time,	/* ALGORITHM: time_measurement */
  unknown_packet_x_time_min,	/* ALGORITHM: filtered_stats */
  unknown_packet_x_time_max,	/* ALGORITHM: filtered_stats */
  unknown_packet_x_time_avg,	/* ALGORITHM: filtered_stats */
  unknown_packet_x_time_var,	/* ALGORITHM: filtered_stats */
  unknown_packet_x_time_std,	/* ALGORITHM: filtered_stats */
  unknown_packet_x_upd_time, /* ALGORITHM: filtered_stats */
  unknown_packet_x_upd_int,  /* ALGORITHM: filtered_stats */
  current_active_nr_clients,	/* ALGORITHM: counter */
  nr_clients,			/* ALGORITHM: counter */ 
  nr_client_updates,		/* ALGORITHM: counter */ 
  client_update_time,		/* ALGORITHM: time_measurement */
  client_update_time_min,	/* ALGORITHM: filtered_stats */
  client_update_time_max,	/* ALGORITHM: filtered_stats */
  client_update_time_avg,	/* ALGORITHM: filtered_stats */
  client_update_time_var,	/* ALGORITHM: filtered_stats */
  client_update_time_std,	/* ALGORITHM: filtered_stats */
  client_update_upd_time, /* ALGORITHM: filtered_stats */
  client_update_upd_int,  /* ALGORITHM: filtered_stats */
  nr_meteo_history_updates,	/* ALGORITHM: counter */ 
  meteo_history_update_time,	/* ALGORITHM: time_measurement */
  meteo_history_update_time_min, /* ALGORITHM: filtered_stats */
  meteo_history_update_time_max, /* ALGORITHM: filtered_stats */
  meteo_history_update_time_avg, /* ALGORITHM: filtered_stats */
  meteo_history_update_time_var, /* ALGORITHM: filtered_stats */
  meteo_history_update_time_std, /* ALGORITHM: filtered_stats */
  meteo_history_update_upd_time, /* ALGORITHM: filtered_stats */
  meteo_history_update_upd_int,  /* ALGORITHM: filtered_stats */
  nr_auxilary_updates,		 /* ALGORITHM: counter */ 
  auxilary_update_time,		 /* ALGORITHM: time_measurement */
  auxilary_update_time_min,	 /* ALGORITHM: filtered_stats */
  auxilary_update_time_max,	 /* ALGORITHM: filtered_stats */
  auxilary_update_time_avg,	 /* ALGORITHM: filtered_stats */
  auxilary_update_time_var,	 /* ALGORITHM: filtered_stats */
  auxilary_update_time_std,	 /* ALGORITHM: filtered_stats */
  auxilary_update_upd_time, /* ALGORITHM: filtered_stats */
  auxilary_update_upd_int,  /* ALGORITHM: filtered_stats */
  nr_external_time_updates,	 /* ALGORITHM: counter */ 
  external_time_update_time,	 /* ALGORITHM: time_measurement */
  external_time_update_time_min, /* ALGORITHM: filtered_stats */
  external_time_update_time_max, /* ALGORITHM: filtered_stats */
  external_time_update_time_avg, /* ALGORITHM: filtered_stats */
  external_time_update_time_var, /* ALGORITHM: filtered_stats */
  external_time_update_time_std, /* ALGORITHM: filtered_stats */
  external_time_update_upd_time, /* ALGORITHM: filtered_stats */
  external_time_update_upd_int,  /* ALGORITHM: filtered_stats */
  nr_local_time_updates,	/* ALGORITHM: counter */ 
  prev_time_diff,		/* ALGORITHM: simple */
  time_diff,			/* ALGORITHM: simple */
  time_corr_set,		/* ALGORITHM: simple */ 
  time_corr_adj,		/* ALGORITHM: simple */ 
  prev_spurious_hour_report,	/* ALGORITHM: simple */
  spurious_hour_report,		/* ALGORITHM: simple */
  transferred_bytes,		/* ALGORITHM: counter */ 
  nr_strdups,			/* ALGORITHM: wrapper_admin */ 
  nr_mallocs,			/* ALGORITHM: wrapper_admin */ 
  nr_reallocs,			/* ALGORITHM: wrapper_admin */ 
  nr_callocs,			/* ALGORITHM: wrapper_admin */ 
  nr_frees,			/* ALGORITHM: wrapper_admin */ 
  nr_in_use,			/* ALGORITHM: wrapper_admin */ 
  heap,				/* ALGORITHM: wrapper_admin */
  random1,			/* ALGORITHM: simple */
  random2,			/* ALGORITHM: simple */
  random3,			/* ALGORITHM: simple */
  random4,			/* ALGORITHM: simple */
  domain,			/* ALGORITHM: ip_admin */
  ip,				/* ALGORITHM: ip_admin */
  individual_visitors_24,       /* ALGORITHM: counter */ 
  visitors24,			/* ALGORITHM: counter */ 
  visitors_1,			/* ALGORITHM: counter */ 
  visitors_2,			/* ALGORITHM: counter */ 
  visitors_3,			/* ALGORITHM: counter */ 
  visitors_4,			/* ALGORITHM: counter */ 
  visitors_5,			/* ALGORITHM: counter */ 
  visitors_6,			/* ALGORITHM: counter */ 
  visitors_7,			/* ALGORITHM: counter */ 
  
  /* options and controls for mts */
  port_hex,			/* ALGORITHM: preset */ 
  port_bin,			/* ALGORITHM: preset */ 
  port_txt,			/* ALGORITHM: preset */ 
  port_http,			/* ALGORITHM: preset */ 
  port_xml,			/* ALGORITHM: preset */ 
  port_status,			/* ALGORITHM: preset */ 
  time_update_gap,		/* ALGORITHM: preset */ 
  time_update_cmd,		/* ALGORITHM: preset */ 
  time_update_hour,		/* ALGORITHM: preset */ 
  meteo_update_cmd,		/* ALGORITHM: preset */ 
  meteo_update_frequency,	/* ALGORITHM: preset */ 
  auxilary_update_cmd,		/* ALGORITHM: preset */ 
  auxilary_update_interval,	/* ALGORITHM: preset */ 
  cgi_path,			/* ALGORITHM: preset */ 
  web_top_path,			/* ALGORITHM: preset */ 
  log_flags,			/* ALGORITHM: preset */ 
  log_file,			/* ALGORITHM: preset */ 
  device,			/* ALGORITHM: preset */ 
  daemonize,			/* ALGORITHM: preset */ 
  log_content_types,		/* ALGORITHM: preset */
  dst_start_occurence,		/* ALGORITHM: preset */ 
  dst_start_day,		/* ALGORITHM: preset */ 
  dst_start_month,		/* ALGORITHM: preset */ 
  dst_start_hour,		/* ALGORITHM: preset */ 
  dst_end_occurence,		/* ALGORITHM: preset */ 
  dst_end_day,			/* ALGORITHM: preset */ 
  dst_end_month,		/* ALGORITHM: preset */ 
  dst_end_hour,			/* ALGORITHM: preset */ 
  dst_start_time_adaption,	/* ALGORITHM: preset */
  inhibit_ip1,			/* ALGORITHM: preset */
  inhibit_ip2,			/* ALGORITHM: preset */
  inhibit_log_ip1,              /* ALGORITHM: preset */
  inhibit_log_ip2,              /* ALGORITHM: preset */
  inhibit_log_ip3,              /* ALGORITHM: preset */
  inhibit_log_ip4,              /* ALGORITHM: preset */
  inhibit_log_ip5,              /* ALGORITHM: preset */
  inhibit_os_value_report,      /* ALGORITHM: preset */
  domain_group_name1,              /* ALGORITHM: preset */
  domain_group_name2,              /* ALGORITHM: preset */
  domain_group_name3,              /* ALGORITHM: preset */
  domain_group_name4,              /* ALGORITHM: preset */
  domain_group_name5,              /* ALGORITHM: preset */
  domain_group_name6,              /* ALGORITHM: preset */
  domain_group_name7,              /* ALGORITHM: preset */
  domain_group_name8,              /* ALGORITHM: preset */
  domain_group_name9,              /* ALGORITHM: preset */
  domain_group_name10,              /* ALGORITHM: preset */
  status_report_mask,      /* ALGORITHM: preset */
  ai_forecast_time_constant,	/* ALGORITHM: preset */
  trend_filter_time_constant,	/* ALGORITHM: preset */
  trend_filter_tighten_time,	/* ALGORITHM: preset */
  tomorrow_forecast_time_limit,	/* ALGORITHM: preset */
  forecast_factor,              /* ALGORITHM: preset */
  ice_freeze_factor,            /* ALGORITHM: preset */
  ice_thaw_factor,              /* ALGORITHM: preset */
  ice_temp_fall,                /* ALGORITHM: preset */
  ice_freeze_factor2,           /* ALGORITHM: preset */
  ice_thaw_factor2,             /* ALGORITHM: preset */
  ice_thickness2_alpha,         /* ALGORITHM: preset */
  ice_thaw_factor3,		/* ALGORITHM: preset */
  islamic_calendar_type,	/* ALGORITHM: preset */
  programmed_exit_time,         /* ALGORITHM: simple */
  immediate_exit_request,       /* ALGORITHM: simple */
  degree_day_separator,         /* ALGORITHM: simple */
  device_simulator, 		/* ALGORITHM: simple */
  build,                        /* ALGORITHM: simple */
  empty,
  
  
  meteo_data_type_sentinel  /* not a data indicator, must be last item */
} meteo_data_type;

#define NR_METEO_ITEMS      (meteo_data_type_sentinel)


int
wmr_seconds_in_minute(void);

Boolean
set_calibration (const char * key,
                 double x_1, double y_1,
		 double x_2, double y_2,
		 double x_3, double y_3);

char const *
get_meteo_value(char const * key);

meteo_data_type
translate_meteo_key(char const * key);

Boolean
valid_meteo_value(const char * key);

void
put_meteo_data (meteo_data_type item, char const * value);

Boolean
valid_meteo_data(meteo_data_type item);

void
reset_meteo_data(meteo_data_type key);

void
reset_meteo_data_list (meteo_data_type first, ...);

char *
get_meteo_data(meteo_data_type item);

char const *
get_meteo_data_format(meteo_data_type item);

char const *
get_meteo_data_title(meteo_data_type item);

char const *
get_meteo_data_key(meteo_data_type item);

char const *
get_meteo_data_units(meteo_data_type item);

int
get_meteo_data_conversions(meteo_data_type item);

void
mark_new_minute(void);

void
calibrate_meteo_data (meteo_data_type m);

void
iterate_meteo_data (iter_proc_type proc, int * p_fd);


#endif