https://github.com/sbarbett/acro-events
A calendar of in-game events in Acropolis
https://github.com/sbarbett/acro-events
mud-game text-based-game
Last synced: 10 months ago
JSON representation
A calendar of in-game events in Acropolis
- Host: GitHub
- URL: https://github.com/sbarbett/acro-events
- Owner: sbarbett
- License: mit
- Created: 2025-08-08T05:51:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-08T06:25:02.000Z (10 months ago)
- Last Synced: 2025-08-08T08:14:01.046Z (10 months ago)
- Topics: mud-game, text-based-game
- Language: Shell
- Homepage: https://sbarbett.github.io/acro-events/
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Acropolis (MUD) Events Calendar
A small, static web calendar to display in-game events for Acropolis. It reads a simple `events.json` file and renders a rolling calendar (today + 60 days). Designed to be hosted on GitHub Pages.
## Event data format
Events are provided in `docs/events.json` as an array of objects. Timestamps are UNIX seconds.
```json
[
{
"id": "68956be9-0006-0001-6895-68936be90006",
"type": "quadruple_xp",
"start_time": 1754622953,
"end_time": 1754624753,
"recurring": false,
"recurrence_type": "none"
},
{
"id": "68956b53-0005-0001-6895-68906b530005",
"type": "triple_xp",
"start_time": 1754622900,
"end_time": 1754624700,
"recurring": true,
"recurrence_type": "weekly"
},
{
"id": "68956ada-0003-0001-6895-68966ada0003",
"type": "double_xp",
"start_time": 1754622900,
"end_time": 1754624700,
"recurring": true,
"recurrence_type": "monthly"
}
]
```
- `type`: free-form string used for labeling and styling (e.g., `double_xp`, `triple_xp`, `quadruple_xp`).
- `start_time` / `end_time`: UNIX epoch seconds (local time is used for display).
- `recurring`: `true` or `false`.
- `recurrence_type`: one of `none`, `daily`, `weekly`, `monthly`.
Notes:
- Recurring events repeat from their original `start_time` at the same local time.
- Monthly recurrence clamps to the last day when a month is shorter (e.g., Jan 31 -> Feb 28/29).
- Events are shown on their start day in the grid.
## Run locally
You can serve the `docs/` directory with any static server. Example using Python:
```bash
python3 -m http.server 8090 --directory docs
```
Then open `http://localhost:8090/`.
## Deploy on GitHub Pages
1. Commit and push the repository.
2. In the repository settings, set Pages source to the `docs/` folder.
3. Visit the Pages URL after it builds; the calendar will load `events.json` directly from `docs/`.
## License
MIT