update
This commit is contained in:
11
.utils/fetch-weather.service
Normal file
11
.utils/fetch-weather.service
Normal 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"
|
||||
10
.utils/fetch-weather.timer
Normal file
10
.utils/fetch-weather.timer
Normal 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
|
||||
Reference in New Issue
Block a user