That sounds wonderfull !!

thank you very much big_smile

hi Roel,

thanks for the response , but that was not exactly what i meant
i already did not have $sbContent = 'todo'; in the sidebar-page so it did show upcoming events.

But the problem i have is that when an event is already done (timewise) it is still displayed and that is not the case in the display-page where i can set the $futEvts = 1; option. , when i set that option the event that ended for example at 12:00 am will not show up after 12:00 am that day

below is what happens now, in sidebar lock07-event is still visible while it is already done, while on the display-page it is not shown due the $futEvts =1; option
(oops wanted to add picture but that did not work)

Displaypage shows:
-----------------------------
Lock Calendar
Fri, February 12
Until 23:00 lock09 locked
Category: locks
------------------------------

Sidebar-page shows:
------------------------------
Locks
Thursday 11 February 2021 - Friday 12 February 2021
3:00 - 12:00
lock07 locked
Wednesday 10 February 2021 - Friday 12 February 2021
12:00 - 23:00
lock09 locked
-------------------------------

would be great if sidebar could also use something like $futEvts =1;

Greetings all

Being new to LuxCal i am testing the calendar for use with an arduino project to activate a lock based on an calendar event.
I made a sidebar available on a page which is scanned by the arduino code for a specific name of an event. when found the lock is closed
and when not found the lock is opened

But when i use the sidebar upcoming events the event on the page is displayed even if the time  of the event is past already
When i used the display03 i could use the $futEvts = 1; setting to not show passed events on the current day but on the sidebar i noticed $futEvts was not available to use.
But the dislpay-page should be in the calendar root directory and i need it one directory up so thats why i wanted to use a sidebar
(displaypage in iframe won't work as the arduino code does not see the contents inside the iframe)


Is there a way to change the lcsbar.php so it can use the $futEvts setting or so that it doesn't display events that are past already on the moment the page is displayed (scanned in my case)

i would really appreciate your help so i can make my project work with LuxCal