Can Frame labels in a sitemap be changed dynamically?

I have a page of my sitemap that I would like to show the forecast for the next five days. I have each days forecast in a seperate frame and would like to have the label of the frame be the day of the week (Monday, Tuesday, etc). Is it possible to dynamically change the frame label so that I could accomplish this?

You can create an Item for each of the five days and put the frame under it.


String Day_0 "[%s]"
String Day_1 "[%s]"
String Day_2 "[%s]"
String Day_3 "[%s]"
String Day_4 "[%s]"


rule "Update forecast days of the week"
    Time cron "0 0 0 * * ?"
    Day_0.postUpdate(now.dayOfWeek) // not tested, you may get a number instead of a word for dayOfWeek, some more work here may be needed


Text item=Day_0 {
        // Day 0 forecast
Text item=Day_1 {
        // Day 1 forecast

Another approach can be instead of using String for the Day_x Items you can use a DateTime and use the DateTime formatting in the label to get the day of the week. In the rule you would set the item to now, now.plusDays(1), etc.

Of course there are some limitations. The dynamic label will be right justified.

Awesome, thanks for the workaround! I will give it a try and see what I can do.