WO2022022335A1 - 天气信息的展示方法、装置和电子设备 - Google Patents

天气信息的展示方法、装置和电子设备 Download PDF

Info

Publication number
WO2022022335A1
WO2022022335A1 PCT/CN2021/107405 CN2021107405W WO2022022335A1 WO 2022022335 A1 WO2022022335 A1 WO 2022022335A1 CN 2021107405 W CN2021107405 W CN 2021107405W WO 2022022335 A1 WO2022022335 A1 WO 2022022335A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
electronic device
user
itinerary
weather
Prior art date
Application number
PCT/CN2021/107405
Other languages
English (en)
French (fr)
Inventor
段云
蒋华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022022335A1 publication Critical patent/WO2022022335A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Definitions

  • the embodiments of the present application relate to the technical field of intelligent terminals, and in particular, to a method, apparatus, and electronic device for displaying weather information.
  • the weather information of the added city is displayed on the interface of the weather application, but the above scheme only displays the weather information of the city added by the user. When the user travels across regions, It is not convenient to check the weather information of the passing places.
  • Embodiments of the present application provide a method, apparatus, and electronic device for displaying weather information, and embodiments of the present application also provide a computer-readable storage medium, so that when a user travels across regions, the weather can be easily checked. Information and weather-related early warning information to improve user travel safety and bring users a convenient experience.
  • the present application provides a method for displaying weather information, including: an electronic device acquiring travel information of a user who has not traveled by using the electronic device, the travel information includes a location and a time when the user is at the location, and the location includes The current location of the above-mentioned user, the starting point, the passing point, and the destination point of the above-mentioned user's itinerary. Then, the electronic device acquires the weather information of the place included in the itinerary from the server, where the weather information includes the weather information of the place during the time when the user is at the place. Finally, according to the itinerary information of the user, the electronic device displays the locations included in the itinerary and the weather information of the locations in the order of dates.
  • the electronic device acquires the weather information of the places included in the itinerary from the server, and the above weather information includes the above-mentioned weather information during the time when the above-mentioned user is in the above-mentioned place.
  • the weather information of the location and then according to the user's itinerary information, the weather information of the locations included in the itinerary is displayed in the order of date, so that when the user travels across regions, the weather information of the locations included in the itinerary can be easily viewed. Improve user travel safety and bring convenient user experience to users.
  • displaying the weather information of the above-mentioned place by the electronic device may be: displaying weather type icons of the places included in the above-mentioned itinerary; further, displaying the weather information of the above-mentioned place by the electronic device may further include: displaying the weather information of the above-mentioned place The associated weather index or weather warning information associated with the above location.
  • the electronic device after the electronic device obtains the weather information of the places included in the itinerary from the server, it can also determine the weather changes according to the weather information of the places included in the itinerary; then, the electronic device displays the weather changes. .
  • the electronic device may determine the weather change according to the weather information of the location included in the itinerary.
  • the electronic device may obtain the current location and the current time of the user, according to the current location of the user. location, current time and the above-mentioned itinerary information, to obtain the next location of the above-mentioned user and the time when the above-mentioned user arrives at the above-mentioned next location; then, the electronic device determines according to the weather information of the location included in the above-mentioned itinerary. Weather changes between the current location of the user and the next location within the time range of the next location.
  • the electronic device may determine the weather change according to the weather information of the location included in the itinerary.
  • the electronic device may obtain the current location and the current time of the user, according to the current location of the user.
  • the location, the current time, and the above-mentioned itinerary information, and the length of stay of the above-mentioned user at the current location is obtained.
  • the electronic device determines, according to the weather information of the places included in the above-mentioned itinerary, the weather changes of the above-mentioned place where the user is currently located within the above-mentioned stay period.
  • the electronic device obtains the itinerary information of the user who uses the electronic device without travel, which may be: the electronic device obtains the itinerary information set by the user who uses the electronic device without travel; or the electronic device obtains the information to be identified.
  • the above-mentioned data to be identified includes the messages received by the above-mentioned electronic equipment, the information recorded in the calendar, the information recorded in the memorandum and/or the application data installed by the above-mentioned electronic equipment; the above-mentioned data to be identified is identified; The itinerary information that the user who uses the electronic device has not traveled is obtained from the identification result.
  • the electronic device before the electronic device acquires the itinerary information of the user who uses the electronic device without travel, the electronic device may also display a prompt in response to the above-mentioned operation information after detecting that the above-mentioned user has added operation information of at least two cities. information, the above prompt information is used to prompt the above user to use the function of the itinerary weather.
  • the electronic device may also acquire data to be identified, and the data to be identified includes the message received by the electronic device, The information recorded in the calendar schedule, the information recorded in the memorandum and/or the application data installed on the above electronic device. Then, the electronic device identifies the above-mentioned data to be identified, and displays prompt information according to the identification result, and the above-mentioned prompt information is used to prompt the above-mentioned user to use the function of the itinerary weather.
  • the electronic device can also obtain the confirmation information of the user, and then, according to the confirmation information of the user, turn on the function switch of the itinerary weather.
  • the electronic device after displaying the weather information of the above-mentioned location, the electronic device detects the above-mentioned operation information of the user to adjust the itinerary, and then obtains the above-mentioned user-adjusted itinerary information, and the above-mentioned adjusted itinerary information includes the adjusted location.
  • the electronic device obtains the weather information of the location in the above-mentioned adjusted itinerary information from the above-mentioned server according to the time in the above-mentioned adjusted itinerary information, and according to the above-mentioned user-adjusted itinerary information, According to the time in the above-mentioned adjusted itinerary information, the location in the above-mentioned adjusted itinerary information and the weather information of the above-mentioned location are displayed.
  • an embodiment of the present application provides an apparatus for displaying weather information, the apparatus is included in an electronic device, and the apparatus has a function of implementing the behavior of the electronic device in the first aspect and possible implementations of the first aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules or units corresponding to the above functions. For example, a receiving module or unit, a processing module or unit, a transmitting module or unit, and the like.
  • embodiments of the present application provide an electronic device, including: one or more processors; a memory; a plurality of application programs; and one or more computer programs, wherein the one or more computer programs are stored in the above
  • the above-mentioned one or more computer programs include instructions, and when the above-mentioned instructions are executed by the above-mentioned electronic equipment, the above-mentioned electronic equipment is made to perform the following steps: acquiring the itinerary information of the user who uses the above-mentioned electronic equipment without traveling, and the above-mentioned itinerary information includes location and The time when the above-mentioned user is at the above-mentioned place, and the above-mentioned place includes the place where the above-mentioned user is currently located, the starting place, the passing place and the destination point of the above-mentioned user's itinerary; the weather information of the place included in the above-mentioned itinerary is obtained from the server, and the above-mentioned weather information includes
  • the step of causing the above-mentioned electronic device to perform displaying the weather information of the above-mentioned place may be: displaying the weather type icon of the place included in the above-mentioned itinerary;
  • causing the electronic device to perform the step of displaying the weather information of the location may further include: displaying a weather index associated with the location or weather warning information associated with the location.
  • the above-mentioned instruction when executed by the above-mentioned electronic device, after the above-mentioned electronic device performs the step of obtaining the weather information of the place included in the above-mentioned itinerary from the server, the following step is also performed: according to the above-mentioned place included in the above-mentioned itinerary to determine the weather changes; display the above weather changes.
  • the above-mentioned electronic device when the above-mentioned instruction is executed by the above-mentioned electronic device, the above-mentioned electronic device is caused to execute the step of determining the weather change according to the weather information of the places included in the above-mentioned itinerary: obtaining the current location of the above-mentioned user.
  • the above-mentioned electronic device when the above-mentioned instruction is executed by the above-mentioned electronic device, the above-mentioned electronic device is caused to execute the step of determining the weather change according to the weather information of the places included in the above-mentioned itinerary: obtaining the current location of the above-mentioned user. location and current time; according to the current location of the user, the current time and the itinerary information, obtain the length of stay of the user at the current location; according to the weather information of the location included in the itinerary, determine the stay During the time period, the weather changes of the current location of the above-mentioned user.
  • the step of causing the above-mentioned electronic device to execute the step of obtaining the itinerary information of the user who uses the above-mentioned electronic device without traveling may be: obtaining the information set by the user who uses the above-mentioned electronic device.
  • the itinerary information that has not been traveled; or, obtain the data to be identified, the data to be identified includes the messages received by the electronic device, the information recorded in the calendar schedule, the information recorded in the memorandum and/or the application data installed on the electronic device. ; Identify the above-mentioned data to be identified; and obtain the itinerary information of the user who uses the above-mentioned electronic device without traveling from the identification result.
  • the following step is also performed: detecting that the above-mentioned user adds After the operation information of at least two cities, prompt information is displayed in response to the above-mentioned operation information, and the above-mentioned prompt information is used to prompt the above-mentioned user to use the function of itinerary weather.
  • the following steps are also performed: obtaining the data to be identified , the above-mentioned data to be identified includes the message received by the above-mentioned electronic equipment, the information recorded in the calendar, the information recorded in the memorandum and/or the application data installed by the above-mentioned electronic equipment; identify the above-mentioned data to be identified; according to the identification result , displaying prompt information, where the above prompt information is used to prompt the above-mentioned user to use the function of the itinerary weather.
  • the following steps are further performed: obtaining the confirmation information of the above-mentioned user; according to the confirmation information of the above-mentioned user to turn on the function switch of the above itinerary weather.
  • the following steps are also performed: detecting the above-mentioned operation information of the user to adjust the itinerary;
  • the itinerary information adjusted by the above-mentioned user, the above-mentioned adjusted itinerary information includes the adjusted location and/or the adjusted time; according to the time in the above-mentioned adjusted itinerary information, obtain the above-mentioned adjusted itinerary information from the above server.
  • Weather information of the location; according to the itinerary information adjusted by the user, and according to the time in the adjusted itinerary information, the location in the adjusted itinerary information and the weather information of the location are displayed.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method provided in the first aspect.
  • the present application provides a computer program for executing the method provided in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • Fig. 1 is the schematic diagram of the interface of weather application in the prior art
  • FIG. 2 is a schematic diagram of a destination card displayed on a negative screen of an electronic device in the prior art
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a method for displaying weather information provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface for displaying weather information provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a method for displaying weather information provided by another embodiment of the present application.
  • FIG. 8 is a flowchart of a method for displaying weather information provided by yet another embodiment of the present application.
  • FIG. 9 is a flowchart of a method for displaying weather information provided by yet another embodiment of the present application.
  • FIG. 10 is a flowchart of a method for displaying weather information provided by yet another embodiment of the present application.
  • FIG. 11 is a schematic diagram of an application scenario of a method for displaying weather information provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
  • the weather application can display the weather information of the current location of the user according to the positioning information of the electronic device; the user can also add a city in the interface of the weather application, and the user adds several cities, then on the interface of the weather application Just display the weather information of these cities; in addition, the above weather application can also provide early warning of abnormal weather and/or disaster information.
  • the weather application can display the weather information of each city added by the user for at least two days.
  • the above technical solution only provides the query of the weather information of the city added by the user, without the presentation and reminder of the weather information related to the region; the weather information displayed by the above weather application also has no regional difference, and the guiding significance for the user's travel is weak.
  • FIG. 2 is a schematic diagram of a destination card displayed on the negative screen of an electronic device in the prior art.
  • the electronic device can extract the message from the received short message.
  • the weather information of the destination is displayed in the contextual smart card on the negative screen.
  • the embodiments of the present application provide a method for displaying weather information, which can realize that when a user travels across regions, the weather information and weather-related early warning information of the passing place can be conveniently viewed, so as to improve the travel safety of the user, and provide the user with for a convenient user experience.
  • the weather information display method provided by the embodiments of the present application may be applied to electronic devices, where the electronic devices may be smart phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (virtual reality) reality, VR) devices, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, dedicated media players, or personal digital assistants (personal digital assistants, PDAs) and other devices; There is no restriction on the specific type.
  • AR augmented reality
  • VR virtual reality
  • UMPCs ultra-mobile personal computers
  • netbooks netbooks
  • dedicated media players or personal digital assistants (personal digital assistants, PDAs) and other devices
  • PDAs personal digital assistants
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus) serial bus, USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, The earphone interface 170D, the sensor module 180, the button 190, the motor 191, the indicator 192, the camera 193, the display screen 194, and the subscriber identification module (SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the processor 110 is used to calculate the causal time, the display time, and the sorting calculation.
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (DCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , the electronic device 100 can also be powered by the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the internal memory 121 is used to store application data and chat records of the chat application, including but not limited to chat content, causal time and/or display time, and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound near the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance to be compensated by the lens module according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through light emitting diodes.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate charging status, battery change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
  • FIG. 4 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of a graphic or scroll bar text, such as notifications from applications running in the background, or on-screen notifications in the form of a dialog window. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • FIG. 5 is a flowchart of a method for displaying weather information provided by an embodiment of the present application. As shown in FIG. 5 , the above-mentioned method for displaying weather information may include:
  • step 501 the electronic device 100 obtains the itinerary information of the user who uses the electronic device 100 without traveling.
  • the itinerary information includes the location and the time when the user is at the location, and the location includes the current location of the user, the starting location, the passing location, and the destination point of the user's itinerary.
  • the current location of the user is the same as the starting location of the user's itinerary; if the user does not travel from the current location, the current location of the user is at a different location than the user's itinerary above.
  • the itinerary information of the above-mentioned user who has not traveled may be: the user departs from Beijing (starting location) to Thuhan (destination point) on November 5th. , passing through Tangshan, Wuhan, Chengdu and Xining, the time to arrive in Tangshan is November 6, the time to arrive in Wuhan is November 7, the time to arrive in Chengdu is from November 8 to November 10, and the time to arrive in Xining It is November 11, and the time to arrive in China is November 12. It can be seen that the itinerary information includes the location and the time when the above-mentioned user is at the above-mentioned location.
  • the electronic device 100 may implement the operation of step 501 through the processor 110 .
  • Step 502 Acquire from the server weather information of the location included in the itinerary, where the weather information includes the weather information of the location during the time when the user is at the location.
  • the foregoing server may be a server corresponding to a weather application, or a server of a third-party data provider, which is not limited in this embodiment.
  • the electronic device 100 can obtain the weather information of the locations included in the above itinerary from the server.
  • the electronic device 100 needs to obtain from the server on November 5
  • the electronic device 100 may implement the operation of step 502 through the processor 110 , the antenna 1 and the mobile communication module 150 , and/or through the processor 110 , the antenna 2 and the wireless communication module 160 .
  • Step 503 according to the itinerary information of the user, and in the order of dates, the locations included in the itinerary and the weather information of the locations are displayed.
  • FIG. 6 is a schematic diagram of an interface for displaying weather information provided by an embodiment of the present application.
  • the locations included in the user's itinerary and the weather information of the above-mentioned locations are displayed, including the weather information of Beijing on November 5, The weather information of Tangshan on November 6, the weather information of Wuhan on November 7, the weather information of Chengdu from November 8 to November 10, the weather information of Xining on November 11, and the weather information of carbohydrates on November 12,
  • the user no longer has to perform cumbersome scrolling and flipping operations, and can conveniently check the weather information of the locations included in his itinerary, which improves the user experience.
  • the weather information is displayed in the form of a map according to the above-mentioned user's itinerary information and in the order of dates.
  • the electronic device 100 displaying the weather information of the above-mentioned places may be: the electronic device 100 displays the weather type icons of the places included in the above-mentioned itinerary; further, the electronic device 100 displaying the weather information of the above-mentioned places may also include: displaying the weather information associated with the above-mentioned places weather index, weather warning information or weather information associated with the above location. That is, when displaying the weather information, the electronic device 100 may only display the weather type icon, or may display both the weather type icon and the weather index associated with the location or the weather warning information associated with the location.
  • the above-mentioned weather type icons may include icons corresponding to weather types such as sunny, rainy, snowy, cloudy and/or foggy; the above-mentioned weather indices may include sports index, car washing index, clothing index and/or tourism index, etc.; the above-mentioned weather warning Information includes: UV index, rainstorm, typhoon, strong wind, haze, heat, fog, rainy season and/or landslide, etc.
  • the ultraviolet rays are strong, so for the weather information of Xining and China, not only the weather type icon ( Xining is sunny, Cambodia is cloudy), and weather warning information related to the location (strong ultraviolet rays) is also displayed, so that the weather information related to the region can be displayed, and it can be seen from the area shown in box 61 that the electronic
  • the weather information displayed by the device 100 has regional differences, and has high guiding significance for user travel.
  • weather information when displaying weather information, it can be displayed in the order of priority from high to low.
  • the specific priority order can be meteorological natural disasters > weather warning information > precipitation in weather type > weather index associated with regions > non-weather in weather type Precipitation description.
  • precipitation includes but is not limited to rainfall, snowfall and/or hail, etc.
  • the electronic device 100 may implement the operation of step 503 through the processor 110 and the display screen 194 .
  • the electronic device 100 obtains the weather information of the places included in the itinerary from the server, and the weather information includes the time when the user is at the above-mentioned place.
  • the weather information of the above-mentioned places is displayed in the above-mentioned itinerary, and then according to the above-mentioned user's itinerary information, the weather information of the above-mentioned places included in the itinerary is displayed in the order of date, so that when the user travels across regions, the weather of the places included in the itinerary can be easily checked. information, improve user travel safety, and bring users a convenient experience.
  • FIG. 7 is a flowchart of a method for displaying weather information provided by another embodiment of the present application. As shown in FIG. 7 , in the embodiment shown in FIG. 5 of the present application, after step 502, the method may further include:
  • step 701 the electronic device 100 determines weather changes according to the weather information of the locations included in the itinerary.
  • the above weather changes may include: large temperature differences between different cities, changes in weather types (eg, from sunny to rainy), and/or areas with natural disasters (eg, landslides).
  • the electronic device 100 may implement the operation of step 701 through the processor 110 .
  • Step 702 displaying the above weather changes.
  • the electronic device 100 may implement the operation of step 702 through the processor 110 and the display screen 194 .
  • the electronic device 100 determines the weather change according to the weather information of the locations included in the above-mentioned itinerary.
  • the electronic device 100 obtains the current location and current time of the above-mentioned user, and then, The location, current time and the above-mentioned itinerary information, obtain the next location of the above-mentioned user and the time when the above-mentioned user arrives at the next place; Weather changes between the current location of the user and the next location within the time range of a location.
  • the user's itinerary is "Beijing-Tangshan-Wuhan-Chengdu-Xining-Tibet", and the electronic device 100 obtains that the user is currently in Tangshan, and the current time is November 6, then the electronic device 100 can obtain The next location of the above-mentioned user is Wuhan, and the time when the user arrives in Wuhan is November 7th. Next, the electronic device 100 can determine, according to the obtained weather information, that within the time range of November 6th and November 7th, Tangshan will be located in Tangshan. Weather changes between Wuhan and Wuhan.
  • the electronic device 100 may determine the weather change according to the weather information of the locations included in the itinerary: the electronic device 100 obtains the current location and the current time of the user, and according to the current location of the user location, current time, and the above-mentioned itinerary information, to obtain the length of stay of the above-mentioned user at the current location; weather changes.
  • the electronic device 100 may determine the weather changes in Chengdu from November 8th to November 10th according to the weather information of the locations included in the above itinerary.
  • the electronic device 100 can display the above weather change on the desktop or the negative screen of the electronic device 100 in the form of a notification.
  • the above weather change can also be displayed. Displayed in the interface shown in FIG. 6 , the present embodiment does not limit the display form of the above weather change.
  • the electronic device 100 can also remind the above-mentioned users to travel according to the weather changes, for example: when the weather changes are that the temperature difference is large, the user is reminded to dress; when the weather changes are sunny When it rains, remind users to bring rain gear; when the weather changes to areas with natural disasters, remind users to travel cautiously, etc., so as to provide suggestions for users to travel.
  • FIG. 8 is a flowchart of a method for displaying weather information provided by another embodiment of the present application. As shown in FIG. 8 , in the embodiment shown in FIG. 5 of the present application, step 501 may be:
  • Step 801 the electronic device 100 acquires the itinerary information set by the user who uses the electronic device 100 without traveling.
  • the user can manually add the location and the time when the user arrives at the added location, and the electronic device 100 obtains and saves the location and time added by the user, so as to obtain the itinerary information that the user does not travel.
  • the electronic device 100 may implement the operation of step 801 through the processor 110 .
  • FIG. 9 is a flowchart of a method for displaying weather information provided by another embodiment of the present application.
  • step 501 may include:
  • Step 901 the electronic device 100 obtains the data to be identified, the above-mentioned data to be identified includes the message received by the electronic device 100, the information recorded in the calendar schedule, the information recorded in the memo and/or the application data of the application installed on the electronic device 100 .
  • the messages received by the electronic device 100 include: short messages received by the electronic device 100 and/or messages received by the electronic device 100 through the instant messaging application installed on the electronic device 100; application data of the applications installed on the electronic device 100 include: : application data of travel applications and/or booking applications installed on the electronic device 100 .
  • the electronic device 100 may implement the operation of step 901 through the processor 110 .
  • Step 902 Identify the above-mentioned data to be identified.
  • Step 903 Acquire the itinerary information of the user who uses the electronic device 100 without traveling from the identification result.
  • the electronic device 100 can recognize the above-mentioned data to be recognized through intelligent language processing and semantic recognition, and then, the electronic device 100 can obtain the above-mentioned itinerary information of the user who did not travel from the recognition result.
  • the electronic device 100 may implement the operations of step 902 and step 903 through the processor 110 .
  • the electronic device 100 may also detect the operation information that the user adds at least two cities. , in response to the above-mentioned operation information, displaying prompt information, where the above-mentioned prompt information is used to prompt the above-mentioned user to use the function of the itinerary weather.
  • the electronic device 100 when the electronic device 100 detects that the user has added operation information of at least two cities in the display interface of the weather application installed on the electronic device 100, the electronic device 100 may prompt the user to use the itinerary weather information in response to the above operation information.
  • the electronic device 100 may also obtain the data to be identified, and the data to be identified includes the data received by the electronic device 100 The received message, the information recorded in the calendar schedule, the information recorded in the memo and/or the application data of the application installed by the electronic device 100; then, the electronic device 100 identifies the above-mentioned data to be identified, and displays prompt information according to the identification result. , and the above prompt information is used to prompt the above user to use the function of the itinerary weather.
  • the electronic device 100 can identify the messages received by the electronic device 100, the information recorded in the calendar, the information recorded in the memo, and/or the application data of the applications installed by the electronic device 100, According to the identification result, it is determined whether the user needs to travel. If it is determined that the user needs to travel, the user can be prompted to use the travel weather function.
  • the electronic device 100 may also obtain the confirmation information of the above-mentioned user, and according to the above-mentioned confirmation information of the user, turn on the function switch of the above-mentioned itinerary weather.
  • the electronic device 100 prompts the user to use the function of the itinerary weather
  • the user can click the "OK" icon, or input confirmation information to the electronic device 100 through other operation forms, and the electronic device 100
  • the function switch of the above-mentioned itinerary weather can be turned on.
  • the electronic device 100 can automatically acquire the data to be recognized according to the method provided by the embodiment shown in FIG. 9 of the present application, recognize the above-mentioned data to be recognized, and then obtain the data from the recognition result.
  • FIG. 10 is a flowchart of a method for displaying weather information provided by another embodiment of the present application. As shown in FIG. 10 , in the embodiment shown in FIG. 5 of the present application, after step 503, the method may further include:
  • step 1001 the electronic device 100 detects the above-mentioned operation information of the user for adjusting the itinerary.
  • the electronic device 100 may implement the operation of step 1001 through the processor 110 and the touch sensor 180K.
  • Step 1002 Obtain the itinerary information adjusted by the user, where the adjusted itinerary information includes an adjusted location and/or an adjusted time.
  • the electronic device 100 may implement the operation of step 1002 through the processor 110 .
  • Step 1003 Acquire weather information of the location in the adjusted itinerary information from the server according to the time in the adjusted itinerary information.
  • the electronic device 100 may implement the operation of step 1003 through the processor 110 , the antenna 1 and the mobile communication module 150 , and/or the processor 110 , the antenna 2 and the wireless communication module 160 .
  • Step 1004 Display the location in the adjusted itinerary information and the weather information of the location according to the time in the adjusted itinerary information according to the itinerary information adjusted by the user.
  • the electronic device 100 may implement the operation of step 1004 through the processor 110 and the display screen 194 .
  • the user can click the icon shown in 62 to adjust the corresponding itinerary information, and the user can adjust the itinerary information
  • the time or location in the itinerary information may also be adjusted, which is not limited in this embodiment.
  • the electronic device 100 obtains the weather information from the server again, and then displays the above weather information.
  • FIG. 11 is a schematic diagram of an application scenario of the method for displaying weather information provided by an embodiment of the present application.
  • the electronic device 100 can intelligently detect the itinerary. Specifically, the electronic device 100 can obtain the itinerary data of apps such as “SMS”, calendar schedule, tripartite travel and/or itinerary through intelligent language processing and semantic recognition. .
  • the electronic device 100 may acquire weather information of the location included in the itinerary from the server, where the weather information includes the weather information of the location during the time when the user is at the location.
  • the electronic device 100 may display the user's travel route and related weather information on an interface (eg, the interface shown in FIG. 6 ).
  • an interface eg, the interface shown in FIG. 6 .
  • the weather information of the locations included in the itinerary can be displayed according to the following principles:
  • the weather indexes related to the above regions include but are not limited to the UV index in plateau areas, rainstorm typhoons in coastal cities, strong winds in northern cities, northern haze, southern heat, London fog, southern plum rain and/or mountain landslides, etc.; the above-mentioned precipitation , including but not limited to rain, snow and/or hail.
  • the electronic device 100 can analyze the abnormal weather conditions in the user's itinerary in time according to the weather conditions on the route, for example: the temperature difference between different cities is large—remind the user to dress, and the weather in the itinerary changes from sunny to rainy—remind the user Bring rain gear, or there are natural disaster areas in the itinerary - reminders to travel carefully, etc.
  • the electronic device 100 may obtain the data to be identified, and the above-mentioned data to be identified includes the messages received by the electronic device 100, the information recorded in the calendar schedule, and the memorandum.
  • the recorded information, the information provided on the negative screen, and/or the application data of the application installed by the electronic device 100 identify the above-mentioned data to be identified through intelligent language processing and semantic recognition, and then, the electronic device 100 can obtain the data from the identification result.
  • the electronic device 100 may also obtain the itinerary information (including location and date information) manually added by the user.
  • the user can display the itinerary weather interface on the electronic device 100 to adjust the itinerary information, including adjusting the location and/or time, and adjust the itinerary information when the user adjusts the itinerary information.
  • the electronic device 100 obtains the weather information from the server again, and then displays the above weather information.
  • the temperature difference range can be preset.
  • the electronic device 100 can remind the user to dress and so on through a system notification. If abnormal weather changes are found, for example: sunny->rain, sunny->snow, the electronic device 100 can remind the user to bring the travel tool, and the notification frequency can be preset.
  • the weather information display method provided by the embodiment of the present application can improve the user experience of traveling across regions, prevent climate change on the journey, maintain the safety of the itinerary, and have high reference value for the user's itinerary planning. Especially when users travel by car, they need to know the weather information of the places they pass through in a timely and convenient manner.
  • the electronic device includes corresponding hardware and/or software modules for executing each function.
  • the algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functionality for each particular application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
  • the electronic device may be divided into functional modules according to the foregoing method embodiments.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that, the division of modules in this embodiment is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • FIG. 12 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
  • FIG. 12 shows a possible composition of the electronic device 1200 involved in the above embodiment.
  • the electronic device 1200 may include: a receiving unit 1201, a processing unit 1202 and a sending unit 1203;
  • the receiving unit 1201 may be used to support the electronic device 1200 to perform steps 502 and 1003, etc., and/or be used for other processes of the technical solutions described in the embodiments of this application;
  • the processing unit 1202 can be used to support the electronic device 1200 to perform step 501, step 503, step 701, step 702, step 801, step 901, step 902, step 903, step 1001, step 1002 and step 1004, etc., and/or be used for Other processes of the technical solutions described in the embodiments of this application;
  • the sending unit 1203 may be used to support the electronic device 1200 to perform steps 502 and 1003, etc., and/or be used for other processes of the technical solutions described in the embodiments of this application.
  • the electronic device 1200 provided in this embodiment is used to execute the above method for displaying weather information, so the same effect as the above method can be achieved.
  • the electronic device 1200 may correspond to the electronic device 100 shown in FIG. 1 .
  • the functions of the receiving unit 1201 and the sending unit 1203 may be provided by the processor 110 , the antenna 1 and the mobile communication module 150 in the electronic device 100 shown in FIG. 1 , and/or by the processor 110 , the antenna 2 and the wireless communication module 160 Implementation; the functions of the processing unit 1202 may be implemented by the processor 110 , the touch sensor 180K and the display screen 194 in the electronic device 100 shown in FIG. 1 .
  • the electronic device 1200 may include a processing module, a storage module, and a communication module.
  • the processing module may be used to control and manage the actions of the electronic device 1200 , for example, may be used to support the electronic device 1200 to perform the steps performed by the receiving unit 1201 , the processing unit 1202 and the sending unit 1203 .
  • the storage module may be used to support the electronic device 1200 to store program codes, data, and the like.
  • the communication module can be used to support the communication between the electronic device 1200 and other devices.
  • a processing module may be a processor or controller, which may implement or execute the various exemplary logical blocks, modules, and circuits described in connection with the present disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and the like.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and/or a Wi-Fi chip.
  • the electronic device 1200 involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the programs provided by the embodiments shown in FIG. 5 to FIG. 11 of the present application. method.
  • Embodiments of the present application further provide a computer program product, where the computer program product includes a computer program that, when running on a computer, enables the computer to execute the methods provided by the embodiments shown in FIGS. 5 to 11 of the present application.
  • “at least one” refers to one or more, and “multiple” refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects means that there can be three kinds of relationships, for example, A and/or B, which can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. where A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

一种天气信息的展示方法、装置和电子设备,所述方法包括:电子设备获取使用上述电子设备的用户未出行的行程信息(501);从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息(502);根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括的地点和上述地点的天气信息(503);所述方法可以实现当用户跨地域出行时,方便地查看行程所包括地点的天气信息,提高用户出行安全性,给用户带来便捷的使用体验。

Description

天气信息的展示方法、装置和电子设备
本申请要求于2020年7月28日提交中国专利局、申请号为202010736934.7、发明名称为“天气信息的展示方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及智能终端技术领域,特别涉及一种天气信息的展示方法、装置和电子设备。
背景技术
现在,人们的生活方式发生变化,有些用户经常在国内外多个城市间出行,这时,就需要查看出行途经地及目的地的天气信息。由于天气信息经常变化,因此查看天气信息的及时性和便捷性的诉求比较突出,例如,用户计划12月3日从武汉出发到昆明(12月5日),其中,12月4日在北京逗留1天,这种情况下,用户需要实时查看途经地的天气信息,及相关的天气变化情况。
现有相关技术中,在天气应用中添加一个城市,那么在天气应用的界面上就展示所添加城市的天气信息,但是上述方案只展示用户所添加城市的天气信息,当用户跨地域出行时,不能方便查看途经地的天气信息。
发明内容
本申请实施例提供了一种天气信息的展示方法、装置和电子设备,本申请实施例还提供一种计算机可读存储介质,以实现当用户跨地域出行时,可以方便地查看途经地的天气信息和气象相关的预警信息,提高用户出行安全性,给用户带来便捷的使用体验。
第一方面,本申请提供了一种天气信息的展示方法,包括:电子设备获取使用上述电子设备的用户未出行的行程信息,上述行程信息包括地点和上述用户处于上述地点的时间,上述地点包括上述用户当前所处的地点、上述用户的行程的起始地点、途经地点和目的地点。然后,电子设备从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息。最后,电子设备根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括的地点和上述地点的天气信息。
上述天气信息的展示方法中,电子设备获取使用上述电子设备的用户未出行的行程信息之后,从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息,然后根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括地点的天气信息,从而可以实现当用户跨地域出行时,方便地查看行程所包括地点的天气信息,提高用户出行安全 性,给用户带来便捷的使用体验。
其中一种可能的实现方式中,电子设备展示上述地点的天气信息可以为:展示上述行程所包括地点的天气类型图标;进一步地,电子设备展示上述地点的天气信息还可以包括:展示与上述地点关联的天气指数或者与上述地点关联的天气预警信息。
其中一种可能的实现方式中,电子设备从服务器获取上述行程所包括地点的天气信息之后,还可以根据上述行程所包括地点的天气信息,确定天气变化情况;然后,电子设备展示上述天气变化情况。
其中一种可能的实现方式中,电子设备根据上述行程所包括地点的天气信息,确定天气变化情况可以为:电子设备获取上述用户当前所处的地点和当前的时间,根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户的下一个地点和上述用户到达上述下一个地点的时间;然后,电子设备根据上述行程所包括地点的天气信息,确定在当前的时间至用户到达上述下一个地点的时间范围内,上述用户当前所处的地点与下一个地点之间的天气变化情况。
其中一种可能的实现方式中,电子设备根据上述行程所包括地点的天气信息,确定天气变化情况可以为:电子设备获取上述用户当前所处的地点和当前的时间,根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户在当前所处的地点的停留时长。然后,电子设备根据上述行程所包括地点的天气信息,确定在上述停留时长内,上述用户当前所处的地点的天气变化情况。
其中一种可能的实现方式中,电子设备获取使用上述电子设备的用户未出行的行程信息可以为:电子设备获取使用上述电子设备的用户设置的未出行的行程信息;或者,电子设备获取待识别的数据,上述待识别的数据包括上述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或上述电子设备安装的应用数据;对上述待识别的数据进行识别;从识别结果中获取使用上述电子设备的用户未出行的行程信息。
其中一种可能的实现方式中,电子设备获取使用上述电子设备的用户未出行的行程信息之前,还可以在检测到上述用户添加至少两个城市的操作信息之后,响应于上述操作信息,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
其中一种可能的实现方式中,电子设备获取使用上述电子设备的用户未出行的行程信息之前,上述电子设备还可以获取待识别的数据,上述待识别的数据包括上述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或上述电子设备安装的应用数据。然后,电子设备对上述待识别的数据进行识别,根据识别结果,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
其中一种可能的实现方式中,电子设备展示提示信息之后,还可以获取上述用户的确认信息,然后,根据上述用户的确认信息,开启上述行程天气的功能开关。
其中一种可能的实现方式中,展示上述地点的天气信息之后,电子设备检测到上述用户调整行程的操作信息,然后获取上述用户调整后的行程信息,上述调整后的行程信息包括调整后的地点和/或调整后的时间;接下来,电子设备根据上述调整后的行程信息中的时间,从上述服务器获取上述调整后的行程信息中的地点的天气 信息,根据上述用户调整后的行程信息,按照上述调整后的行程信息中的时间,展示上述调整后的行程信息中的地点和上述地点的天气信息。
第二方面,本申请实施例提供一种天气信息的展示装置,该装置包含在电子设备中,该装置具有实现第一方面及第一方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,接收模块或单元、处理模块或单元、发送模块或单元等。
第三方面,本申请实施例提供一种电子设备,包括:一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行以下步骤:获取使用上述电子设备的用户未出行的行程信息,上述行程信息包括地点和上述用户处于上述地点的时间,上述地点包括上述用户当前所处的地点、上述用户的行程的起始地点、途经地点和目的地点;从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息;根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括的地点和上述地点的天气信息。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行展示上述地点的天气信息的步骤可以为:展示上述行程所包括地点的天气类型图标;当上述指令被电子设备执行时,使得上述电子设备执行展示上述地点的天气信息的步骤还可以包括:展示与上述地点关联的天气指数或者与所述地点关联的天气预警信息。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行从服务器获取上述行程所包括地点的天气信息的步骤之后,还执行以下步骤:根据上述行程所包括地点的天气信息,确定天气变化情况;展示上述天气变化情况。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行根据上述行程所包括地点的天气信息,确定天气变化情况的步骤可以为:获取上述用户当前所处的地点和当前的时间;根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户的下一个地点和上述用户到达上述下一个地点的时间;根据上述行程所包括地点的天气信息,确定在当前的时间至上述用户到达上述下一个地点的时间范围内,上述用户当前所处的地点与上述下一个地点之间的天气变化情况。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行根据上述行程所包括地点的天气信息,确定天气变化情况的步骤可以为:获取上述用户当前所处的地点和当前的时间;根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户在当前所处的地点的停留时长;根据上述行程所包括地点的天气信息,确定在上述停留时长内,上述用户当前所处的地点的天气变化情况。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行获取使用上述电子设备的用户未出行的行程信息的步骤可以为:获取使 用上述电子设备的用户设置的未出行的行程信息;或者,获取待识别的数据,上述待识别的数据包括上述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或上述电子设备安装的应用数据;对上述待识别的数据进行识别;从识别结果中获取使用上述电子设备的用户未出行的行程信息。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行获取使用上述电子设备的用户未出行的行程信息的步骤之前,还执行以下步骤:检测到上述用户添加至少两个城市的操作信息之后,响应于上述操作信息,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行获取使用上述电子设备的用户未出行的行程信息的步骤之前,还执行以下步骤:获取待识别的数据,上述待识别的数据包括上述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或上述电子设备安装的应用数据;对上述待识别的数据进行识别;根据识别结果,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行上述展示提示信息的步骤之后,还执行以下步骤:获取上述用户的确认信息;根据上述用户的确认信息,开启上述行程天气的功能开关。
其中一种可能的实现方式中,当上述指令被上述电子设备执行时,使得上述电子设备执行展示上述地点的天气信息的步骤之后,还执行以下步骤:检测到上述用户调整行程的操作信息;获取上述用户调整后的行程信息,上述调整后的行程信息包括调整后的地点和/或调整后的时间;根据上述调整后的行程信息中的时间,从上述服务器获取上述调整后的行程信息中的地点的天气信息;根据上述用户调整后的行程信息,按照上述调整后的行程信息中的时间,展示上述调整后的行程信息中的地点和上述地点的天气信息。
第四方面,本申请实施例提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面提供的方法。
应当理解的是,本申请实施例的第二~第四方面与本申请实施例的第一方面的技术方案一致,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
第五方面,本申请提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面提供的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为现有相关技术中天气应用的界面的示意图;
图2为现有相关技术中在电子设备的负一屏显示的目的地卡片的示意图;
图3为本申请一个实施例提供的电子设备的结构示意图;
图4为本申请一个实施例提供的电子设备100的软件结构框图;
图5为本申请一个实施例提供的天气信息的展示方法的流程图;
图6为本申请一个实施例提供的展示天气信息的界面示意图;
图7为本申请另一个实施例提供的天气信息的展示方法的流程图;
图8为本申请再一个实施例提供的天气信息的展示方法的流程图;
图9为本申请再一个实施例提供的天气信息的展示方法的流程图;
图10为本申请再一个实施例提供的天气信息的展示方法的流程图;
图11为本申请一个实施例提供的天气信息的展示方法的应用场景示意图;
图12为本申请另一个实施例提供的电子设备的结构示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
现有相关技术中,天气应用可以根据电子设备的定位信息展示用户当前所在地点的天气信息;用户还可以在天气应用的界面中添加城市,用户添加了几个城市,那么在天气应用的界面上就展示这几个城市的天气信息;另外,上述天气应用还可以对天气异常和/或灾难信息进行预警。当用户出行时,用户可以手动添加出行行程上途经的城市,这时,天气应用可以展示用户所添加的每个城市的至少两天的天气信息,用户查看途经城市的天气信息时,需要滚动翻屏,然后根据自己的行程信息,按照到达每个城市的时间,查看相应的天气信息,如图1所示,图1为现有相关技术中天气应用的界面的示意图。
参见图1,假设用户当前在北京,想要去拉萨,途经武汉和成都,因此用户可以在手动添加武汉、成都和拉萨,假设用户的出发日期为12月4日,用户到达武汉的时间为12月5日,到达成都的时间为12月6日,那么用户如果想按照上述行程信息查看行程上每个地点的天气信息,用户需要先在展示北京的天气信息的界面中,查找12月4日北京的天气,然后滚动翻屏,在展示武汉的天气信息的界面中,查找12月5日武汉的天气,再滚动翻屏,在展示成都的天气信息的界面中,查找12月6日成都的天气。这样,用户的操作比较繁琐,不方便用户查看行程途经地的天气信息。
而且,上述技术方案只提供用户所添加城市的天气信息的查询,无地域相关的天气信息的呈现及提醒;上述天气应用展示的天气信息也无地域化差别,针对用户出行的指导意义较弱。
现有相关技术中,还提供另一种展示天气信息的方案,用户打开电子设备,如果电子设备接收的短信有出行行程,或者用户手动添加行程,可以“负一屏”中呈现目的地卡片,展示目的地的天气信息。图2为现有相关技术中在电子设备的负一屏显示的目的地卡片的示意图,参见图2,假设用户通过第三方应用(application,App)预定机票,电子设备可以从接收的短信中提取上述用户的行程信息,在负一屏的情景智能卡片中展示目的地(浦东新区)的天气信息。
但是,这种技术方案仅展示目的地的天气信息,展示的信息比较单一,不方便 用户查看行程途经地的天气信息。
基于以上问题,本申请实施例提供一种天气信息的展示方法,可以实现当用户跨地域出行时,方便地查看途经地的天气信息和气象相关的预警信息,提高用户出行安全性,给用户带来便捷的使用体验。
本申请实施例提供的天气信息的展示方法可以应用于电子设备,其中,上述电子设备可以为智能手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、专用媒体播放器或个人数字助理(personal digital assistant,PDA)等设备;本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图3为本申请一个实施例提供的电子设备的结构示意图,如图3所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound, I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
本申请实施例中,处理器110用于计算因果时间、显示时间以及排序计算。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,DCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC), 红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字 图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
本申请实施例中,内部存储器121用于存储聊天应用的应用数据和聊天记录,包括但不限于聊天内容、因果时间和/或显示时间等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号 输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红 外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指 示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图4为本申请一个实施例提供的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图4所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出 现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
为了便于理解,本申请以下实施例将以具有图3和图4所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的天气信息的展示方法进行具体阐述。
图5为本申请一个实施例提供的天气信息的展示方法的流程图,如图5所示,上述天气信息的展示方法可以包括:
步骤501,电子设备100获取使用上述电子设备100的用户未出行的行程信息。
其中,上述行程信息包括地点和上述用户处于上述地点的时间,上述地点包括上述用户当前所处的地点、上述用户的行程的起始地点、途经地点和目的地点。
本实施例中,如果用户从当前所处的地点出行,那么上述用户当前所处的地点与上述用户的行程的起始地点相同;如果用户不是从当前所处的地点出行,那么上述用户当前所处的地点与上述用户的行程的起始地点不同。
以上述用户当前所处的地点与上述用户的行程的起始地点相同为例,上述用户未出行的行程信息可以为:用户11月5日从北京(起始地点)启程去西藏(目的地点),途经唐山、武汉、成都和西宁,其中到达唐山的时间为11月6日,到达武汉的时间为11月7日,在成都的时间为11月8日~11月10日,到达西宁的时间为11月11日,到达西藏的时间为11月12日。可以看出,行程信息包括地点和上述用户处于上述地点的时间。
具体地,电子设备100可以通过处理器110实现步骤501的操作。
步骤502,从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息。
具体地,上述服务器可以为天气应用对应的服务器,或者第三方数据供应商的服务器,本实施例对此不作限定。
本实施例中,电子设备100获取用户未出行的行程信息之后,可以从服务器获取上述行程所包括地点的天气信息,以上面所说的行程信息为例,电子设备100需要从服务器获取11月5日北京的天气信息、11月6日唐山的天气信息、11月7日武汉的天气信息、11月8日~11月10日成都的天气信息、11月11日西宁的天气信息和11月12日西藏的天气信息。
具体地,电子设备100可以通过处理器110、天线1和移动通信模块150,和/或,通过处理器110、天线2和无线通信模块160实现步骤502的操作。
步骤503,根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括的地点和上述地点的天气信息。
具体地,本实施例中,在获取上述行程所包括地点的天气信息之后,可以根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括的地点和上述地点的天气信息,如图6所示,图6为本申请一个实施例提供的展示天气信息的界面示意图。
参见图6,方框61所示区域中,根据用户的行程信息,按照日期的先后顺序,展示了用户的行程所包括的地点和上述地点的天气信息,包括11月5日北京的天气信息、11月6日唐山的天气信息、11月7日武汉的天气信息、11月8日~11月10日成都的天气信息、11月11日西宁的天气信息和11月12日西藏的天气信息,这样,用户不用再进行繁琐的滚动翻屏操作,就可以很方便地查看自己行程所包括地点的天气信息,提高了用户的使用体验。
从图6可以看出,本实施例中,天气信息的展示是根据上述用户的行程信息,按照日期的先后顺序,以地图的形式展示的,在具体实现时,可以根据上述用户的行程所包括地点的范围,合理缩放地图。
具体地,电子设备100展示上述地点的天气信息可以为:电子设备100展示上述行程所包括地点的天气类型图标;进一步地,电子设备100展示上述地点的天气信息还可以包括:展示与上述地点关联的天气指数、与上述地点关联的天气预警信息或气象信息。也就是说,电子设备100在展示天气信息时,可以只展示天气类型图标,也可以既展示天气类型图标,又展示与地点关联的天气指数或者与上述地点关联的天气预警信息。
其中,上述天气类型图标可以包括晴、雨、雪、多云和/或雾等天气类型对应的图标;上述天气指数可以包括运动指数、洗车指数、穿衣指数和/或旅游指数等;上述天气预警信息包括:紫外线指数、暴雨、台风、大风、雾霾、暑热、大雾、梅雨和/或山体滑坡等。
参见图6,方框61所示区域中,在展示西宁和西藏的天气信息时,由于西宁和西藏属于高原地区,紫外线较强,因此针对西宁和西藏的天气信息,不仅展示了天气类型图标(西宁为晴,西藏为多云),还展示了与地点关联的天气预警信息(紫外线较强),从而实现了展示与地域相关的天气信息,并且从方框61所示区域中可以 看出,电子设备100展示的天气信息存在地域化差别,针对用户出行具有较高的指导意义。
另外,在展示天气信息时,可以按照优先级由高到低的顺序展示,具体优先级顺序可以为气象自然灾害>天气预警信息>天气类型中降水情况>地域关联的天气指数>天气类型中非降水描述。其中,降水包括但不限于降雨、降雪和/或冰雹等。
具体地,电子设备100可以通过处理器110和显示屏194实现步骤503的操作。上述天气信息的展示方法中,电子设备100获取使用上述电子设备100的用户未出行的行程信息之后,从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息,然后根据上述用户的行程信息,按照日期的先后顺序,展示上述行程所包括地点的天气信息,从而可以实现当用户跨地域出行时,方便地查看行程所包括地点的天气信息,提高用户出行安全性,给用户带来便捷的使用体验。
图7为本申请另一个实施例提供的天气信息的展示方法的流程图,如图7所示,本申请图5所示实施例中,步骤502之后,还可以包括:
步骤701,电子设备100根据上述行程所包括地点的天气信息,确定天气变化情况。
其中,上述天气变化情况可以包括:不同城市之间温差较大、天气类型变化(例如:由晴到雨)和/或有自然灾害地区(例如:山体滑坡)等。
具体地,电子设备100可以通过处理器110实现步骤701的操作。
步骤702,展示上述天气变化情况。
具体地,电子设备100可以通过处理器110和显示屏194实现步骤702的操作。
一种实现方式中,电子设备100根据上述行程所包括地点的天气信息,确定天气变化情况可以为:电子设备100获取上述用户当前所处的地点和当前的时间,然后,根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户的下一个地点和上述用户到达下一个地点的时间;接下来,根据上述行程所包括地点的天气信息,确定在当前的时间至用户到达下一个地点的时间范围内,上述用户当前所处的地点与下一个地点之间的天气变化情况。
仍以图6为例,用户的行程为“北京-唐山-武汉-成都-西宁-西藏”,电子设备100获取上述用户当前在唐山,当前的时间为11月6日,那么电子设备100可以获取上述用户的下一个地点为武汉,并且用户到达武汉的时间为11月7日,接下来,电子设备100可以根据获取的天气信息,确定在11月6日11月7日的时间范围内,唐山与武汉之间的天气变化情况。
另一种实现方式中,电子设备100根据上述行程所包括地点的天气信息,确定天气变化情况可以为:电子设备100获取上述用户当前所处的地点和当前的时间,根据上述用户当前所处的地点、当前的时间和上述行程信息,获取上述用户在当前 所处的地点的停留时长;然后,根据上述行程所包括地点的天气信息,确定在上述停留时长内,上述用户当前所处的地点的天气变化情况。
仍以图6为例,假设电子设备100获取用户当前在成都,当前的时间为11月8日,根据行程信息,电子设备100可以获取上述用户在成都的停留时长为11月8日~11月10日,然后,电子设备100可以根据上述行程所包括地点的天气信息,确定在11月8日~11月10日内,成都的天气变化情况。
本实施例中,在步骤701确定天气变化情况之后,电子设备100可以将上述天气变化情况,通过通知的形式,展示到电子设备100的桌面或负一屏上,当然也可以将上述天气变化情况展示到图6所示界面中,本实施例对上述天气变化情况的展示形式不作限定。
另外,除了展示天气变化情况之外,电子设备100还可以根据天气变化情况,对上述用户进行出行提醒,例如:当天气变化情况为温差较大时,提醒用户穿衣;当天气变化情况为由晴到雨时,提醒用户携带雨具;当天气变化情况为有自然灾害地区时,提醒用户出行慎重等等,从而可以为用户出行提供建议。
图8为本申请再一个实施例提供的天气信息的展示方法的流程图,如图8所示,本申请图5所示实施例中,步骤501可以为:
步骤801,电子设备100获取使用上述电子设备100的用户设置的未出行的行程信息。
也就是说,本实施例中,用户可以自行手动添加地点和上述用户到达所添加的地点的时间,电子设备100获取并保存用户添加的地点和时间,从而获取上述用户未出行的行程信息。
具体地,电子设备100可以通过处理器110实现步骤801的操作。
图9为本申请再一个实施例提供的天气信息的展示方法的流程图,如图9所示,本申请图5所示实施例中,步骤501可以包括:
步骤901,电子设备100获取待识别的数据,上述待识别的数据包括电子设备100接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或电子设备100安装的应用的应用数据。
其中,电子设备100接收到的消息包括:电子设备100接收到的短消息和/或电子设备100通过上述电子设备100安装的即时通信应用接收到的消息;电子设备100安装的应用的应用数据包括:电子设备100安装的出行类应用和/或订票类应用的应用数据。
具体地,电子设备100可以通过处理器110实现步骤901的操作。
步骤902,对上述待识别的数据进行识别。
步骤903,从识别结果中获取使用电子设备100的用户未出行的行程信息。
具体地,电子设备100可以通过智慧化语言处理和语义识别,对上述待识别的数据进行识别,然后,电子设备100可以从识别结果中获取上述用户未出行的行程信息。
具体地,电子设备100可以通过处理器110实现步骤902和步骤903的操作。
进一步地,本申请实施例的一种实现方式中,电子设备100获取使用电子设备100的用户未出行的行程信息之前,电子设备100还可以在检测到上述用户添加至少两个城市的操作信息之后,响应于上述操作信息,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
具体实现时,当电子设备100在电子设备100安装的天气应用的展示界面中,检测到用户添加至少两个城市的操作信息之后,电子设备100响应于上述操作信息,可以提示用户使用行程天气的功能。
本申请实施例的另一种实现方式中,电子设备100获取使用电子设备100的用户未出行的行程信息之前,电子设备100还可以获取待识别的数据,上述待识别的数据包括电子设备100接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或电子设备100安装的应用的应用数据;然后,电子设备100对上述待识别的数据进行识别,根据识别结果,展示提示信息,上述提示信息用于提示上述用户使用行程天气的功能。
也就是说,本实现方式中,电子设备100可以通过对电子设备100接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或电子设备100安装的应用的应用数据进行识别,根据识别结果确定上述用户是否有出行的需求,如果确定上述用户有出行的需求,则可以对上述用户进行提示,提示上述用户使用行程天气的功能。
进一步地,本申请实施例中,在展示提示信息之后,电子设备100还可以获取上述用户的确认信息,根据上述用户的确认信息,开启上述行程天气的功能开关。
具体地,在电子设备100提示用户使用行程天气的功能之后,用户如果确认使用上述行程天气的功能,用户可以点击“确定”图标,或者通过其他操作形式向电子设备100输入确认信息,电子设备100获取上述用户的确认信息之后,可以开启上述行程天气的功能开关。在上述行程天气的功能开关开启之后,电子设备100就可以按照本申请图9所示实施例提供的方法,自动获取待识别的数据,对上述待识别的数据进行识别,然后从识别结果中获取上述用户未出行的行程信息。
图10为本申请再一个实施例提供的天气信息的展示方法的流程图,如图10所示,本申请图5所示实施例中,步骤503之后,还可以包括:
步骤1001,电子设备100检测到上述用户调整行程的操作信息。
具体地,电子设备100可以通过处理器110和触摸传感器180K实现步骤1001的操作。
步骤1002,获取上述用户调整后的行程信息,上述调整后的行程信息包括调整后的地点和/或调整后的时间。
具体实现时,电子设备100可以通过处理器110实现步骤1002的操作。
步骤1003,根据上述调整后的行程信息中的时间,从上述服务器获取上述调整后的行程信息中的地点的天气信息。
具体地,电子设备100可以通过处理器110、天线1和移动通信模块150,和/或,由处理器110、天线2和无线通信模块160实现步骤1003的操作。
步骤1004,根据上述用户调整后的行程信息,按照上述调整后的行程信息中的时间,展示上述调整后的行程信息中的地点和上述地点的天气信息。
具体地,电子设备100可以通过处理器110和显示屏194实现步骤1004的操作。
具体地,参见图6,如果方框61所示区域中展示的行程信息与用户实际的行程信息不一致,那么用户可以点击62所示的图标,对相应的行程信息进行调整,用户可以调整行程信息中的时间或地点,也可以对行程信息中的时间和地点均进行调整,本实施例对此不作限定。在用户对行程信息调整完毕之后,电子设备100重新从服务器获取天气信息,进而展示上述天气信息。
本申请实施例提供的天气信息的展示方法可以应用于图11所示的场景中,图11为本申请一个实施例提供的天气信息的展示方法的应用场景示意图。
如图11所示,电子设备100可以智能检测行程,具体地,电子设备100可以通过智慧化语言处理及语义识别,获取到“短信”、日历日程、三方出行和/或行程等App的行程数据。
然后,电子设备100可以从服务器获取上述行程所包括地点的天气信息,上述天气信息包括在上述用户处于上述地点的时间内上述地点的天气信息。
接下来,电子设备100可以在一个界面(例如:图6所示的界面)上,展示用户的出行路线和相关的天气信息。
具体地,对于行程所包括地点的天气信息,可以按照以下原则进行展示:
1)展示天气类型图标;
2)展示天气信息时,可以按照以下优先级进行展示:气象自然灾害>天气预警信息>天气类型中降水情况>地域关联的天气指数>天气类型中非降水描述。
其中,上述地域关联的天气指数,包括但不限于高原地区紫外线指数、沿海城市暴雨台风、北方城市大风、北方雾霾、南方暑热、伦敦大雾、南方梅雨和/或山地山体滑坡等;上述降水,包括但不限于降雨、降雪和/或降冰雹等。
另外,电子设备100可以根据路径上的天气情况,及时分析上述用户行程内的天气异常情况,例如:不同城市之间温差较大——提醒用户穿衣,行程内天气由晴到雨——提醒用户携带雨具,或者行程内有自然灾害地区——提醒出行慎重等。
本申请实施例中,对于用户未出行的行程信息的获取方式,电子设备100可以获取待识别的数据,上述待识别的数据包括电子设备100接收到的消息、日历日程中记录的信息、备忘录中记录的信息、负一屏提供的信息和/或电子设备100安装的应用的应用数据,通过智慧化语言处理和语义识别,对上述待识别的数据进行识别,然后,电子设备100可以从识别结果中获取上述用户未出行的行程信息;另外,电子设备100还可以获取用户手动添加的行程信息(包括地点和日期信息)。
如果用户发现电子设备100展示的行程信息与用户实际的行程信息不一致,那么用户可以在电子设备100展示行程天气的界面,对行程信息进行调整,包括调整地点和/或时间,在用户对行程信息调整完毕之后,电子设备100重新从服务器获取天气信息,进而展示上述天气信息。
对于天气预警信息,可以预先设定温差范围,当天气信息结合日期数据,分析得到温差超过范围,则电子设备100可以通过系统通知的方式,提醒用户穿衣等。如果发现天气变化类异常,例如:晴->雨、晴->雪,电子设备100可以提醒用户携带出行工具,通知频率可以预先设定。
对于灾害类异常数据,可以由通知或负一屏进行展示。
本申请实施例提供的天气信息的展示方法,可以提升用户跨地域出行的使用体验,防范旅途气候变化,维护行程安全,对用户的行程规划具有较高的参考价值。尤其是用户自驾游时,途径多个地点,需要及时便捷的了解途经地的天气信息。
可以理解的是,上述实施例中的部分或全部步骤骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本申请所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法实施例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图12为本申请另一个实施例提供的电子设备的结构示意图,在采用对应各个功能划分各个功能模块的情况下,图12示出了上述实施例中涉及的电子设备1200的一种可能的组成示意图,如图12所示,该电子设备1200可以包括:接收单元1201、处理单元1202和发送单元1203;
其中,接收单元1201可以用于支持电子设备1200执行步骤502和步骤1003等,和/或用于本申请实施例所描述的技术方案的其他过程;
处理单元1202可以用于支持电子设备1200执行步骤501、步骤503、步骤701、步骤702、步骤801、步骤901、步骤902、步骤903、步骤1001、步骤1002和步骤1004等,和/或用于本申请实施例所描述的技术方案的其他过程;
发送单元1203可以用于支持电子设备1200执行步骤502和步骤1003等,和/或用于本申请实施例所描述的技术方案的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备1200,用于执行上述天气信息的展示方法,因此可以达到与上述方法相同的效果。
应当理解的是,电子设备1200可以对应于图1所示的电子设备100。其中,接 收单元1201和发送单元1203的功能可以由图1所示的电子设备100中处理器110、天线1和移动通信模块150,和/或,由处理器110、天线2和无线通信模块160实现;处理单元1202的功能可以由图1所示的电子设备100中的处理器110、触摸传感器180K和显示屏194实现。
在采用集成的单元的情况下,电子设备1200可以包括处理模块、存储模块和通信模块。
其中,处理模块可以用于对电子设备1200的动作进行控制管理,例如,可以用于支持电子设备1200执行上述接收单元1201、处理单元1202和发送单元1203执行的步骤。存储模块可以用于支持电子设备1200存储程序代码和数据等。通信模块,可以用于支持电子设备1200与其他设备的通信。
其中,处理模块可以是处理器或控制器,其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框、模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片和/或Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备1200可以为具有图1所示结构的设备。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图11所示实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图5~图11所示实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并 作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (22)

  1. 一种天气信息的展示方法,其特征在于,包括:
    电子设备获取使用所述电子设备的用户未出行的行程信息,所述行程信息包括地点和所述用户处于所述地点的时间,所述地点包括所述用户当前所处的地点、所述用户的行程的起始地点、途经地点和目的地点;
    从服务器获取所述行程所包括地点的天气信息,所述天气信息包括在所述用户处于所述地点的时间内所述地点的天气信息;
    根据所述用户的行程信息,按照日期的先后顺序,展示所述行程所包括的地点和所述地点的天气信息。
  2. 根据权利要求1所述的方法,其特征在于,所述展示所述地点的天气信息包括:
    展示所述行程所包括地点的天气类型图标;
    所述展示所述地点的天气信息还包括:展示与所述地点关联的天气指数或者与所述地点关联的天气预警信息。
  3. 根据权利要求1所述的方法,其特征在于,所述从服务器获取所述行程所包括地点的天气信息之后,还包括:
    根据所述行程所包括地点的天气信息,确定天气变化情况;
    展示所述天气变化情况。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述行程所包括地点的天气信息,确定天气变化情况包括:
    获取所述用户当前所处的地点和当前的时间;
    根据所述用户当前所处的地点、当前的时间和所述行程信息,获取所述用户的下一个地点和所述用户到达所述下一个地点的时间;
    根据所述行程所包括地点的天气信息,确定在当前的时间至所述用户到达所述下一个地点的时间范围内,所述用户当前所处的地点与所述下一个地点之间的天气变化情况。
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述行程所包括地点的天气信息,确定天气变化情况包括:
    获取所述用户当前所处的地点和当前的时间;
    根据所述用户当前所处的地点、当前的时间和所述行程信息,获取所述用户在当前所处的地点的停留时长;
    根据所述行程所包括地点的天气信息,确定在所述停留时长内,所述用户当前所处的地点的天气变化情况。
  6. 根据权利要求1-5任意一项所述的方法,其特征在于,所述电子设备获取使用所述电子设备的用户未出行的行程信息包括:
    所述电子设备获取使用所述电子设备的用户设置的未出行的行程信息;或者,
    所述电子设备获取待识别的数据,所述待识别的数据包括所述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或所述电子设备安装的应 用数据;
    对所述待识别的数据进行识别;
    从识别结果中获取使用所述电子设备的用户未出行的行程信息。
  7. 根据权利要求6所述的方法,其特征在于,所述电子设备获取使用所述电子设备的用户未出行的行程信息之前,还包括:
    所述电子设备检测到所述用户添加至少两个城市的操作信息之后,响应于所述操作信息,展示提示信息,所述提示信息用于提示所述用户使用行程天气的功能。
  8. 根据权利要求6所述的方法,其特征在于,所述电子设备获取使用所述电子设备的用户未出行的行程信息之前,还包括:
    所述电子设备获取待识别的数据,所述待识别的数据包括所述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或所述电子设备安装的应用数据;
    对所述待识别的数据进行识别;
    根据识别结果,展示提示信息,所述提示信息用于提示所述用户使用行程天气的功能。
  9. 根据权利要求7或8所述的方法,其特征在于,所述展示提示信息之后,还包括:
    获取所述用户的确认信息;
    根据所述用户的确认信息,开启所述行程天气的功能开关。
  10. 根据权利要求1-5任意一项所述的方法,其特征在于,所述展示所述地点的天气信息之后,还包括:
    所述电子设备检测到所述用户调整行程的操作信息;
    获取所述用户调整后的行程信息,所述调整后的行程信息包括调整后的地点和/或调整后的时间;
    根据所述调整后的行程信息中的时间,从所述服务器获取所述调整后的行程信息中的地点的天气信息;
    根据所述用户调整后的行程信息,按照所述调整后的行程信息中的时间,展示所述调整后的行程信息中的地点和所述地点的天气信息。
  11. 一种天气信息的展示装置,其特征在于,用于执行如权利要求1至10任一所述的方法。
  12. 一种电子设备,其特征在于,包括:
    一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行以下步骤:
    获取使用所述电子设备的用户未出行的行程信息,所述行程信息包括地点和所述用户处于所述地点的时间,所述地点包括所述用户当前所处的地点、所述用户的行程的起始地点、途经地点和目的地点;
    从服务器获取所述行程所包括地点的天气信息,所述天气信息包括在所述用户处于所述地点的时间内所述地点的天气信息;
    根据所述用户的行程信息,按照日期的先后顺序,展示所述行程所包括的地点 和所述地点的天气信息。
  13. 根据权利要求12所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述展示所述地点的天气信息的步骤包括:
    展示所述行程所包括地点的天气类型图标;
    当所述指令被所述电子设备执行时,使得所述电子设备执行所述展示所述地点的天气信息的步骤还包括:
    展示与所述地点关联的天气指数或者与所述地点关联的天气预警信息。
  14. 根据权利要求12所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述从服务器获取所述行程所包括地点的天气信息的步骤之后,还执行以下步骤:
    根据所述行程所包括地点的天气信息,确定天气变化情况;
    展示所述天气变化情况。
  15. 根据权利要求14所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述根据所述行程所包括地点的天气信息,确定天气变化情况的步骤包括:
    获取所述用户当前所处的地点和当前的时间;
    根据所述用户当前所处的地点、当前的时间和所述行程信息,获取所述用户的下一个地点和所述用户到达所述下一个地点的时间;
    根据所述行程所包括地点的天气信息,确定在当前的时间至所述用户到达所述下一个地点的时间范围内,所述用户当前所处的地点与所述下一个地点之间的天气变化情况。
  16. 根据权利要求14所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述根据所述行程所包括地点的天气信息,确定天气变化情况的步骤包括:
    获取所述用户当前所处的地点和当前的时间;
    根据所述用户当前所处的地点、当前的时间和所述行程信息,获取所述用户在当前所处的地点的停留时长;
    根据所述行程所包括地点的天气信息,确定在所述停留时长内,所述用户当前所处的地点的天气变化情况。
  17. 根据权利要求12-16任意一项所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行获取使用所述电子设备的用户未出行的行程信息的步骤包括:
    获取使用所述电子设备的用户设置的未出行的行程信息;或者,
    获取待识别的数据,所述待识别的数据包括所述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或所述电子设备安装的应用数据;
    对所述待识别的数据进行识别;
    从识别结果中获取使用所述电子设备的用户未出行的行程信息。
  18. 根据权利要求17所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述获取使用所述电子设备的用户未出行的行程信息的步骤之前,还执行以下步骤:
    检测到所述用户添加至少两个城市的操作信息之后,响应于所述操作信息,展示提示信息,所述提示信息用于提示所述用户使用行程天气的功能。
  19. 根据权利要求17所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述获取使用所述电子设备的用户未出行的行程信息的步骤之前,还执行以下步骤:
    获取待识别的数据,所述待识别的数据包括所述电子设备接收到的消息、日历日程中记录的信息、备忘录中记录的信息和/或所述电子设备安装的应用数据;
    对所述待识别的数据进行识别;
    根据识别结果,展示提示信息,所述提示信息用于提示所述用户使用行程天气的功能。
  20. 根据权利要求18或19所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述展示提示信息的步骤之后,还执行以下步骤:
    获取所述用户的确认信息;
    根据所述用户的确认信息,开启所述行程天气的功能开关。
  21. 根据权利要求12-16任意一项所述的电子设备,其特征在于,当所述指令被所述电子设备执行时,使得所述电子设备执行所述展示所述地点的天气信息的步骤之后,还执行以下步骤:
    检测到所述用户调整行程的操作信息;
    获取所述用户调整后的行程信息,所述调整后的行程信息包括调整后的地点和/或调整后的时间;
    根据所述调整后的行程信息中的时间,从所述服务器获取所述调整后的行程信息中的地点的天气信息;
    根据所述用户调整后的行程信息,按照所述调整后的行程信息中的时间,展示所述调整后的行程信息中的地点和所述地点的天气信息。
  22. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如权利要求1-10任一项所述的方法。
