Self-consumption metering

Good morning,
I have a 3kWp photovoltaic installation for self-consumption and I am looking to have a dashboard to monitor consumption.
The best thing would be to have the information that x kWh coming from the network and x kWh coming from the solar panels per hour / days / month / year. I have already tested with a Sonoff meter that I placed on the inlet of the panels but I had to make the comparison with the network meter by hand. do you think it is possible to do this and display the self-consumption rate on an NS Panel? The goal is to have information live and easily.
Thank you for your feedback!