-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathconfig.example.toml
More file actions
110 lines (84 loc) · 3.24 KB
/
Copy pathconfig.example.toml
File metadata and controls
110 lines (84 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Waveshare Epaper Display Configuration
#
# This is a simplified example config. For other providers, see README.md
# which has copy-paste examples for each weather, alert, and calendar provider.
#
# --------------------------------------------
# DISPLAY CONFIGURATION
# --------------------------------------------
[display]
# Most new Waveshare are 2, older ones are 1 (SKU: 13504)
# For 7.5 inch B with Red, use "2B" (SKU: 13505)
waveshare_version = "2"
# Which layout to use. 1, 2, 3...
screen_output_layout = 1
# -------------------------------------------
# WEATHER CONFIGURATION
# -------------------------------------------
[weather]
# Your location (required for all providers)
latitude = 51.5077
longitude = -0.1278
# Temperature: "CELSIUS" or "FAHRENHEIT"
format = "CELSIUS"
# How long to cache weather data (in seconds)
cache_ttl_seconds = 3600
# Choose ONE provider: metoffice, accuweather, openweathermap, metno,
# met_eireann, weathergov, smhi, visualcrossing, climacell
# See README.md for setup instructions for each provider
provider = "metoffice"
# MetOffice (UK) example:
[weather.providers.metoffice]
api_key = "your-metoffice-api-key"
# -------------------------------------------
# ALERTS CONFIGURATION (Optional)
# -------------------------------------------
[alerts]
# Set to false to disable alerts entirely
enabled = false
# How long to cache alert data (in seconds)
cache_ttl_seconds = 3600
# Choose ONE provider: metoffice, met_eireann, weathergov
provider = "metoffice"
# See README.md for setup instructions for each provider
# MetOffice (UK) example:
[alerts.providers.metoffice]
feed_url = "https://www.metoffice.gov.uk/public/data/PWSCache/WarningsRSS/Region/se"
# --------------------------------------------
# CALENDAR CONFIGURATION
# --------------------------------------------
[calendar]
# How long to cache calendar data (in seconds)
cache_ttl_seconds = 3600
# Maximum number of events to display
max_events = 10
# Include all events from today, even if they're in the past
include_past_events_for_today = false
# See README.md for setup instructions for each provider
# Google Calendar example:
# Get your Calendar ID by running .venv/bin/python3 utils/google_calendar_util.py
[[calendar.providers.google]]
enabled = true
id = "your-google-calendar-id@group.calendar.google.com"
time_zone = "Europe/London" # Optional, for family calendars that don't support timezone
# You can add multiple calendars by adding more [[calendar.providers.google]] blocks:
# [[calendar.providers.google]]
# enabled = true
# id = "another-calendar-id@group.calendar.google.com"
# ---------------------------------------------
# PRIVACY MODE
# ---------------------------------------------
[privacy]
# Enable privacy mode (hides everything and replaces with one of the below)
enabled = false
# Mode: "xkcd" for XKCD comic, "literature" for literary clock
mode = "literature" # options: xkcd, literature
# ---------------------------------------------
# LOCALIZATION & LOGGING
# ---------------------------------------------
[locale]
# Set a language locale (e.g., "en_GB.UTF-8", "ko_KR.UTF-8")
# Leave empty to use system default. Run `locale -a` to see available locales.
language = ""
# Logging level: "DEBUG", "INFO", "WARNING", or "ERROR"
log_level = "INFO"