Convert your old energy meter to a smart meter[edit]
Keeping track of your energy consumption with a classical electric energy meter (ferraris meter) is a tedious task.
You need to got o the location of your meter and read it regularly and then enter the recording data into a
software to analyze it.
There are off the shelf solutions to the problem which add an optical sensor to the meter and then let you
analyze the results remotely with another device.
With a smartphone or IP camera you can easily get access to your meter data remotely from your computer:
Place the IP camera or a smartphone with an IP camera app in front of your old meter
you'll now be able to take snapshot images of your camera
run a script that takes a picture of the camera every second
then compares the previous picture with the current
if the difference between the pictures is above a treshold there has been a turn of the ferraris meter
taking the picture is done with curl
comparing the picture can be done with imageMagick
each turn is 1/75 of a an kilowatthour - 48000 J
for each turn save a picture and add the current timestamp and watt rating 48000 J / number of seconds for the turn e.g. 10 secs=4800 Watt, 20secs=2400 Watt ...
again imagemagick can be used for the purpose
if you like you can convert the results to a video