/srv/irclogs.ubuntu.com/2016/10/11/#ubuntu-app-devel.txt

=== _salem is now known as salem_
=== salem_ is now known as _salem
kalikianatimp: https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/dontSkipTheEntiretyOfTstTextfield11Qml/+merge/30809910:13
timpkalikiana: happroved10:34
kalikianatimp: Another one11:01
kalikianahttps://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/dropQuestionableColorTestsFromTstTextarea11Qml/+merge/30810611:01
timpkalikiana: standup :)11:01
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
=== rmescandon_ is now known as rmescandon
* ahoneybun pokes ahayzen18:39
ahoneybunalright so I have my JSON data here: http://api.openweathermap.org/data/2.5/forecast?q=32055&appid=753a953085551461ddf5555c772c06c218:39
ahoneybunI need to figure out how to get each hour report out of there18:40
ahayzenahoneybun, use JSON.parse() on it, like output=JSON.parse(input) then you should be able to loop through the result in output["list"] .. then each one you can get the info for19:00
ahoneybunwell I have it like this now: locationModel.append( { id: entry["id"], name: entry["name"], weather: entry["weather"][0]["main"] } )19:01
ahayzenahoneybun, also paste it in here, it helps you alot http://jsonprettyprint.com/ ... bbl o/19:01
ahoneybunbut yea tried something like that19:01
ahoneybunahayzen: http://pastebin.ubuntu.com/23309533/19:01
ahoneybunI have it working like that19:01
ahayzengotta go shops, be back in a bit19:02
ahoneybunchanging the api to just looking for one city weather works like a charm19:02
ahoneybunjust trying to use a forecast is different19:02
ahoneybunseems I am using it: currentData = JSON.parse (request.responseText);19:04
ahayzenahoneybun, it looks like what you have is going in the right direction :-)20:09
ahoneybunahayzen: though I got the code from someone I think21:39
ahoneybunalso not sure how to get data from that large json21:40
ahoneybun["weather"][0]["main"] seems to grab all the items weather but I need more control on which it gets21:41
ahoneybunI want to list the first 3 or 4 items21:41
ahoneybungiving a 3 hour forecast for each21:41
=== salem_ is now known as _salem

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!