xibosignage / xibo-dotnetclient

Xibo for Windows .NET Player
GNU Affero General Public License v3.0
63 stars 91 forks source link

Schedule: Max plays per hour #267

Closed dasgarner closed 1 year ago

dasgarner commented 2 years ago

Schedule nodes may have a maxPlaysPerHour field on them which should be used during the schedule assessment routine which decides whether to include a schedule or not.

Players should keep an in-memory count of the number of plays for a schedule in the current hour, and if that exceeds the maxPlaysPerHour that schedule should be removed from the list. A setting of 0 means "never remove".

See: https://github.com/xibosignage/xibo/issues/2898