Add calendar CLI tool, move creds to services.env
This commit is contained in:
parent
3674e0a96f
commit
2206332ff0
2 changed files with 198 additions and 10 deletions
20
TOOLS.md
20
TOOLS.md
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue