yf_yzl 2 лет назад
Родитель
Сommit
33ef16640a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      smartfarming/api/views/device/device_manage.py

+ 2 - 2
smartfarming/api/views/device/device_manage.py

@@ -97,8 +97,8 @@ def weathers(request):
         "district": district,
         "lng": lng,
         "lat": lat,
-        "at": weather_info.get('at', ''),
-        "ah": weather_info.get('ah', ''),
+        "at": weather_info.get('tem', ''),
+        "ah": weather_info.get('humidity', '%'),
         "upl_time": upl_time,
         "win": weather_info.get('win', ''),
         "win_speed": weather_info.get('win_speed', ''),