# Example for parsing openweathermap five-day-forecast data.
#
# File:
#   testcases/openweathermap_5d.json xpath_json
#
# Expected Output:
# weather,city=London,country=GB humidity=70i,clouds=100i,wind_direction=252,wind_speed=2.03,temperature=137.86666666666667 1596632400000000000
# weather,city=London,country=GB wind_direction=252,wind_speed=2.03,temperature=138.42222222222225,clouds=100i,humidity=71i 159663600000000000
# weather,city=London,country=GB humidity=71i,clouds=100i,wind_direction=252,wind_speed=2.03,temperature=138.9777777777778 159667200000000000
#

metric_name = "'weather'"
metric_selection = "//list/*"
timestamp = "dt"
timestamp_format = "unix"

[tags]
  city = "/city/name"
  country = "/city/country"

[fields_int]
  humidity = "main/humidity"
  clouds = "clouds/all"

[fields]
  wind_direction = "number(wind/deg)"
  wind_speed = "number(wind/speed)"
  temperature = "(number(main/temp) - 32.0)*(5.0 div 9.0)"
