This commit is contained in:
2025-06-23 06:52:31 +02:00
parent 2c257ca102
commit fbb6149ad0
3 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Fetch Weather
After=network.target
[Service]
Type=oneshot
ExecStart=/home/Username_PLACEHOLDER/.config/eww/Main/scripts/weather --getdata
WorkingDirectory=/home/Username_PLACEHOLDER/.config/eww/Main/scripts
Environment=OPENWEATHER_API_KEY="Onecall_3.0_APIKey_PLACEHOLDER"
Environment=OPENWEATHER_LAT="Latitude_PLACEHOLDER"
Environment=OPENWEATHER_LON="Longitude_PLACEHOLDER"

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Fetch weather information every hour
Requires=fetch-weather.service
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target