Skip to content

Commit 6c54dc1

Browse files
authored
Merge pull request #19 from arbauman/master
Fix broken URI for weather example
2 parents ffa92e3 + 4105949 commit 6c54dc1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cyclotron-svc/examples/example-datasource-json.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@
2121
"followAllRedirects": "${true}",
2222
"strictSSL": "${false}"
2323
},
24-
"postProcessor": "pp = function (result) {\n var firstResult = result.list[0];\n return [{\n name: firstResult.name,\n temp: firstResult.main.temp,\n humidity: firstResult.main.humidity,\n description: firstResult.weather[0].main,\n weather_code: firstResult.weather[0].id\n }];\n}",
25-
"proxy": "http://cyclotrondev.karmalab.net/api",
24+
"postProcessor": "pp = function (result) {\n return [{\n name: result.name,\n temp: result.main.temp,\n humidity: result.main.humidity,\n description: result.weather[0].main,\n weather_code: result.weather[0].id\n }];\n}",
2625
"queryParameters": {
27-
"cnt": "10",
28-
"lang": "en",
29-
"lat": "47.596573",
30-
"lon": "-122.15358"
26+
"q": "Bellevue,US",
27+
"appid": "8dc809734907311a1ce409b3645c3128"
3128
},
3229
"type": "json",
33-
"url": "http://api.openweathermap.org/data/2.1/find/city"
30+
"url": "http://api.openweathermap.org/data/2.5/weather"
3431
}],
3532
"description": "Examples with the JSON data source",
3633
"disableAnalytics": true,

0 commit comments

Comments
 (0)