Compare commits

...

3 commits

Author SHA1 Message Date
fenris d8c0e55340 [sty] 2025-10-22 00:49:54 +02:00
fenris 127c676fd1 [mod] example conf:caldav stuff 2025-10-22 00:49:35 +02:00
fenris e6571aeff4 [add] data:house_and_garden 2025-10-22 00:49:10 +02:00
4 changed files with 299 additions and 3 deletions

View file

@ -33,8 +33,8 @@
} }
}, },
"caldav": { "caldav": {
"address": "http://localhost:8000/calendars/-/lampukistan", "address": "http://localhost:8000/calendars/-/demo",
"username": "lampukistan-{{username}}", "username": "demo-{{username}}",
"password": "{{password}}", "password": "{{password}}",
"setup_hints": [ "setup_hints": [
{ {

View file

@ -0,0 +1,296 @@
{
"users": [
{
"id": 1,
"name": "alice",
"email_address": "alice@example.org",
"dav_token": "alice_dav",
"password": "alice"
},
{
"id": 2,
"name": "bob",
"email_address": "bob@example.org",
"dav_token": null,
"password": "bob"
}
],
"calendars": [
{
"id": 1,
"name": "Feiertage",
"hue": 0.0000,
"access": {
"public": true,
"default_level": "edit",
"attributed": [
]
},
"resource": {
"kind": "local",
"data": {
"events": [
{
"name": "Tag des Wassers",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": [0]},
{"action": "shift_week", "args": [-1]},
{"action": "shift_day", "args": [1]}
],
"time": null
},
"end": null,
"location": null,
"description": null
},
{
"name": "Tag der Erde",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": [0]},
{"action": "shift_week", "args": [0]},
{"action": "shift_day", "args": [6]}
],
"time": null
},
"end": null,
"location": null,
"description": null
},
{
"name": "Tag der Luft",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": [0]},
{"action": "shift_week", "args": [2]},
{"action": "shift_day", "args": [4]}
],
"time": null
},
"end": null,
"location": null,
"description": null
}
]
}
}
},
{
"id": 2,
"name": "Garten",
"hue": 0.3333,
"access": {
"public": false,
"default_level": "none",
"attributed": [
{
"user_id": 1,
"level": "admin"
},
{
"user_id": 2,
"level": "view"
}
]
},
"resource": {
"kind": "local",
"data": {
"events": [
{
"name": "Unkraut jähten",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [-1]},
{"action": "shift_day", "args": [3]}
],
"time": {"hour": 10, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [-1]},
{"action": "shift_day", "args": [3]}
],
"time": {"hour": 11, "minute": 0, "second": 0}
},
"location": "Drosselweg 7",
"description": "Giersch und Rainkohl haben wider gewuchert"
},
{
"name": "Holz hacken",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [0]},
{"action": "shift_day", "args": [0]}
],
"time": {"hour": 13, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [0]},
{"action": "shift_day", "args": [0]}
],
"time": {"hour": 14, "minute": 0, "second": 0}
},
"location": "Drosselweg 7",
"description": "die alte Birke ist bereits in Segmente geschnitten und muss nun noch in handliche Scheite zerlegt werden"
},
{
"name": "Blumen gießen",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [2]}
],
"time": {"hour": 18, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [2]}
],
"time": {"hour": 19, "minute": 0, "second": 0}
},
"location": "Drosselweg 7",
"description": "erst in der Abendzeit, damit die Sonne tief steht und das Gießen sich lohnt"
},
{
"name": "Grill-Fete",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [5]}
],
"time": {"hour": 18, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [5]}
],
"time": {"hour": 23, "minute": 0, "second": 0}
},
"location": "Drosselweg 7",
"description": "Grillgut ist selbst mitzubringen; Getränke sind bereits vor Ort"
}
]
}
}
},
{
"id": 3,
"name": "Haus",
"hue": 0.6667,
"access": {
"public": false,
"default_level": "none",
"attributed": [
{
"user_id": 1,
"level": "none"
},
{
"user_id": 2,
"level": "admin"
}
]
},
"resource": {
"kind": "local",
"data": {
"events": [
{
"name": "Bad putzen",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [-1]},
{"action": "shift_day", "args": [4]}
],
"time": {"hour": 8, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [-1]},
{"action": "shift_day", "args": [4]}
],
"time": {"hour": 9, "minute": 0, "second": 0}
},
"location": "Eschenhain 11",
"description": "das Waschbecken sollte unbedingt von Keimen befreit werden"
},
{
"name": "Abstellkammer aufräumen",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [0]}
],
"time": {"hour": 12, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [1]},
{"action": "shift_day", "args": [0]}
],
"time": {"hour": 13, "minute": 0, "second": 0}
},
"location": "Eschenhain 11",
"description": "einiges davon kann vermutlich gleich entsorgt werden"
},
{
"name": "Treppe wischen",
"begin": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [2]},
{"action": "shift_day", "args": [1]}
],
"time": {"hour": 14, "minute": 0, "second": 0}
},
"end": {
"timezone_shift": 0,
"date_relative": [
{"action": "trunc_week", "args": []},
{"action": "shift_week", "args": [2]},
{"action": "shift_day", "args": [1]}
],
"time": {"hour": 15, "minute": 0, "second": 0}
},
"location": "Eschenhain 11",
"description": "die dreckigen Schuhe haben ihre Spuren hinterlassen"
}
]
}
}
}
]
}

View file

@ -75,7 +75,7 @@ namespace _zeitbild.api
? ?
null null
: :
await _zeitbild.service.user.get(user_id) (await _zeitbild.service.user.get(user_id))
); );
return Promise.resolve( return Promise.resolve(
{ {