mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 15:38:59 +03:00
Merge branch 'yosoyubik/weather' (#1686)
* yosoyubik/weather: weather: updates api url to use automatic units Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
commit
afc3338f68
@ -87,10 +87,10 @@
|
||||
++ request-darksky
|
||||
|= location=@t
|
||||
^- request:http
|
||||
=/ url/@t
|
||||
%- crip %+ weld
|
||||
(trip 'https://api.darksky.net/forecast/634639c10670c7376dc66b6692fe57ca/')
|
||||
(trip location)
|
||||
=/ base
|
||||
"https://api.darksky.net/forecast/634639c10670c7376dc66b6692fe57ca/"
|
||||
=/ url/@t %- crip
|
||||
:(weld base (trip location) "?units=auto")
|
||||
=/ hed [['Accept' 'application/json']]~
|
||||
[%'GET' url hed *(unit octs)]
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user