New approach for matching production and consumption of renewable electricity