The generated power varies during the day and depends on the weather. At lunchtime, the power is maximum, in the morning and in the evening the power is minimal. How do you solve these problems?
There's a way and it's not complicated
You can do on grid installation where you generate electricity and "sell" to the company
If you calculate how much you will consume in entire day, you can install the exactly amount of solar panels you will need to run 24h.
I almost did this in my house, but the price of solar panels and accessories here in my country is too much expensive.
Obs - maybe this will not work in some countries, if the company don't buy the surplus electricity