CN103927181A - Weather data displaying method and device - Google Patents

Weather data displaying method and device Download PDF

Info

Publication number
CN103927181A
CN103927181A CN201410174831.0A CN201410174831A CN103927181A CN 103927181 A CN103927181 A CN 103927181A CN 201410174831 A CN201410174831 A CN 201410174831A CN 103927181 A CN103927181 A CN 103927181A
Authority
CN
China
Prior art keywords
weather
data
weather data
time period
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410174831.0A
Other languages
Chinese (zh)
Inventor
朱萧木
耿达维
杨阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hammer Technology (beijing) Co Ltd
Original Assignee
Hammer Technology (beijing) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hammer Technology (beijing) Co Ltd filed Critical Hammer Technology (beijing) Co Ltd
Priority to CN201410174831.0A priority Critical patent/CN103927181A/en
Publication of CN103927181A publication Critical patent/CN103927181A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a weather data displaying method. The method includes the steps that current-weather data of a preset city are acquired, wherein the current-weather data are used for showing the weather condition at the current moment; historical-weather data of the preset city are acquired, wherein the historical-weather data are weather data of the time quantum, the same as the current time quantum, before the current day; the current-weather data are compared with the historical-weather data to acquire comparison results; the current-weather data and the comparison results are displayed. Because the results of the comparison between the current-weather data and the historical-weather data are displayed together with the current-weather data, a user can directly know weather changes without manually turning over records before or comparing weather changes in person, and user experience is improved.

Description

