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.

Weather service not working anymore?
#68
This is probably due to older FW, as a work-around you can use HTTP request instead:

Code:
require('json')
http = require('socket.http')
escape = require('socket.url').escape

key = 'my_api_key'
location = 'my location name'

url = 'http://api.apixu.com/v1/forecast.json?key=%s&q=%s&days=2'
url = string.format(url, key, escape(location))

res = http.request(url)

data = json.pdecode(res)
...
Reply


Messages In This Thread
RE: Weather service not working anymore? - by admin - 30.08.2019, 06:16

Forum Jump: