Tariff device logging according to IEC 62056-21.
The device is based on Raspberry PI, with the optical head connected to it. It reads the tariff values every 15 minutes and saves it into the database file. The device has the web interface displayin the captured data in chart.
script/tariff.py: access tariff device and store reading into sqlite database file.
script/display.py: Show something on display. script/display.service: Make display work after reboot.
doc: some resouces
hw: optical head documentation
Copy script folder to raspberry pi home folder.
From PC repository:
scp -r script pi@<YOU_PI_IP>:/home/pi/
Run display.service to make display showing something.
- Copy display.service to /etc/systemd/system
sudo cp ~/script/display.service /etc/systemd/system
- Reload systemd daemon
sudo systemctl daemon-reload
- Enable service at boot
sudo systemctl enable display.service
- Reboot RPi or start service immediately
sudo systemctl start display.service
- calculate time of the high-low tariff switching
- display it
- some more description (schematics, head documentation, photos ...)