A kind of weather data methods of exhibiting and device
Technical field
The application relates to mobile terminal software design field, particularly a kind of weather data methods of exhibiting and device.
Background technology
Along with the intelligentized fast development of mobile terminal, user can check weather conditions by intelligent mobile terminal, decides the dressing while going out, or whether wears mouth mask etc.
At present, weather conditions one day are only shown at the weather displaying interface of intelligent mobile terminal, cause user in the time entering weather displaying interface, can only view weather conditions one day.Because user is viewing after weather conditions one day, can't get information about the current weather conditions that display, but to past weather situation, user direct feel arrives, if therefore will get information about the current weather conditions that display, then determine how to wear the clothes, whether wear mouth mask etc., need the weather conditions of user before manually browsing, and oneself contrasting the variation of weather, user experience is poor.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of weather data methods of exhibiting and device, and to reach the object of improving user experience, technical scheme is as follows:
A kind of weather data methods of exhibiting, comprising:
The current weather data of obtaining default city, described current weather data are the weather data of the weather conditions for characterizing current time;
Obtain the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding;
More described current weather data and described weather history data, obtain comparative result;
Show described current weather data and described comparative result.
Preferably, the previous day that described weather history data are the described same day, the weather data that the time period identical with the time period under described current time is corresponding.
Preferably, taking zero point as reference position, 24 hourly averages are divided into n part, obtain the different time period of n part, described n is greater than 0 integer.
Preferably, described n equals 8.
Preferably, the deterministic process in described default city is:
Obtain the urban information of user's input, be defined as default city.
Preferably, described weather data comprises: in temperature data, humidity data, wind-force data, air quality data and sendible temperature data at least one.
A kind of weather data exhibiting device, comprising:
The first acquiring unit, for obtaining the current weather data in default city, described current weather data are the weather data of the weather conditions for characterizing current time;
Second acquisition unit, for obtaining the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding;
Comparing unit, for more described current weather data and described weather history data, obtains comparative result;
Display unit, for showing described current weather data and described comparative result.
Preferably, also comprise:
The first division unit, for taking zero point as reference position, is divided into n part by 24 hourly averages, obtains the different time period of n part, and described n is greater than 0 integer.
Preferably, described the first division unit comprises:
Divide subelement, for taking zero point as reference position, 24 hourly averages are divided into 8 parts, obtain 8 different time periods.
Preferably, described the first acquiring unit comprises:
Obtain subelement, for obtaining the urban information of user's input, be defined as default city.
Compared with prior art, the application's beneficial effect is:
In this application, by comparing current weather data and weather history data, obtain comparative result, and show current weather data and comparative result.
When showing current weather data due to the application, show and the comparative result of weather history data, made user can directly find the variation of weather, no longer needed the weather conditions of user before manually browsing, do not need oneself to contrast the variation of weather, improved user experience yet.
Certainly, arbitrary product of enforcement the application might not need to reach above-described all advantages simultaneously.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of process flow diagram of the weather data methods of exhibiting that provides of the application;
Fig. 2 is a kind of structural representation of the weather data exhibiting device that provides of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The application provides a kind of weather data methods of exhibiting, carrying out weather data methods of exhibiting, need to carry out corresponding preprocessing process, be divided into the different time periods by 24 hours, concrete, can be taking zero point as reference position, 24 hourly averages are divided into n part, obtain the different time periods, the time span of each time period is 24/n hour, and described n is greater than 0 integer.
The preferred dividing mode of the application is: described n equals 8, taking zero point as reference position, 24 hourly averages is divided into 8 parts, obtains 8 different time periods.Taking zero point as reference position, it within every three hours, is a time period.Concrete, zero point-3 are a time period, 3 point-6 are a time period, 6 point-9 are a time period, and 9 point-12 are a time period, and 12 point-15 are a time period, 15 point-18 are a time period, and 18 point-21 are a time period, and 21 point-24 are a time period.
Certainly, the application is not limited to above-mentioned dividing mode.The application can also, taking zero point as reference position, be divided into 4 parts by 24 hourly averages, obtains 4 different time periods.Taking zero point as reference position, it within every six hours, is a time period.
Embodiment mono-
Refer to Fig. 1, a kind of process flow diagram that it shows the weather data methods of exhibiting that the application provides, can comprise the following steps:
Step S11: obtain the current weather data in default city, described current weather data are the weather data of the weather conditions for characterizing current time.
In the present embodiment, receive at mobile terminal after the order of unlatching weather application of user's input, open weather application, and obtain the current weather data in default city.
Wherein, current weather data are the weather data of the weather conditions for characterizing current time.
In the present embodiment, the deterministic process in default city is: obtain the urban information of user's input, be defined as default city.
Step S12: obtain the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding.
In the present embodiment, the weather history data in default city described in acquisition for mobile terminal, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding.
In the present embodiment, before the same day, weather data corresponding to the time period identical with the time period under described current time is before the same day, and the weather data in each moment in the time period identical with the time period under described current time averages after calculating, the mean value obtaining.
Be for example now before the same day to described weather history data, the time period identical with the time period under described current time, corresponding weather data described.For example, based on taking zero point as reference position, 24 hourly averages are divided into 8 parts, obtain 8 different time periods, if the time period of time periods 9 point-12 under current time, weather history data are the weather data corresponding to time period of 9 point-12 of the some day before the same day.
Step S13: more described current weather data and described weather history data, obtain comparative result.
In the present embodiment, the more described current weather data of mobile terminal and described weather history data, obtain comparative result.
Now, for example to more described current weather data and described weather history data, the process that obtains comparative result describes.For example, current weather data are: the same day weather: 5 DEG C of temperature, humidity 20%, weather history data are: yesterday: 7 DEG C of temperature, humidity 25%.Current weather data and weather history data are compared, obtain comparative result and be current weather than yesterday: cold 2 DEG C, humidity reduces by 5%.
Step S14: show described current weather data and described comparative result.
In the present embodiment, mobile terminal shows described current weather data and described comparative result.
Referring in step S13 for example, show that the content that described current weather data and described comparative result show is: the same day weather: 5 DEG C of temperature, humidity 20% and current weather were than yesterday: cold 2 DEG C, humidity reduces by 5%.
It should be noted that, in the present embodiment, described weather history data specifically can but be not limited to the previous day on the described same day, the weather data that the time period identical with the time period under described current time is corresponding.That is, described weather history data are with respect to the same day, yesterday with described current time under weather data corresponding to identical time period time period.
In the present embodiment, described weather data can but be not limited at least one in temperature data, humidity data, wind-force data, air quality data and sendible temperature data.
In the present embodiment, described weather data is the object that can quantize, explain with numerical value.
In this application, by comparing current weather data and weather history data, obtain comparative result, and show current weather data and comparative result.
When showing current weather data due to the application, show and the comparative result of weather history data, made user can directly find the variation of weather, no longer needed the weather conditions of user before manually browsing, do not need oneself to contrast the variation of weather, improved user experience yet.
Further, improved the intelligent of mobile terminal.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Embodiment bis-
In the present embodiment, show a kind of structural representation of the weather data exhibiting device that the application provides, refer to Fig. 2, Fig. 2 shows a kind of structural representation of the weather data exhibiting device that the application provides, and weather data exhibiting device comprises: the first acquiring unit 21, second acquisition unit 22, comparing unit 23 and display unit 24.
The first acquiring unit 21, for obtaining the current weather data in default city, described current weather data are the weather data of the weather conditions for characterizing current time.
In the present embodiment, the first acquiring unit 21 specifically can comprise: obtain subelement, for obtaining the urban information of user's input, be defined as default city.
Second acquisition unit 22, for obtaining the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding.
Comparing unit 23, for more described current weather data and described weather history data, obtains comparative result.
Display unit 24, for showing described current weather data and described comparative result.
In the present embodiment, the weather data exhibiting device illustrating also comprises: the first division unit.Wherein:
The first division unit, for taking zero point as reference position, is divided into n part by 24 hourly averages, obtains the different time period of n part, and described n is greater than 0 integer.
In the present embodiment, the first division unit comprises: divide subelement, for taking zero point as reference position, 24 hourly averages are divided into 8 parts, obtain 8 different time periods.
Divide subelement taking zero point as reference position, dividing every three hours is a time period.Concrete, zero point-3 are a time period, 3 point-6 are a time period, 6 point-9 are a time period, and 9 point-12 are a time period, and 12 point-15 are a time period, 15 point-18 are a time period, and 18 point-21 are a time period, and 21 point-24 are a time period.
Certainly, divide subelement and can also be used for, taking zero point as reference position, 24 hourly averages being divided into 4 parts, obtain 4 different time periods.
Concrete, divide subelement taking zero point as reference position, dividing every 6 hours is a time period.Concrete, zero point-6 are a time period, and 6 point-12 are a time period, and 12 point-18 are a time period, and 18 point-24 are a time period.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
For convenience of description, while describing above device, being divided into various unit with function describes respectively.Certainly, in the time implementing the application, the function of each unit can be realized in same or multiple software and/or hardware.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add essential general hardware platform by software and realizes.Based on such understanding, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the application or embodiment.
A kind of weather data methods of exhibiting and the device that above the application are provided are described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.

