Calendar - List of today's upcoming events

Hello everyone and especially @bertrandda :slight_smile:

I would like to have a scene triggered at 8:00 PM in the evening in which all of the events coming the next day would be « available », so I can retrieve their time and title. Is this feasible, and how? :stuck_out_tongue:

Thanks,
Jean

Hello,
We should add a block to retrieve events from a time range (a bit like the block we have to retrieve the state of a device) but I think that requires more thought :thinking:. Because once you have the full set of events you need a way to iterate over each event to do what you want with it, and at the UX level I don’t know how we could handle that…

it depends on the purpose, if the goal is purely to send a message or a voice announcement, it can just be a list in text form

@jean_bruder what are you asking this for? :slight_smile:

Hello @pierre-gilles :slight_smile:

Indeed, it’s purely for informational purposes: I want Gladys to have the list of upcoming events (and the times, while we’re at it…) so she can announce them the evening before when we’re at the table :stuck_out_tongue:

Thanks,
Jean

Do you want that to be a voice announcement via the scene action « Speak on a speaker »?

No, I don’t use that feature. It will be done by retrieving values and then making calls to an in-house API :+1:

It would be really nice to be able to use the function you mention, if it could handle any audio output :wink:

So it would need to be available in a scene variable, basically? To be able to inject it into another block?

I’d like that too! Unfortunately there isn’t a standard in the audio world; each integration has to be coded ^^

Hello @pierre-gilles :slight_smile:
Yes, the values should be retrieved as scene variables so they can be reused in an API call block.
Regarding audio, if I could help you develop the PulseAudio integration, I would gladly do so, but I don’t know how :frowning: I’m sure it would please all Gladys users on Linux, because it’s the current audio standard (although Mint has introduced PipeWire as the new standard …), as AirPlay is on Mac I believe :slight_smile:
Have a nice day,
Jean

Hello @bertrandda @pierre-gilles,

I’m reviving a topic from… 2024. We had left off with @pierre-gilles discussing a specific audio implementation for me, and we hadn’t reached a conclusion on my original request: to have the day’s events the night before, or even for other days, if possible, by specifying the date. Is this feasible?

Thanks,

Have a great day,

Jean

I’d be pretty interested in this too
An injected variable would be pretty useful for all needs indeed.

Why not yes :slight_smile: Will you create a request in Demande de fonctionnalités @jean_bruder?

Thanks for creating this request @jean_bruder! :slightly_smiling_face:

However, I think it lacks a bit of precision. When reading it, it’s not immediately clear which part of Gladys it refers to.

It would be helpful to specify that the request concerns scenes, and more specifically the addition of a new Action block that would allow you to achieve what you want.

If you can also describe the final need (for example: broadcast via TTS on a speaker the list of events for the next day), that’s even better. It helps to understand the use case and design a feature that meets the need, rather than a specific implementation. :slightly_smiling_face:

Hi again @pierre-gilles,

Is the precision added to my request sufficiently descriptive, while not being too restrictive in its use?

Does this bring @spenceur equal satisfaction?

Have a great evening,

Jean

I edited the topic :slight_smile: thanks!