46 files
This commit is contained in:
@@ -1,15 +1,35 @@
|
||||
"""Built-in chore template packs for TaskMate."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
TEMPLATE_CHORE_FIELDS = (
|
||||
"name", "points", "description", "requires_approval", "time_category",
|
||||
"daily_limit", "completion_sound", "schedule_mode", "due_days",
|
||||
"recurrence", "recurrence_day", "recurrence_start", "first_occurrence_mode",
|
||||
"assignment_mode", "require_availability", "visibility_entity",
|
||||
"visibility_state", "visibility_operator",
|
||||
"weather_entity", "weather_block_conditions", "weather_temp_min",
|
||||
"weather_temp_max", "weather_wind_max", "task_type",
|
||||
"timed_rate_points", "timed_rate_minutes", "timed_max_daily_minutes",
|
||||
"name",
|
||||
"points",
|
||||
"description",
|
||||
"requires_approval",
|
||||
"time_category",
|
||||
"daily_limit",
|
||||
"completion_sound",
|
||||
"schedule_mode",
|
||||
"due_days",
|
||||
"recurrence",
|
||||
"recurrence_day",
|
||||
"recurrence_start",
|
||||
"first_occurrence_mode",
|
||||
"assignment_mode",
|
||||
"require_availability",
|
||||
"visibility_entity",
|
||||
"visibility_state",
|
||||
"visibility_operator",
|
||||
"weather_entity",
|
||||
"weather_block_conditions",
|
||||
"weather_temp_min",
|
||||
"weather_temp_max",
|
||||
"weather_wind_max",
|
||||
"task_type",
|
||||
"timed_rate_points",
|
||||
"timed_rate_minutes",
|
||||
"timed_max_daily_minutes",
|
||||
)
|
||||
|
||||
_WEEKDAYS = ["monday", "tuesday", "wednesday", "thursday", "friday"]
|
||||
@@ -22,10 +42,50 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:weather-sunny",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Make bed", "points": 2, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Brush teeth", "points": 1, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Get dressed", "points": 1, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Pack school bag", "points": 2, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Make bed",
|
||||
"points": 2,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Brush teeth",
|
||||
"points": 1,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Get dressed",
|
||||
"points": 1,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Pack school bag",
|
||||
"points": 2,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -34,10 +94,50 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:weather-night",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Brush teeth", "points": 1, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Put on pyjamas", "points": 1, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Tidy room", "points": 2, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Set out clothes for tomorrow", "points": 1, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Brush teeth",
|
||||
"points": 1,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Put on pyjamas",
|
||||
"points": 1,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Tidy room",
|
||||
"points": 2,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Set out clothes for tomorrow",
|
||||
"points": 1,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -46,10 +146,50 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:silverware-fork-knife",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Set table", "points": 2, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Clear plates", "points": 2, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Load dishwasher", "points": 3, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Wipe counters", "points": 2, "time_category": "evening", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Set table",
|
||||
"points": 2,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Clear plates",
|
||||
"points": 2,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Load dishwasher",
|
||||
"points": 3,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Wipe counters",
|
||||
"points": 2,
|
||||
"time_category": "evening",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -58,10 +198,50 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:broom",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Tidy bedroom", "points": 3, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKENDS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Hoover", "points": 4, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKENDS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Help with laundry", "points": 3, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKENDS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Take bins out", "points": 2, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKENDS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Tidy bedroom",
|
||||
"points": 3,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKENDS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Hoover",
|
||||
"points": 4,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKENDS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Help with laundry",
|
||||
"points": 3,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKENDS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Take bins out",
|
||||
"points": 2,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKENDS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -70,10 +250,50 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:paw",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Feed pet", "points": 2, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Fill water bowl", "points": 1, "time_category": "morning", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Walk dog", "points": 3, "time_category": "afternoon", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Clean litter tray", "points": 3, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Feed pet",
|
||||
"points": 2,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Fill water bowl",
|
||||
"points": 1,
|
||||
"time_category": "morning",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Walk dog",
|
||||
"points": 3,
|
||||
"time_category": "afternoon",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Clean litter tray",
|
||||
"points": 3,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -82,9 +302,39 @@ BUILT_IN_TEMPLATES: list[dict] = [
|
||||
"icon": "mdi:book-open-variant",
|
||||
"builtin": True,
|
||||
"chores": [
|
||||
{"name": "Do homework", "points": 3, "time_category": "afternoon", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Read for 20 minutes", "points": 2, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{"name": "Practice instrument", "points": 2, "time_category": "anytime", "schedule_mode": "specific_days", "due_days": list(_WEEKDAYS), "requires_approval": False, "assignment_mode": "everyone", "daily_limit": 1, "completion_sound": "coin"},
|
||||
{
|
||||
"name": "Do homework",
|
||||
"points": 3,
|
||||
"time_category": "afternoon",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Read for 20 minutes",
|
||||
"points": 2,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
{
|
||||
"name": "Practice instrument",
|
||||
"points": 2,
|
||||
"time_category": "anytime",
|
||||
"schedule_mode": "specific_days",
|
||||
"due_days": list(_WEEKDAYS),
|
||||
"requires_approval": False,
|
||||
"assignment_mode": "everyone",
|
||||
"daily_limit": 1,
|
||||
"completion_sound": "coin",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user