Claims (10)

1. a weather data methods of exhibiting, is characterized in that, comprising:
The current weather data of obtaining default city, described current weather data are the weather data of the weather conditions for characterizing current time;
Obtain the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding;
More described current weather data and described weather history data, obtain comparative result;
Show described current weather data and described comparative result.
2. method according to claim 1, is characterized in that, the previous day that described weather history data are the described same day, the weather data that the time period identical with the time period under described current time is corresponding.
3. method according to claim 1, is characterized in that, taking zero point as reference position, 24 hourly averages is divided into n part, obtains the different time period of n part, and described n is greater than 0 integer.
4. method according to claim 3, is characterized in that, described n equals 8.
5. method according to claim 1, is characterized in that, the deterministic process in described default city is:
Obtain the urban information of user's input, be defined as default city.
6. method according to claim 1, is characterized in that, described weather data comprises: in temperature data, humidity data, wind-force data, air quality data and sendible temperature data at least one.
7. a weather data exhibiting device, is characterized in that, comprising:
The first acquiring unit, for obtaining the current weather data in default city, described current weather data are the weather data of the weather conditions for characterizing current time;
Second acquisition unit, for obtaining the weather history data in described default city, described weather history data are before the same day, the weather data that the time period identical with the time period under described current time is corresponding;
Comparing unit, for more described current weather data and described weather history data, obtains comparative result;
Display unit, for showing described current weather data and described comparative result.
8. device according to claim 7, is characterized in that, also comprises:
The first division unit, for taking zero point as reference position, is divided into n part by 24 hourly averages, obtains the different time period of n part, and described n is greater than 0 integer.
9. device according to claim 8, is characterized in that, described the first division unit comprises:
Divide subelement, for taking zero point as reference position, 24 hourly averages are divided into 8 parts, obtain 8 different time periods.
10. device according to claim 7, is characterized in that, described the first acquiring unit comprises:
Obtain subelement, for obtaining the urban information of user's input, be defined as default city.
CN201410174831.0A 2014-04-28 2014-04-28 Weather data displaying method and device Pending CN103927181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410174831.0A CN103927181A (en) 2014-04-28 2014-04-28 Weather data displaying method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410174831.0A CN103927181A (en) 2014-04-28 2014-04-28 Weather data displaying method and device

Publications (1)

Publication Number Publication Date
CN103927181A true CN103927181A (en) 2014-07-16

Family

ID=51145413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410174831.0A Pending CN103927181A (en) 2014-04-28 2014-04-28 Weather data displaying method and device

Country Status (1)

Country Link
CN (1) CN103927181A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657178A (en) * 2016-02-19 2016-06-08 珠海市魅族科技有限公司 Method and mobile terminal for displaying weather information
TWI615014B (en) * 2014-08-01 2018-02-11 宏達國際電子股份有限公司 Mobile device with weather forecast
CN108954268A (en) * 2018-05-30 2018-12-07 上海与德科技有限公司 Lamps and lanterns, weather based reminding method, device, equipment and storage medium
CN110019431A (en) * 2017-12-11 2019-07-16 北京京东尚科信息技术有限公司 Processing method, system and the terminal device of data visualization
CN111206377A (en) * 2019-12-30 2020-05-29 无锡小天鹅电器有限公司 Parameter display method and device and household appliance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佐小轩: "增加对昨天天气的显示,原因内见", 《HTTP://WWW.MIUI.COM/THREAD-1381468-1-1.HTML》 *
玖日君: "天气应用去哪儿?锤子天气的思与辩", 《HTTP://SSPAI.COM/24819》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI615014B (en) * 2014-08-01 2018-02-11 宏達國際電子股份有限公司 Mobile device with weather forecast
CN105657178A (en) * 2016-02-19 2016-06-08 珠海市魅族科技有限公司 Method and mobile terminal for displaying weather information
CN110019431A (en) * 2017-12-11 2019-07-16 北京京东尚科信息技术有限公司 Processing method, system and the terminal device of data visualization
CN108954268A (en) * 2018-05-30 2018-12-07 上海与德科技有限公司 Lamps and lanterns, weather based reminding method, device, equipment and storage medium
CN111206377A (en) * 2019-12-30 2020-05-29 无锡小天鹅电器有限公司 Parameter display method and device and household appliance
CN111206377B (en) * 2019-12-30 2022-12-20 无锡小天鹅电器有限公司 Parameter display method and device and household appliance

Similar Documents

Publication Publication Date Title
CA3066832C (en) Information search method, apparatus and system
CN107315824B (en) Method and device for generating thermodynamic diagram
CN103927181A (en) Weather data displaying method and device
US20150278315A1 (en) Data fitting selected visualization type
CN104954410A (en) Message pushing method, device thereof and server
CN104866522A (en) Method and device for providing answer information for questioner
CN111046237B (en) User behavior data processing method and device, electronic equipment and readable medium
CN105488366A (en) Data permission control method and system
CN107766470B (en) Intelligent statistical method, intelligent statistical display method and device for data sharing
CN110716966A (en) Data visualization processing method and system, electronic device and storage medium
CN108269295A (en) The method and device that a kind of lantern slide subject color is intelligently quoted
CN113592535A (en) Advertisement recommendation method and device, electronic equipment and storage medium
CN111414410A (en) Data processing method, device, equipment and storage medium
CN109583228A (en) A kind of privacy information management method, device and system
CN104408189A (en) Keyword ranking display method and device
CN113077321A (en) Article recommendation method and device, electronic equipment and storage medium
CN107169005B (en) POI recommendation method, device, equipment and computer readable storage medium
US11165881B2 (en) Personalized content and services based on profile information
CN116167441A (en) Knowledge graph of network security risk assessment and construction method
CN106959991B (en) Dynamic presentation method and device for large data visualization analysis and terminal
CN111859117B (en) Information recommendation method and device, electronic equipment and readable storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
CN105528247B (en) Information processing method and client
CN110990643B (en) GoJS-based complex task visualization method, terminal device and storage medium
US11080769B2 (en) System, method and computer program product for a cognitive monitor and assistant

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140716

RJ01 Rejection of invention patent application after publication