Jump to content
iT4iT.CLUB

mikolka

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. так работает Serial.println("temp:"); Serial.println(weather.temp); Serial.println("humidity %:"); Serial.println(weather.humidity); Serial.println("pressure hPa:"); Serial.println(weather.pressure); Serial.println("pressure mmHg:"); Serial.println(weather.pressure * 0.75); Serial.println("wind's speed m/s:"); Serial.println(weather.speed); Serial.println("wind's direction:"); Serial.println(weather.deg); а так нет Serial.printf("temp: %d celsius\n", round(weather.temp)); Serial.printf("humidity: %d %\n", round(weather.humidity)); Serial.printf("pressure: %d hPa or %d mmHg\n", round(weather.pressure), round(weather.pressure * 0.75)); Serial.printf("wind's speed: %d\n", round(weather.speed)); Serial.printf("wind's direction: %d\n", round(weather.deg));
  2. добрый день! Спасибо автору за его работу! но есть вопрос. после конекта к серверу получаем ответ в строке все ок. а ниже данных нет... 20:17:03.961 -> Connecting failed, error: connection refused 20:17:09.148 -> Connecting successfully, code: 200 20:17:09.353 -> {"coord":{"lon":37.89,"lat":51.31},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01n"}],"base":"model","main":{"temp":-11.22,"feels_like":-16.93,"temp_min":-11.22,"temp_max":-11.22,"pressure":1026,"humidity":83,"sea_level":1026,"grnd_level":999},"wind":{"speed":3.46,"deg":12},"clouds":{"all":9},"dt":1581182214,"sys":{"country":"RU","sunrise":1581137765,"sunset":1581172150},"timezone":10800,"id":487928,"name":"Staryy Oskol","cod":200} 20:17:09.386 -> 20:17:09.386 -> Weather 20:17:09.386 -> id: 800 20:17:09.386 -> main: Clear 20:17:09.386 -> description: clear sky 20:17:09.386 -> icon: 01n 20:17:09.386 -> temp: 0 celsius 20:17:09.386 -> humidity: 0 20:17:09.386 -> pressure: 0 hPa or 1083181056 mmHg 20:17:09.386 -> wind's direction: 0 20:17:09.386 ->
×
×
  • Create New...