How to build a week and day agenda

I took a look in [HOW-TO] Create a custom Calendar using repeating group but that only work for a MONTH calendar.

What I need is to build an agenda for each week and each day (both visualizations) as shown in the How-To article, but not as month. Is it possible? Probably with a new code?