meteo-vm2
2.0.11
|
Format of a VM2 attributes file and how to read it.
The attributes file is a Lua script that return a table with the stations and variables attributes:
You can create a meteo::vm2::Source instance to query the attributes file.
E.g., if you want the attributes associated to the station with id = 12:
Or, if you want the list of station id matching the attributes lon=1285000
and lat=4412645
:
The attribute file is a Lua script, so it's possible to write a dynamic attributes table.
See http-source.lua and json-source-ws.py for a complete example.