Add weather report to the status bar
This commit is contained in:
parent
a0af4c6e2f
commit
74170330cd
4 changed files with 11 additions and 1 deletions
3
.config/setup/03-install-cron-jobs.sh
Executable file
3
.config/setup/03-install-cron-jobs.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
crontab ./crontab
|
||||
1
.config/setup/crontab
Normal file
1
.config/setup/crontab
Normal file
|
|
@ -0,0 +1 @@
|
|||
@hourly /home/ohad/.local/bin/update-weather
|
||||
|
|
@ -27,4 +27,6 @@ elif [ "${battery_state}" = "Discharging" ]; then
|
|||
battery_symbol="🔋"
|
||||
fi
|
||||
|
||||
echo 📆${today} ⏲${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
|
||||
weather=$(cat /tmp/weather-report.txt)
|
||||
|
||||
echo ${weather} 📆${today} ⏲${now} ${audio_symbol}${audio_volume}% ${battery_symbol}${battery}%
|
||||
|
|
|
|||
4
.local/bin/update-weather
Executable file
4
.local/bin/update-weather
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#! /usr/bin/sh
|
||||
|
||||
# Documentation available in https://github.com/chubin/wttr.in
|
||||
curl -Ss 'https://wttr.in/?0&m&q&T&format=3' > /tmp/weather-report.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue