This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

XML data
#9
(18.03.2020, 10:22)Daniel. Wrote: I tried like that you have to put coordinate of location as longitude and latitude.
Code:
require('ssl.https')
require('json')

data = ssl.https.request('https://api.met.no/weatherapi/locationforecast/2.0/.json?lat=51.28&lon=-0.75')
datatable = json.pdecode(data)
log(datatable.properties.timeseries[1].data.instant.details.air_temperature)
yeah, I got some data, but I also got "nesting to deep" in the log. could try to extract spesiffic data, maybe that would do the trick.

seems to work, but the amount of data in the table is quite big, and difficult to navigate.
Any good tips to view the table in a structured way?
Reply


Messages In This Thread
XML data - by tomnord - 18.03.2020, 08:40
RE: XML data - by Daniel - 18.03.2020, 09:01
RE: XML data - by Tokatubs - 18.03.2020, 09:10
RE: XML data - by admin - 18.03.2020, 09:29
RE: XML data - by tomnord - 18.03.2020, 10:14
RE: XML data - by Daniel - 18.03.2020, 09:33
RE: XML data - by Tokatubs - 18.03.2020, 10:05
RE: XML data - by Daniel - 18.03.2020, 10:22
RE: XML data - by tomnord - 18.03.2020, 10:28
RE: XML data - by admin - 18.03.2020, 10:38

Forum Jump: