Some Changes

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 20:51:12 +00:00
parent 06e1cd9c50
commit 06c3ca3b45
9 changed files with 9 additions and 56 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ module.exports = class ForecastCommand extends commando.Command {
let response = await request
.get('https://query.yahooapis.com/v1/public/yql')
.query({
q: `select * from weather.forecast where u='f' AND woeid in (select woeid from geo.places(1) where text="${locationToSearch}")&format=json`
q: `select * from weather.forecast where u='f' AND woeid in (select woeid from geo.places(1) where text="${locationToSearch}")`,
format: 'json'
});
let info = response.body.query.results.channel;
let data = info.item.forecast;