Powerpi
Intro
Building the 'powerpi' power usage monitor for TechInc The raspberry PI in the mains-box is powered by a small power-module in the second row, next to the single (schuko) powersocket. The purpose of it is to interpret the S0-output (100-pulse-per-KW/h) coming from the [Driefazige kWh-teller DSz15D-3x80A] which is mounted on the most bottom rail.
Some info on how to connect something to the S0 bus can be found here: File:S0-bus application note.pdf
A good bit of info about working with Optocouplers can be found [here]
Links
https://www.hwhardsoft.de/deutsch/raspibox-zero/
http://ondrej1024.github.io/emond/
https://pypi.org/project/spidev/
https://www.waveshare.com/wiki/1.3inch_LCD_Module
https://www.waveshare.com/wiki/Libraries_Installation_for_RPi
https://www.waveshare.com/wiki/File:1.3inch_LCD_HAT.tar.gz
https://www.waveshare.com/w/upload/6/6b/1.3inch_lcd_hat_user_manual_en.pdf
http://www.airspayce.com/mikem/bcm2835/
https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
sudo apt-get install ttf-freefont
sudo apt-get install ttf-wqy-zenhei
https://blog.webernetz.net/stromzahler-mit-s0-schnittstelle-vom-raspberry-pi-auswerten/
https://www.raspberrypi.org/documentation/linux/usage/systemd.md