PCT/CN2021/107405 2020-07-28 2021-07-20 天气信息的展示方法、装置和电子设备 WO2022022335A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010736934.7A CN114003827A (zh) 2020-07-28 2020-07-28 天气信息的展示方法、装置和电子设备
CN202010736934.7 2020-07-28

Publications (1)

Publication Number Publication Date
WO2022022335A1 true WO2022022335A1 (zh) 2022-02-03

Family

ID=79920473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/107405 WO2022022335A1 (zh) 2020-07-28 2021-07-20 天气信息的展示方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN114003827A (zh)
WO (1) WO2022022335A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016687A (zh) * 2022-06-23 2022-09-06 拉扎斯网络科技(上海)有限公司 天气信息的展示方法、装置、电子设备及存储介质
CN116095227A (zh) * 2022-06-20 2023-05-09 荣耀终端有限公司 终端设备的信息显示方法和终端设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218709A (zh) * 2013-05-03 2013-07-24 北京百度网讯科技有限公司 智能日程管理方法、系统及云端服务器
CN107087052A (zh) * 2017-03-02 2017-08-22 深圳市金立通信设备有限公司 一种天气信息智能显示方法及终端
CN110727882A (zh) * 2019-09-26 2020-01-24 上海掌门科技有限公司 信息展示方法、电子设备和计算机可读介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218709A (zh) * 2013-05-03 2013-07-24 北京百度网讯科技有限公司 智能日程管理方法、系统及云端服务器
CN107087052A (zh) * 2017-03-02 2017-08-22 深圳市金立通信设备有限公司 一种天气信息智能显示方法及终端
CN110727882A (zh) * 2019-09-26 2020-01-24 上海掌门科技有限公司 信息展示方法、电子设备和计算机可读介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095227A (zh) * 2022-06-20 2023-05-09 荣耀终端有限公司 终端设备的信息显示方法和终端设备
CN116095227B (zh) * 2022-06-20 2023-10-31 荣耀终端有限公司 终端设备的信息显示方法和终端设备
CN115016687A (zh) * 2022-06-23 2022-09-06 拉扎斯网络科技(上海)有限公司 天气信息的展示方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114003827A (zh) 2022-02-01

