linux shared library to fetch sunrise & sunset data from api.sunrise-sunset.org
-
Install git
$ sudo apt-get install git
-
Clone and build jsmn
$ git clone https://github.com/zserge/jsmn
$ cd jsmn
$ make
$ cd ..
This should create jsmn.o
-
clone sunrise-sunset repository
$ git clone https://github.com/bobsrentacow/sunrise-sunset
-
copy jsmn header and library
$ cp jsmn/jsmn.o sunrise-sunset/
$ cp jsmn/jsmn.h sunrise-sunset/
-
build sunrise-sunset
$ cd sunrise-sunset
$ make
-
install the shared library into /usr/lib and update the library cache
$ sudo make install
After completing the Install steps, execute the test executable under sunrise-sunset.