This is a simple program using C running on Linux system. It uses cJSON and curl.
1.Download curl,if you have down curl,you can kip this.
wget https://curl.haxx.se/download/curl-7.55.1.tar.gz
tar -xzvf curl-7.55.1.tar.gz
cd curl-7.55.1
./configure
make
make install
2.Building and Running
(1)You have to get a Free key from https://developer.worldweatheronline.com and write down the key.
(2)Download the file
(3)Build with make
. Clean with make clean
.
(4)Running like./weather -k [key] -l [location]
If you have not write the location.it will be Beijing.