Add calendar CLI tool, move creds to services.env

This commit is contained in:
Hoid 2026-02-18 07:36:12 +00:00
parent 3674e0a96f
commit 2206332ff0
2 changed files with 198 additions and 10 deletions

View file

@ -134,20 +134,20 @@ forgejo raw <endpoint> # Raw API call
## CalDAV Calendar Access
Credentials stored in `.credentials/nextcloud.env`:
- URL: `https://nextcloud.cloonar.com`
- User: `moltbot@cloonar.com`
- Calendar: `personal_shared_by_dominik.polakovics@cloonar.com`
Helper script: `~/.openclaw/workspace/bin/calendar`
To fetch today's events:
```bash
source .credentials/nextcloud.env
curl -s -X REPORT -u "$NEXTCLOUD_USER:$NEXTCLOUD_PASS" \
-H "Content-Type: application/xml" -H "Depth: 1" \
-d '<c:calendar-query xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav"><d:prop><c:calendar-data/></d:prop><c:filter><c:comp-filter name="VCALENDAR"><c:comp-filter name="VEVENT"><c:time-range start="'$(date +%Y%m%d)'T000000Z" end="'$(date +%Y%m%d)'T235959Z"/></c:comp-filter></c:comp-filter></c:filter></c:calendar-query>' \
"$NEXTCLOUD_URL/remote.php/dav/calendars/$NEXTCLOUD_USER/$CALDAV_CALENDAR/"
calendar today # Today's events (default)
calendar tomorrow # Tomorrow's events
calendar week # Next 7 days
calendar next # Next 14 days
```
- Credentials: `.credentials/services.env` (NEXTCLOUD_URL, NEXTCLOUD_USER, NEXTCLOUD_PASS, CALDAV_CALENDAR)
- Calendar: `personal_shared_by_dominik.polakovics@cloonar.com`
- Output: tab-separated (time, summary, location)
- Times shown in Vienna timezone
## AI News RSS (Hybrid Approach)
Helper script: `~/.openclaw/workspace/bin/ainews`