Skip to content

ondrejh/electro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

122 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electro

Tariff device logging according to IEC 62056-21.

Description:

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.

Files:

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

Instalation:

Copy script folder to raspberry pi home folder.

From PC repository:

scp -r script pi@<YOU_PI_IP>:/home/pi/

Make display showing time

Run display.service to make display showing something.

  1. Copy display.service to /etc/systemd/system
sudo cp ~/script/display.service /etc/systemd/system
  1. Reload systemd daemon
sudo systemctl daemon-reload
  1. Enable service at boot
sudo systemctl enable display.service
  1. Reboot RPi or start service immediately
sudo systemctl start display.service

ToDo:

  • calculate time of the high-low tariff switching
  • display it
  • some more description (schematics, head documentation, photos ...)

About

Tariff device logging according to IEC 62056-21

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors