Friday 13 October 2017

Weather forecast: build a graph with gnuplot (1)

Once I discovered Metcheck.com I thought to have found the solution to all my weather forecasting problem. I had datas in more less lines of code than email GRIB provided by SailDocs GRIB Service (a useful, but co,plicated system to receive email which contents is a grib file to decode and set by a bash script).

With the Metcheck system I can receive datas in a json format (free), in this way I can use libraries in bash to obtain infos quickly.

So, with this method I extrapolated dats and I converted it in a csv file then, with these infos I used gnuplot (a bash command [sudo apt-get install gnuplot]) or better, I created a pg file (within there are gnuplot commands) to generate a graph (and after a multigraph through the use of other bash commands).

This is the last version of my code bash code (on pastebin.com):



Although the previous one is not complete you can find the project through the following link on hithub:



I'd be glad if you could give me some suggestion. Thank you... :-)