Loading...
Loading...
Query and manage ModularIoT Calendar services via the miot CLI. List calendars, check slot availability, create bookings, manage time windows, and run slot managers. Use when the user asks about schedules, appointments, bookings, availability, calendar configuration, time slots, capacity, or calendar services in their ModularIoT organization.
npx skill4agent add microboxlabs/modulariot miot-calendarmiotnpx @microboxlabs/miot-cli <command>miot <command>--base-url--tokenMIOT_BASE_URLMIOT_TOKEN~/.miotrc.json--profile <name>--output jsonOrganization
└── Groups ← organize calendars by category
└── Calendars ← represent a bookable resource (room, vehicle, service)
├── Time Windows ← define when slots are available (hours, days, capacity)
├── Slots ← generated from time windows; bookable time units
│ └── status: OPEN | CLOSED
├── Bookings ← consume a slot, linked to a resource (vehicle, room…)
└── Slot Managers ← automate slot generation on a rolling basiscapacitycurrentOccupancyavailableCapacity = capacity - currentOccupancymiot calendar list --output jsonmiot calendar slots list --calendar <id> --from <monday> --to <friday> --available --output jsonmiot calendar bookings create --calendar <id> --resource-id <rid> --date <date> --hour <h> --minutes <m> --output jsonmiot calendar slots list --calendar <id> --from <start> --to <end> --output jsonmiot calendar slots generate --calendar <id> --from <today> --to <today+14> --output jsonmiot calendar bookings by-resource <resourceId> --output jsonmiot calendar slot-managers run --output jsonmiot calendar slot-managers run <managerId> --output jsonmiot calendar get <id> --output jsonmiot calendar time-windows list --calendar <id> --output json{ "error": { "statusCode": N, "message": "..." } }| Code | Meaning |
|---|---|
| 400 | Invalid parameters (date range > 90 days, invalid hours, etc.) |
| 404 | Resource not found |
| 409 | Slot full / no capacity remaining |
startHour < endHour"1,2,3,4,5"OPENCLOSEDavailableCapacity > 0