For the original project go to [megallannh/RPI_Egergy](https://github.com/magellannh/RPI_Efergy), mine is just a mod to store values into a database. How to compile? feel free to read [Howto: Connect MySQL server using C program API under Linux or UNIX](http://www.cyberciti.biz/tips/linux-unix-connect-mysql-c-api-program.html) $ mysql_config --libs $ mysql_config --cflags $ gcc -o EfergyRPI_mysql $(mysql_config --cflags) EfergyRPI_mysql.c $(mysql_config --libs)