yf_yzl %!s(int64=2) %!d(string=hai) anos
pai
achega
33ef16640a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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', ''),