add weather script & change script location
This commit is contained in:
parent
ffca40a27c
commit
00b20eda43
1
sh/values/weather/weather.sh
Executable file
1
sh/values/weather/weather.sh
Executable file
@ -0,0 +1 @@
|
||||
curl "https://api.openweathermap.org/data/2.5/weather?&units=metric$(cat ~/.config/eww/sh/values/weather_id.txt)"
|
1
sh/values/weather/weather_id.txt
Normal file
1
sh/values/weather/weather_id.txt
Normal file
@ -0,0 +1 @@
|
||||
&id=<your_city_id_from_owm>&appid=<your_api_id_from_owm>
|
@ -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`
|
||||
)
|
Loading…
Reference in New Issue
Block a user