occasional wrong information of temperature

Bug #1131488 reported by Jack Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-china-weather
Invalid
Undecided
Zhang Zhao

Bug Description

I found that sometimes, the current temperature is lower than the min temperature or higher than the max temperature. Is this a program bug or source information error?

---------
After discussion at blueprint https://blueprints.launchpad.net/indicator-china-weather/+spec/need-processingdata-or-not, It is suggested to remove the min and max information at the indicator, to avoid the conflicts. Users could find min and max information at the forecast form.

Tags: ubuntukylin
Revision history for this message
Zhang Zhao (vaguedream) wrote :

We use two urls to get the current weather infomation:
http://www.weather.com.cn/data/sk/101010100.html
http://www.weather.com.cn/data/cityinfo/101010100.html

Use first url we get:
{"weatherinfo":{"city":"北京","cityid":"101010100","temp":"3","WD":"北风","WS":"2级","SD":"18%","WSE":"2","time":"08:45","isRadar":"1","Radar":"JC_RADAR_AZ9010_JB"}}

current temperature,wind direction,wind strength, humidity,published time

Use second url we get:
{"weatherinfo":{"city":"北京","cityid":"101010100","temp1":"7℃","temp2":"-4℃","weather":"晴","img1":"d0.gif","img2":"n0.gif","ptime":"08:00"}}

high temp,low temp,weather,published time

the two published time is not the same,and sometimes the current temperature is lower than the min temperature.Before we find better weather api,we have no method to resolve this bug.

Revision history for this message
Jack Yu (jackyu) wrote :

Well, I see. However, before we find a proper method to solve this, it is possible to filter the information before display them. For example, when you get the current temperature is 4 degree from the first URL, then if you get the min temperature is 5 degree from the second URL, you just show the min temperature as the current temperature, i.e., 4 degree.

kobe (kobe24-lixiang)
Changed in indicator-china-weather:
status: New → Confirmed
importance: Undecided → Medium
Jack Yu (jackyu)
description: updated
Changed in indicator-china-weather:
importance: Medium → High
status: Confirmed → In Progress
milestone: none → 1.0.1
assignee: nobody → Zhang Zhao (vaguedream)
Zhang Zhao (vaguedream)
Changed in indicator-china-weather:
status: In Progress → Invalid
importance: High → Undecided
tags: added: ubuntukylin
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.