Export/Direct use calculation -> json

How does the My Solar App calculate the export/direct/grid numbers? Can I create a feed that calculates these numbers so I can extract them via JSON?

It’s explained here: Solar PV - Guide | OpenEnergyMonitor

It explaines how to create an import and import_kwh feed. Direct use is then “Consumption - Import” and Export = Consumption - Direct

Hi Ruben,

Are you sure that Export = Consumption - Direct?

According to the results I get, Direct is indeed Consumption - Import, but Export is Solar - Direct

Here’s a screenshot: