add weather script & change script location

This commit is contained in:
Candifloss 2024-12-12 07:05:11 +05:30
parent ffca40a27c
commit 00b20eda43
8 changed files with 7 additions and 5 deletions

1
sh/values/weather/weather.sh Executable file
View File

@ -0,0 +1 @@
curl "https://api.openweathermap.org/data/2.5/weather?&units=metric$(cat ~/.config/eww/sh/values/weather_id.txt)"

View File

@ -0,0 +1 @@
&id=<your_city_id_from_owm>&appid=<your_api_id_from_owm>

View File

@ -4,31 +4,31 @@
(defpoll wlan_ip
:interval "1m"
:initial "{\"name\":\"Not connected\",\"speed\":\"0 Mbit/s\",\"bars\":\"0\",\"icon\":\"\"}"
`sh/values/ip.sh`
`sh/values/network/ip.sh`
)
(defpoll wifi
:interval "1m"
:initial "{\"name\":\"Not connected\",\"speed\":\"0 Mbit/s\",\"bars\":\"0\",\"icon\":\"\"}"
`sh/values/wifi.sh`
`sh/values/network/wifi.sh`
)
;Volume
(defpoll vol
:interval "300ms"
:initial "{\"level\":\"0\",\"status\":\"empty\",\"icon\":\"\"}"
`sh/values/volume.sh`
`sh/values/vol/volume.sh`
)
;Brightness
(defpoll brit
:interval "300ms"
:initial "{\"level\":\"0\",\"status\":\"empty\",\"icon\":\"\"}"
`sh/values/brightness.sh`
`sh/values/brightness/brightness.sh`
)
;Battery
(defpoll battery
:interval "300ms"
:initial "{\"level\":\"0\",\"status\":\"empty\",\"icon\":\"\"}"
`sh/values/battery.sh`
`sh/values/power/battery.sh`
)