meteosource_cpp – Weather API library
C++ wrapper library for Meteosource weather API that provides detailed hyperlocal weather forecasts for any location on earth.
meteosource_cpp library needs following software installed:
On Debian platforms, you can install these libraries using:
sudo apt-get update sudo apt-get install libcurl4-gnutls-dev sudo apt-get install libjsoncpp-dev
meteosource_cpp, you only need to copy all
*.h files from
src folder into your project. Then you can
#include "Meteosource.h" and fetch the weather data you need.
Example usage is shown in
example.cpp. You can compile it by simply running
make, and run it by
./example. Be sure to change variables
example.cpp to your actual API key and tier before compiling.
The library uses parameter values and variable names with the same convention as the API itself. One exception are nested variables, such as
wind.speed in the API. This library uses
_ to separate the levels, so
wind_speed. You can see the available variable names for the individual sections in
The library uses empty string as default value for
double variables and
int variable (only
You can contact us here.