Has anybody any idea how I can measure not only the current in the meter tails entering my house but also the direction? I have solar panels installed and need to measure power being exported but not imported.
Assuming the utility connection is AC, the concept of 'direction' is meaningless. If you want to measure the flow of power then you will also need to measure the voltage, and have a meter which can deal with the phase angle between voltage and current.
With simple devices, on single phase circuit, you need to measure voltage on two points at maxim distance possible to avoid very high accuracy meters; voltage difference will be small and sure depends of current imported/exported and cable resistance; comparing these voltages tell you power direction: if voltage in point near supplier is higer than voltage near loads, mean you import energy and vice-versa for reverse situation.
Which way is the electric meter turing. The power company - by law - must reimburse you if you are adding to the grid. Not good enough - then follow the above...
Law is a function of location. Various locations will have widely differing rate tariffs (especially regarding how much they'll pay for consumer generated power [less, net, generous]).
With a modest solar panel installation and a normal (Westernized) lifestyle, one might never produce enough power to exceed one's own power requirements. The meter would always spin forward, just a bit slower.
Of course, if one has a multi-kw installation, hopefully the resultant shadow doesn't cause the electric heating bill to rise.
Simple... Use the TED5000 energy meter. Simple to use, web based, inexpensive. They have a version for wind/solar generation. I don't have any generation, but I use one on my house and love it.