1
0
Fork 0

Adding upstream version 1.34.4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-24 07:26:29 +02:00
parent e393c3af3f
commit 4978089aab
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4963 changed files with 677545 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# 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)"