git clone https://github.com/WiringPi/WiringPi.git
cd ~/wiringPi
$ ./build
PIN 5 / GPIO 3 = +
PIN 34 = GROUND
See WiringPi Pinout
GPIO 3 = 9 in WiringPi
gcc -lwiringPi -o strom strom.c
Edit service
sudo cp service /etc/init.d/stromlogger
sudo cp service_watt /etc/init.d/wattlogger
sudo chmod 755 /etc/init.d/stromlogger
sudo chmod 755 /etc/init.d/wattlogger
cd /etc/init.d/
sudo update-rc.d stromlogger defaults sudo update-rc.d wattlogger defaults
sudo service stromlogger stop
sudo service stromlogger start
sudo service stromlogger restart
sudo service wattlogger stop
sudo service wattlogger start
sudo service wattlogger restart