Popis API PGSONDA.CZ, external API ================================== API je voláno automaticky, vždy v čase příjmu nových dat ze stanice (1/5/10min interval) Následuje HTTP/HTTPS volání s parametry, metoda GET Příklad: https://domena.cz/api.php?name=Sumava&time=1642440896&minspd=1.2&avgspd=5.5&maxspd=10.5&avgdir=325&temp=25.5&hum=50&pres=0&lat=49.9011&lon=14.0611 name => nazev stanice time => epoch timestamp minspd => minimalni rychlost vetru (m/s) avgspd => prumerna rychlost vetru (m/s) maxspd => maximalni rychlost vetru (m/s) avgdir => smer vetru (sever = 0°) temp => teplota vzuchu (°C) hum => vlhkost vzduchu (%RH) pres => tlak vzduchu prepocteny na hladinu more (hPa) lat => GPS Latitude stanice lon => GPS Longitude stanice API description for LTE-METEO weatherstation --------------------------------------------- ver.: 1.1.2023 -------------- API data exchange (HTTP GET request) intiate from pgsonda.cz on each recieve meteo data from weatherstation. Weather Station on site ===(NB-IoT operator network)===> pgsonda.cz backend ===(API HTTP GET)===> customer webpage example (customer API endpoint): https://customer_api.com/api.php? ----------------------------------------------- name= weather station name (identification name) time= epoch timestamp (for each sample) minspd= minimum wind speed (m/s) avgspd= average wind speed (m/s) maxspd= maximum wind speed, gust (m/s) avgdir= wind average direction (°deg) temp= temperature (°C) hum= humidity (%RH) pres= air pressure means above sea level zero (hPa) lat= GPS coordinate Latitude (49.9011) lon= GPS coordinate Longitude (14.0611)