Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to display a yearly view #615

Open
cruunnerr opened this issue Jan 29, 2025 · 9 comments
Open

Add possibility to display a yearly view #615

cruunnerr opened this issue Jan 29, 2025 · 9 comments

Comments

@cruunnerr
Copy link

Hey there,

I don't know how hard it would be to implement a new view to OWC. But it would be pretty nice if we get day, week, month and year

@niccokunzmann
Copy link
Owner

niccokunzmann commented Jan 29, 2025

Hi, this should be possible!
We use the dhtmlx scheduler: https://docs.dhtmlx.com/scheduler/year_view.html

The last new view added was the agenda: #67

This is one place to modify:

Image

  • add choice of year view to the possible tabs, disabled by default
  • add year to the dropdown
  • add year in the calendar translations
  • activate the plugin
  • optionally: choose rows and columns as an additional parameter in the default_specification.yml
  • add UI tests to check that we can see the year
  • add UI tests to check that we navigate the year and find events in it

Above are the steps roughly outlines that I think are needed to do this.

Would you like to give it a go?

@cruunnerr
Copy link
Author

That sounds great. But as far as I could find out, the yearly view of dhtmlx can only show you the summary as a tooltip.
Do you think it would be possible to show the summary of the calendar appointments without a need of a mouse or keyboard?

For my use case I would like to show the appointments of three calendars in a yearly view in a kiosk mode without a way to control the website.
Just like this:

Image

@niccokunzmann
Copy link
Owner

Oh. Would you swipe up and down to view all the months?

@cruunnerr
Copy link
Author

Weil I think best case would be to show always the next X Weeks (for example next 4).
So I could simply refresh the page automatically once a day and would always get the next 4 weeks.

@niccokunzmann
Copy link
Owner

Ok. I think, I understand. That makes sense, especially for a kiosk... You are interested in the next events, not the past ones and you would like to look ahead. I had that in my makerspace. The last day of the month is especially useless as you would actually like to see the next weeks....
I am not sure if the agenda view is suited at this moment, either.. It could be filled with X events for example, instead of just one month. For kiosk mode of future events, the OWC should be adapted and is very much intended to be used as that.

I think, I would redirect this to the dthmlx scheduler forum and also link this issue from there... They might have valuable insight as well as would like to know how the software can be improved in general.

@niccokunzmann
Copy link
Owner

niccokunzmann commented Jan 30, 2025

Which calendar display do you use in the screen shot?

See also:

@niccokunzmann
Copy link
Owner

niccokunzmann commented Jan 30, 2025

Also, if you use the Open Web Calendar in a kiosk on e.g. a raspberry Pi, I would be very happy to have the setup documented. I did this myself 2 year ago but I did not write it down. That could be a new .md file in the documentation. Quite exciting :)

For, now, I think the easiest is to make the agenda load events until a certain number is displayed or a certain time is reached. Which is not what you asked for, of cause. But I do not know how to style the scheduler in this way. The answer in the forum might help.

@niccokunzmann
Copy link
Owner

We had a response on the Forum.

What do you think of this picture?

Image

The coloured day would be 'today'.

@cruunnerr
Copy link
Author

cruunnerr commented Jan 31, 2025

First of all: Thank you very much for your commitment!

Which calendar display do you use in the screen shot?

That was a screenshot of fullcalendar that I found on their website.

We had a response on the Forum.

What do you think of this picture?

That is the right directon. :D
But when showing more then 4 weeks (let's say 10), then it would be great if every first day of a month is shown with it's month name. (Sorry for my bad english).
So in the field of the 1st March should be displayed "March". In the field of the 1st April should be displayd "April". Hope you understand.

Maybe even the proposal in the forum would be a way to go: https://snippet.dhtmlx.com/3u5s62lt
Then their would be just the need of removing the buttons (day,week,month,today) and you are good to go.
What do you think?

I try to clarify the exact use case I am looking for:
For my employees (10 people) I would like to set up a little pc with a 50" screen on which their appointments, vacations, company events, etc. are displayed. So there will also be appointments that last several weeks (e.g. "vacation employee01" from 15.02.25 - 15.03.25). For this I wrote a python script that regularly downloads the calendars of several Exchange accounts and saves them in separate ics files. I would have liked to always display at least the next 6 weeks, starting from the actual week. The summaries must remain readable!

For my home I am already using your OWC project in a kiosk mode. It shows me the actual month and the agenda view in a website. But the agenda view is rather unsuitable for the use case mentioned above.

Also, if you use the Open Web Calendar in a kiosk on e.g. a raspberry Pi, I would be very happy to have the setup documented. I did this myself 2 year ago but I did not write it down. That could be a new .md file in the documentation. Quite exciting :)

I basically installed an apache server and OWC via docker compose and created a small website. The raspberry is running on ubuntu and opens firefox in kiosk mode as a service on startup. I can try to write it down. will take a while, because I have to reconstruct all the steps myself and have a lot on my mind in my private life right now.

And again: Thank you for your commitment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants