Git Product home page Git Product logo

meteosource_cpp's Introduction

meteosource_cpp - Weather API library

C++ wrapper library for Meteosource weather API that provides detailed hyperlocal weather forecasts for any location on earth.

Dependencies

The 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

Get started

To use this library, you need to obtain your Meteosource API key. You can sign up or get the API key of existing account in your dashboard.

Library usage

To use meteosource_cpp, you only need to copy all *.cpp and *.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 api_key and tier in example.cpp to your actual API key and tier before compiling.

Usage notes

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 becomes wind_speed. You can see the available variable names for the individual sections in src/Data.h file.

The library uses empty string as default value for std::string variables, NAN for double variables and -9999 for int variable (only icon variable).

Contact us

You can contact us here.

meteosource_cpp's People

Contributors

meteosource avatar

Stargazers

Lih Ingabo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.