/libdiscovergy

Primary LanguageC++GNU General Public License v3.0GPL-3.0

libdiscovergy - a C++ library for interfacing with the discovergy API

https://github.com/mysmartgrid/libdiscovergy

This library is a C++ implementation of the discovergy API. It is a fork of the libmysmartgrid (https://github.com/mysmartgrid/libmysmartgrid) It is based on libcurl (http://curl.haxx.se/) and libjsoncpp (https://github.com/open-source-parsers/jsoncpp)

Building libdiscovergy

Libdiscovergy depends on the following libraries:

  1. Boost version 1.46 or later
  2. libcurl version 7.19 or later
  3. OpenSSL verson 1.0 or later
  4. JsonCpp version 0.6.0 or later

On Ubuntu 12.04 LTS you can run the following command to install all dependencies

sudo apt-get install libjsoncpp-dev libcurl4-openssl-dev libboost1.48-dev

To build the code run the following lines from the source directory

mkdir -p build
cd build
cmake ../
make

To install the libdiscovergy to /usr/local run

make install

You can also change the install prefix by running

cmake -DCMAKE_INSTALL_PREFIX=<prefix> ../

in a clean build directory.

If you prefer debian packages or tarballs run

make release