Skip to content

Combine FIU event feeds and refresh campus map data daily - #3

Open
DaDocterTaco wants to merge 1 commit into
livechatfrom
codex/daily-events
Open

DaDocterTaco wants to merge 1 commit into
livechatfrom
codex/daily-events

Conversation

@DaDocterTaco

Copy link
Copy Markdown
Owner

The map previously read a manually generated Panther Connect snapshot and matched venues using raw substring checks. This change combines Panther Connect RSS with all pages of FIU Calendar's next 90 days, preserves recurring occurrences, merges conservative cross-source duplicates, and writes the feed atomically only after both sources validate.

The map now includes date/source/search filters, building event counts, source links, Show on map, an updated timestamp, five-minute feed reloads, and automatic expiry filtering. Explicit building aliases and room codes replace substring matching; virtual, BBC and Washington/DC events remain in the list rather than receiving misleading MMC pins. Unknown ends are labeled and expired at the end of their local day. Source HTML is rendered as text.

Validation: 14 Python tests and 7 JavaScript tests passed. Live import fetched 6 FIU Calendar pages and Panther Connect, producing 785 upcoming occurrences (321 matched to MMC buildings, 9 merged cross-source listings). Browser checks covered search, source/date filters, empty results and building popups. The local preview is running from events-work.

Local scheduling: an active Codex app automation updates this user's local events-work/events.json daily at 5:17 AM America/New_York; the machine and app must be running. That app setting is not installed by this PR. A GitHub Actions daily workflow is included for future hosting, but will only schedule when present on the default branch. This PR targets livechat and does not activate GitHub scheduling or deploy a website. EVENTS.md documents setup and publishing requirements.

Compatibility: events.json is now a version-2 envelope; the array is under events. Deploy the updated loader and feed together. buildings.json contains the existing map coordinates unchanged.

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

Successfully merging this pull request may close these issues.

1 participant