| === _salem is now known as salem_ | ||
| === salem_ is now known as _salem | ||
| kalikiana | timp: https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/dontSkipTheEntiretyOfTstTextfield11Qml/+merge/308099 | 10:13 |
|---|---|---|
| timp | kalikiana: happroved | 10:34 |
| kalikiana | timp: Another one | 11:01 |
| kalikiana | https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/dropQuestionableColorTestsFromTstTextarea11Qml/+merge/308106 | 11:01 |
| timp | kalikiana: standup :) | 11:01 |
| === _salem is now known as salem_ | ||
| === chihchun is now known as chihchun_afk | ||
| === rmescandon_ is now known as rmescandon | ||
| * ahoneybun pokes ahayzen | 18:39 | |
| ahoneybun | alright so I have my JSON data here: http://api.openweathermap.org/data/2.5/forecast?q=32055&appid=753a953085551461ddf5555c772c06c2 | 18:39 |
| ahoneybun | I need to figure out how to get each hour report out of there | 18:40 |
| ahayzen | ahoneybun, 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 for | 19:00 |
| ahoneybun | well I have it like this now: locationModel.append( { id: entry["id"], name: entry["name"], weather: entry["weather"][0]["main"] } ) | 19:01 |
| ahayzen | ahoneybun, also paste it in here, it helps you alot http://jsonprettyprint.com/ ... bbl o/ | 19:01 |
| ahoneybun | but yea tried something like that | 19:01 |
| ahoneybun | ahayzen: http://pastebin.ubuntu.com/23309533/ | 19:01 |
| ahoneybun | I have it working like that | 19:01 |
| ahayzen | gotta go shops, be back in a bit | 19:02 |
| ahoneybun | changing the api to just looking for one city weather works like a charm | 19:02 |
| ahoneybun | just trying to use a forecast is different | 19:02 |
| ahoneybun | seems I am using it: currentData = JSON.parse (request.responseText); | 19:04 |
| ahayzen | ahoneybun, it looks like what you have is going in the right direction :-) | 20:09 |
| ahoneybun | ahayzen: though I got the code from someone I think | 21:39 |
| ahoneybun | also not sure how to get data from that large json | 21:40 |
| ahoneybun | ["weather"][0]["main"] seems to grab all the items weather but I need more control on which it gets | 21:41 |
| ahoneybun | I want to list the first 3 or 4 items | 21:41 |
| ahoneybun | giving a 3 hour forecast for each | 21:41 |
| === salem_ is now known as _salem | ||
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!