Similar Documents

Publication Publication Date Title
US11871328B2 (en) Method for identifying specific position on specific route and electronic device
CN110138959B (zh) 显示人机交互指令的提示的方法及电子设备
WO2020244622A1 (zh) 一种通知的提示方法、终端及系统
WO2020151387A1 (zh) 一种基于用户运动状态的推荐方法及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
CN110825469A (zh) 语音助手显示方法及装置
CN112130742A (zh) 一种移动终端的全屏显示方法及设备
WO2021258814A1 (zh) 视频合成方法、装置、电子设备及存储介质
CN111316199A (zh) 一种信息处理方法及电子设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2022022335A1 (zh) 天气信息的展示方法、装置和电子设备
CN111835904A (zh) 一种基于情景感知和用户画像开启应用的方法及电子设备
CN114115512A (zh) 信息显示方法、终端设备及计算机可读存储介质
CN114424927A (zh) 睡眠监测方法、装置、电子设备及计算机可读存储介质
WO2022247383A1 (zh) 提示方法、图形用户界面及相关装置
CN113949803A (zh) 拍照方法及电子设备
WO2022166435A1 (zh) 分享图片的方法和电子设备
WO2022022674A1 (zh) 应用图标布局方法及相关装置
CN112684969A (zh) 始终显示方法及移动设备
WO2023207667A1 (zh) 一种显示方法、汽车和电子设备
CN114650330A (zh) 一种添加操作序列的方法、电子设备和系统
CN115022807B (zh) 快递信息提醒方法和电子设备
WO2022078116A1 (zh) 笔刷效果图生成方法、图像编辑方法、设备和存储介质
CN114828098A (zh) 数据传输方法和电子设备
CN111586236A (zh) 电子设备标记方法及装置、计算机可读介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21849410

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21849410

Country of ref document: EP

Kind code of ref document: A1