resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Google Calendar #847

Closed robjanssen1984 closed 2 years ago

robjanssen1984 commented 2 years ago

It would be great to have upcoming appointments shown in a Tile. The Google API is working and I can see the attributes are loading the appointment as well. Can I use the TYPES.TEXT_LIST for this?


message: Test all_day: start_time: '2022-07-13 09:00:00' end_time: '2022-07-13 10:00:00' location: '' description: '' offset_reached: false friendly_name: ***@gmail.com

robjanssen1984 commented 2 years ago

After some digging and trying things out, I am happy with the results so far..


              {
            position: [0, 2],
            type: TYPES.TEXT_LIST,
            width: 2,
            height: 1,
            margin: 0,
            subtitle: '',
            classes: ['-temp'],
            id: 'calendar.*******************_',
            state: '',
                list: [
              {
                   title: 'Next up: ',
                },

                                  {
                   title: '&calendar.************.attributes.message',
                   icon: 'mdi-calendar',
                },
                                {
                   title: '',
                },
                {
                   title: 'Date & Time: ',
                },
                                                    {
                   title: '&calendar.**********.attributes.start_time',
                   icon: 'mdi-av-timer',
                },
                                    {
                   //title: 'Locatie',
                   //icon: '',
                   //value: '&calendar.*************.attributes.location'
                }
                ],
                },

Naamloos