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:
Jared Tobin 2019-09-03 12:54:18 -02:30
commit afc3338f68
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4

View File

@ -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)]
::