-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support multiple instances in Calendar #1109
Comments
I fail to understand what the issue is. Why does it need an "instance" identifier? You can just add multiple calendar modules to your config? Could you elaborate? |
If I create two calendars, options for the first calendar are over-ridden by the second. For example, if my first calendar specifies I've duplicated the issue with the What led me to create this option was this discussion on the forum. One of the users in this discussion states that most modules don't support multi-instance and that they share node_helper. |
This is more of a bug than a missing feature. The calendar URL's aren't shared between multiple instances either. So any other configuration like Making the necessary changes is a pretty far-reaching task. But I think it's better to solve this in a clean way than to use quick and dirty solutions. If it's really an issue for your calendar. You can always fork the calendar module and create & use your own version. Of course, an PR which solves the issue is more than welcome. I will therefor leave this Issue open. I'll close the current PR for now. One minor hint if you do want to make your own fork: you can always use the module's |
@MichMich Thanks for the pointers. |
I'm facing the excat same issue and can't figure it out myself because of lack of skills. If not, @rgstephens, could you please guide me step by step so I can't implement the workaround you discussed above (this.identifier) to get that solved? Regards |
@bolish It's been a while since I worked on this. I can't give you step by step but here's a link to my modified calendar.js and a sample calendar config. |
thanks @rgstephens but I can't manage to get it work... |
the easiest way to support mu;ltiple instances of the same module is on each sendSocketNotification to add the module identifier to the structure sent. the node helper also has to save the config data sent down by identifier (or limit the use to just api data and response)... if multiple instances are running, (multiple module: mod_name in config.js) any sendsocketNotification from the node_helper WILL got to ALL instances... see my https://github.com/sdetweil/NewBusTimes repo which supports multiple module: in config.js |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fix #1109 - multiple calendar instances with different config
I'd like to create multiple calendars (a "Today's Calendar" with certain types of calendar items and a "Group Calendar" with upcoming events associated with a group of people, etc.). I've added a new
instance
configuration option so you can create multiple calendar instances each have a unique instance id. For example:The text was updated successfully, but these errors were encountered: