2021-12-11 21:09:02 +00:00
|
|
|
edit:add-var meteo~ {|@argv|
|
2021-08-24 18:44:01 +00:00
|
|
|
use str
|
2024-06-16 10:18:51 +00:00
|
|
|
var city = 'Montbéliard'
|
|
|
|
if (> (count $argv) 0) {
|
|
|
|
set city = (str:join '' $argv)
|
|
|
|
}
|
|
|
|
var url = (printf 'wttr.in/%s?lang=fr' $city)
|
2021-12-27 17:54:26 +00:00
|
|
|
#curl --connect-timeout 2 $url
|
|
|
|
e:curlie -s --connect-timeout 2 $url
|
2020-03-13 14:03:36 +00:00
|
|
|
}
|