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)
Libdiscovergy depends on the following libraries:
- Boost version 1.46 or later
- libcurl version 7.19 or later
- OpenSSL verson 1.0 or later
- 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