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.

Wind speed close shutter
#3
There are better api's available using JSON. But first of all i would like to say that for this purpose it's better to meassure at the side where your shutter is installed. Specially if you use it for a professional installation side. Some weather API's can be found here. https://superdevresources.com/weather-fo...ping-apps/
Below an example we use with a Dutch weather API in JSON.

require('ssl.https')
require('json')

city = 'Amsterdam'

data = ssl.https.request('http://weerlive.nl/api/json-10min.php?locatie=' ..city)
datatable = json.pdecode(data)
datatable = datatable['liveweer'][1]
--log(datatable)

temp = datatable.temp --actuele temperatuur
--log('Actuele temperatuur: ' ..temp.. '°C')

windms = datatable.windms --windsnelheid in meter per seconde
--log('Windsnelheid: ' ..windms.. ' m/s')
Reply


Messages In This Thread
Wind speed close shutter - by MantasJ - 08.02.2020, 06:56
RE: Wind speed close shutter - by admin - 08.02.2020, 07:04
RE: Wind speed close shutter - by Joep - 08.02.2020, 09:51

Forum Jump: