CN113483452A - Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance - Google Patents

Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance Download PDF

Info

Publication number
CN113483452A
CN113483452A CN202110791185.2A CN202110791185A CN113483452A CN 113483452 A CN113483452 A CN 113483452A CN 202110791185 A CN202110791185 A CN 202110791185A CN 113483452 A CN113483452 A CN 113483452A
Authority
CN
China
Prior art keywords
weather
electric appliance
internet
remote server
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110791185.2A
Other languages
Chinese (zh)
Other versions
CN113483452B (en
Inventor
吴斌
陈宗衍
林勤鑫
李惠波
荀弄潮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110791185.2A priority Critical patent/CN113483452B/en
Publication of CN113483452A publication Critical patent/CN113483452A/en
Application granted granted Critical
Publication of CN113483452B publication Critical patent/CN113483452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/70Control systems characterised by their outputs; Constructional details thereof
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F2130/00Control inputs relating to environmental factors not covered by group F24F2110/00
    • F24F2130/10Weather information or forecasts

Abstract

The invention provides a weather parameter acquisition method and device based on an electric appliance, a storage medium and the electric appliance, wherein the method comprises the following steps: acquiring the Internet of things card information of the electric appliance; sending the information of the Internet of things card to a remote server to request the remote server to inquire weather parameters of the position of the electric appliance according to the information of the Internet of things card; receiving weather parameters of the position of the electrical appliance returned by the remote server; the remote server acquires the position information of the position of the electric appliance according to the Internet of things card information, and acquires the weather parameters of the position of the electric appliance from a weather server according to the position information; the weather parameters comprise: the weather parameter of the current time and the weather parameter predicted value of the future. The scheme provided by the invention can save the flow cost.

Description

Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance
Technical Field
The invention relates to the field of control, in particular to a weather parameter acquisition method and device based on an electric appliance, a storage medium and the electric appliance.
Background
With the development of the internet of things big data era, various entity economic products are in contact with the internet in succession, and the air conditioner products are also deeply ploughed for years under the big background of the internet in response to the coming of the internet era. Nowadays, many household air conditioning systems can accurately acquire local weather forecast data and push the data to users according to the weather forecast data, so that the air conditioner is more intelligent, energy-saving and humanized. The household air conditioner can easily acquire weather parameters by means of household WiFi. However, the air conditioner used in some specific scenes is not easy to obtain the weather parameters by means of WiFi, for example, since the commercial air conditioner is not in a WiFi environment for most of the time when operating, there is a certain difficulty in implementing the function. The current flow cost of the Internet of things is far higher than that of family WiFi (wireless fidelity), and the problem of how to reduce the device cost and the flow cost as far as possible under the condition of ensuring the reliability of weather data is to be solved urgently
Disclosure of Invention
The main purpose of the present invention is to overcome the defects of the prior art, and provide a method, an apparatus, a storage medium and an electrical appliance for acquiring weather parameters based on an electrical appliance, so as to solve the problem in the prior art that it is difficult to acquire weather parameters in a WiFi environment.
The invention provides a weather parameter obtaining method based on an electric appliance, which comprises the following steps: acquiring the Internet of things card information of the electric appliance; sending the information of the Internet of things card to a remote server to request the remote server to inquire weather parameters of the position of the electric appliance according to the information of the Internet of things card; receiving weather parameters of the position of the electrical appliance returned by the remote server; the remote server acquires the position information of the position of the electric appliance according to the Internet of things card information, and acquires the weather parameters of the position of the electric appliance from a weather server according to the position information; the weather parameters comprise: the weather parameter of the current time and the weather parameter predicted value of the future.
Optionally, the obtaining, by the remote server, the location information of the location of the electrical appliance according to the internet of things card information includes: and the remote server identifies the corresponding Internet of things operator according to the Internet of things card information so as to acquire the position information of the position of the electrical appliance through the information interface of the corresponding Internet of things operator.
Optionally, sending the internet of things card information to a remote server to request the remote server to query weather parameters of the location of the electrical appliance according to the internet of things card information, including: and sending the Internet of things card information to a remote server every preset time length so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information.
Optionally, the method further comprises: when a request for actively acquiring the weather parameters of the position sent by a controller of the electric appliance is received, returning the weather parameters of the position of the electric appliance at the time nearest to the request time to the controller of the electric appliance; or for the weather parameters which can not be calculated, returning the data of the time nearest to the request time, for the weather parameters which can be calculated, interpolating the weather parameters at the request time and the weather parameters at the future preset time according to the time difference between the request time and the time of obtaining the weather parameters last time to obtain the weather parameter values at the request time, and returning the weather parameter values to the controller of the electric appliance.
Optionally, the method further comprises: after the weather parameter of the position is requested, comparing the current environment parameter with the predicted value of the future weather parameter, determining a deviation coefficient according to the difference value between the current environment parameter and the predicted value of the future weather parameter and a preset weight coefficient, and determining to increase the frequency of requesting the weather parameter from the remote server and/or decrease the frequency of requesting the weather parameter from the remote server according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a skipping threshold.
In another aspect, the present invention provides an apparatus for acquiring weather parameters based on an electrical appliance, including: the acquisition unit is used for acquiring the Internet of things card information of the electric appliance; the request unit is used for sending the Internet of things card information to a remote server so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information; the first receiving unit is used for receiving the weather parameters of the position where the electric appliance is located, which are returned by the remote server; the remote server acquires the position information of the position of the electric appliance according to the Internet of things card information and acquires the weather parameters of the position of the electric appliance from a weather server according to the position information; the weather parameters comprise: the weather parameter of the current time and the weather parameter predicted value of the future.
Optionally, the obtaining, by the remote server, the location information of the location of the electrical appliance according to the internet of things card information includes: and the remote server identifies the corresponding Internet of things operator according to the Internet of things card information so as to acquire the position information of the position of the electrical appliance through the information interface of the corresponding Internet of things operator.
Optionally, the requesting unit sends the internet of things card information to a remote server to request the remote server to query weather parameters of the location of the electrical appliance according to the internet of things card information, and the requesting unit includes: and sending the Internet of things card information to a remote server every preset time length so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information.
Optionally, the method further comprises: the second receiving unit is used for receiving a request for actively acquiring the weather parameters of the position sent by the controller of the electric appliance; the return unit is used for returning the weather parameters of the position of the electric appliance at the time closest to the request time to the controller of the electric appliance when the second receiving unit receives the request of the electric appliance for actively acquiring the weather parameters of the position of the electric appliance; or for the weather parameters which can not be calculated, returning the data of the time nearest to the request time, for the weather parameters which can be calculated, interpolating the weather parameters at the request time and the weather parameters at the future preset time according to the time difference between the request time and the time of obtaining the weather parameters last time to obtain the weather parameter values at the request time, and returning the weather parameter values to the controller of the electric appliance.
Optionally, the method further comprises: the determining unit is used for comparing the current environment parameter with a future weather parameter predicted value after requesting the weather parameter of the position, determining a deviation coefficient according to the difference value between the current environment parameter and the future weather parameter predicted value and a preset weight coefficient, and determining to increase the frequency of requesting the weather parameter from the remote server and/or decrease the frequency of requesting the weather parameter from the remote server according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a preset skipping threshold.
A further aspect of the invention provides a storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of any of the methods described above.
Yet another aspect of the present invention provides an appliance comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods described above when executing the program.
The invention further provides an electric appliance, which comprises any one of the electric appliance-based weather parameter acquisition devices.
According to the technical scheme of the invention, the operator of the Internet of things card is identified through remote service, and the corresponding interface is used for realizing positioning, so that the flow cost can be saved, and the implementation process of the electric appliance side is simplified; according to the technical scheme of the invention, the weather request frequency can be dynamically adjusted by combining the local environment parameters and the acquired weather parameters, and the flow expenditure is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic method diagram of an embodiment of an appliance-based weather information acquisition method provided by the present invention;
FIG. 2 illustrates an interaction relationship for obtaining weather parameters according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a process for obtaining weather parameters according to an embodiment of the invention;
FIG. 4 shows a flow diagram for adaptively adjusting the frequency of a weather request;
fig. 5 is a block diagram of an embodiment of an apparatus for acquiring weather information based on an electrical appliance according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the related art, a technical scheme for feeding back weather parameters to an air conditioner in real time by using a Data Transmission Unit (DTU) based on a wireless Internet of things card exists. For example, real-time weather parameter feedback to an appliance (e.g., a commercial air conditioner) can be achieved based on the wireless internet of things card. However, the traffic cost of the internet of things is far higher than that of WiFi at home, and how to reduce the device cost and the traffic cost as much as possible under the condition of ensuring the reliable weather parameters is also an urgent problem to be solved.
As shown in fig. 2, taking an air conditioning unit as an example, the air conditioning wireless weather acquisition system includes two major parts, a local weather application system and a remote weather service system. The local weather application system comprises a weather service unit, an air conditioning unit and a related sensing control system thereof. Based on cost consideration, the weather service unit is not provided with a GPS positioning module, and the positioning adopts the base station positioning of the Internet of things. The air conditioning unit is provided with a sensor for acquiring external environment parameters in real time, for example, the sensor comprises a temperature sensor, a humidity sensor and/or a wind speed sensor, and can detect the ambient temperature, the humidity and/or the wind speed. The remote weather service system comprises a remote server communicated with a weather service unit, an Internet of things network card operator information interface and a weather service data interface, wherein the operator information interface is mainly used for acquiring the information of the Internet of things network card, and the weather service data interface is used for inquiring the latest weather parameters.
The invention provides a weather information acquisition method based on an electric appliance. The method may be implemented on an appliance. For example, may be implemented as a weather service unit on an appliance that may communicate with a controller of the appliance.
Fig. 1 is a method schematic diagram of an embodiment of an appliance-based weather information acquisition method provided by the present invention.
As shown in fig. 1, according to an embodiment of the present invention, the method for acquiring an appliance-based weather bearing parameter at least includes step S110, step S120, and step S130.
And step S110, acquiring the Internet of things card information of the electric appliance.
The internet of things card is similar to a mobile phone SIM card, is a special SIM card proposed by operators (such as mobile, Unicom and telecommunication companies) aiming at the industrial application field, and can carry out GPRS wireless data transmission through the internet of things card to realize remote control. The information of the internet of things card includes, for example: at least one of ICCID, IMEI and ISMI.
Step S120, the Internet of things card information is sent to a remote server so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information.
And step S130, receiving the weather parameters of the position of the electric appliance returned by the remote server.
Specifically, the information of the Internet of things card of the electric appliance is used as a parameter to be sent to a remote server, the server is requested to inquire weather parameters of the position of the electric appliance, the remote server obtains the position information of the position of the electric appliance according to the information of the Internet of things card, and obtains the weather parameters of the position of the electric appliance from the weather server according to the position information. More specifically, the remote server identifies a corresponding Internet of things operator according to the Internet of things card information, acquires position information of the position of the electrical appliance through an information interface of the corresponding Internet of things operator, acquires weather parameters of the position of the electrical appliance from a weather server according to the position information, and returns the weather parameters. And receiving the weather parameters of the position of the electric appliance returned by the remote server, so that the electric appliance can be controlled according to the weather parameters of the position. For example, the electric appliance is an air conditioner, and the operation of the air conditioner can be controlled according to weather parameters of the position.
The weather parameters specifically include: weather parameters at the current time and weather parameters in the future, for example, weather parameters every preset time in the future. For example, the weather parameters returned by the remote server include current real-time weather information and weather forecast information for each hour of the next several hours.
Optionally, the internet of things card information is sent to a remote server every preset time to request the remote server to query weather parameters of the position of the electrical appliance according to the internet of things card information. For example, to save traffic, weather parameters are requested at a certain frequency, for example, once in 1 hour.
Optionally, the appliance may actively obtain weather parameters of the location. For example, when the electric appliance needs to acquire the weather parameters, the electric appliance sends a request to the weather service unit to actively acquire the weather parameters of the position.
In a specific embodiment, when a request for actively acquiring the weather parameters of the position sent by the controller of the electric appliance is received, the weather parameters of the position of the electric appliance at the time closest to the request time are returned to the controller of the electric appliance. For example, the weather service unit has queried 13: 00. 14:00, 15: and 00, if the weather parameter of the position where the electric appliance requests at 13:08, returning to 13:00, and if the unit requests at 13:45, returning to 14: 00.
In another specific implementation, when a request sent by a controller of the electrical appliance to actively acquire weather parameters of a location is received, data of time nearest to the request time is returned for the weather parameters which cannot be calculated, and for the weather parameters which can be calculated, the weather parameters at the request time and the weather parameters at the third future preset time are interpolated according to the time difference between the request time and the time at which the weather parameters are acquired last time, so as to obtain the weather parameters at the request time.
Specifically, the weather parameter that cannot be calculated is a weather parameter that is not represented by a numerical value, such as a weather condition, and is generally represented by sunny, light rain, heavy rain, and the like. And returning the weather parameter value or the weather parameter predicted value of the time nearest to the request time for the weather parameter which cannot be calculated. That is, the weather parameter value or the weather parameter predicted value at the time closest to the current request time is returned. For example, 13: 00. 14:00, 15: the predicted value of the weather parameter of 00 hour is returned to 13:00 weather condition if the electric appliance (such as an air conditioning unit) requests the weather condition at 13:08, and is returned to 14:00 weather condition if the unit requests the weather condition at 13: 45.
For the calculable weather parameters, namely parameters which can be represented by numerical values, such as temperature, air pressure, humidity and the like, the weather parameters at the requested time are calculated by using an interpolation method and returned to the electric appliances (such as an air conditioning unit). According to the ratio (i.e. the time ratio) of the time difference between the request time and the time for obtaining the weather parameters last time (less than 1 hour) to the time interval for obtaining the weather parameters, the calculation method is as follows: time difference (unit min)/time interval for obtaining weather parameters (for example, 60min), if the unit requests weather conditions at 13:08, the last time base point is 13:00, the ratio is (13:08-13:00)/60 is 8/60, and the weather parameters at the requested time and the weather parameters at the future preset time (for example, 1 hour in the future) are interpolated according to a set interpolation method to obtain the weather parameters at the requested time.
Taking linear interpolation as an example, w represents weather parameters, t represents time, and wiWeather parameter value, w, representing the time of request1Weather parameter value, w, representing a preset time in the future (e.g. 1 hour in the future)0Representing the current weather parameter value, tiIndicates the time of request, t0Representing the last time the weather parameter was acquired, the weather parameter value for the requested time is available:
Figure BDA0003161000430000091
since the position of the operator needs to be determined before the weather parameter is acquired, in the related technology, the operator is requested to inquire the geographical position of the operator, and then the position information is used as the parameter and sent to the remote server to request the weather parameter from the remote server. This means that two data requests need to be made each time weather parameters are requested. According to the embodiment of the invention, two requests are simplified into one request, so that the flow cost can be saved.
Fig. 3 is a schematic flow chart of acquiring weather parameters according to an embodiment of the invention.
As shown in fig. 3, taking an air conditioner as an example, a weather service unit starts to work to acquire internet of things card information of the air conditioner, the weather service unit sends the internet of things card information as a parameter to a remote server and requests a weather parameter, the remote server receives the request and identifies a corresponding internet of things card operator according to the internet of things card information, acquires location information of the weather service unit by calling an operator information interface, calls a weather service data interface according to the location information to acquire the weather parameter, then returns the weather parameter to the weather service unit, the weather service unit forwards the weather parameter to an air conditioning unit, and the air conditioning unit processes related logic according to the weather parameter.
The weather parameters returned by the remote server comprise current weather information and weather parameters within a first preset time length in the future (such as weather forecast data within a plurality of hours). In order to save traffic, the weather service unit requests the weather parameters once every preset time according to a set frequency, for example, once every hour. Under the condition that the air conditioning unit actively requests weather parameters from the weather service unit, returning parameter values at the time close to the current request time for the non-calculable parameters; and for the calculable parameters, returning the weather parameters to the unit by using an interpolation method, and interpolating the weather parameters at the request time and the weather parameters at 1 hour (third preset time) in the future according to the set interpolation method according to the proportion of the time difference (less than 1 hour) between the request time and the time of obtaining the weather parameters at the last time to obtain the weather parameter values at the request time.
In order to further save flow and improve weather service accuracy, after a weather parameter of a position is requested, a comparison is carried out according to a current environment parameter and a future weather parameter predicted value, a deviation coefficient is determined according to a difference value between the current environment parameter and the future weather parameter predicted value and a preset weight coefficient, and according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a preset skipping threshold, the frequency of requesting the weather parameter from the remote server is determined to be increased and/or the frequency of requesting the weather parameter from the remote server is determined to be reduced.
The deviation coefficient represents the difference between the predicted value and the actual value, the larger the deviation coefficient is, the larger the difference between the predicted value and the actual value is, the more inaccurate the predicted result is, and otherwise, the more accurate the predicted result is. The frequency adding threshold value is that when the deviation coefficient is larger than a certain value, the result of the current cache prediction is deemed to be completely untrustworthy, and the weather parameter prediction value needs to be requested again. The skip threshold is a value below which the cached prediction result is deemed reliable and does not require data retrieval. The future weather parameter predicted value comprises a weather parameter of each preset time in the future.
When the deviation coefficient is larger than the preset frequency adding threshold value, adding a request before the next weather parameter request; and when the deviation coefficient is smaller than the preset skipping threshold value, reducing one request, and taking the weather parameter predicted value corresponding to the next weather parameter request time in the future weather parameter predicted values as the weather parameter of the next weather parameter request time.
Fig. 4 shows a flow chart for adaptively adjusting the frequency of a weather request. As shown in fig. 4, in order to further save traffic and improve the accuracy of weather service, after a weather parameter is requested, the parameter data of the current environment is compared with a future predicted value, and a deviation coefficient is calculated after synthesis according to a difference value, a weight coefficient and the like, for example, a skipping threshold value and a frequency-adding threshold value are recorded by a weather service unit, for 1 hour in the future, when the deviation coefficient is greater than the frequency-adding threshold value, it indicates that the weather changes violently within 1 hour in the future, and in order to improve the weather response accuracy, a weather request needs to be added; when the deviation coefficient is less than or equal to the frequency-adding threshold and greater than or equal to the skipping threshold, according to the normal frequency request, when the deviation coefficient is less than the skipping threshold, it indicates that the weather change is not obvious, in order to save traffic, one weather request can be reduced, the weather parameter predicted value in the future of 1 hour is directly used as the weather parameter current value in the next request time, and then the deviation coefficients in the future of 2 hours and 3 hours are continuously calculated, so that the deviation coefficients in the future of 2 hours and 3 hours can be continuously compared, which can be specifically shown in fig. 4. To ensure the accuracy of the weather service, it may be set to reduce the number of weather requests, for example, at most 3 weather parameter requests may be skipped.
The deviation factor is calculated based on at least one weather parameter. Optionally, the at least one weather parameter comprises: at least one of ambient temperature, humidity, barometric pressure, and wind speed.
For example, to facilitate the deep understanding of the deviation coefficient, the four parameters of the ambient temperature, the humidity, the air pressure and the wind speed are simplified, and the calculation method is as follows:
Figure BDA0003161000430000111
where θ is a deviation coefficient, Δ T represents a temperature difference, CTRepresenting the temperature accuracy range constant, ωTRepresenting the weight corresponding to the temperature; Δ H represents the humidity difference, CHRepresenting the humidity accuracy range constant, ωHRepresenting the weight corresponding to the temperature; Δ P represents a pressure difference, CPRepresenting the constant, ω, of the accuracy range of the air pressurePRepresenting the weight corresponding to the air pressure; Δ W represents the wind speed difference, CWRepresenting wind speed accuracy range constant, ωWRepresenting the weight corresponding to the wind speed.
Assuming that the skip threshold is 10 and the addition threshold is 100, if the value of the deviation coefficient from the future 1 hour is calculated to be 200 at a time, 200>100, this time indicates that a weather request needs to be added in the half hour in the future; if the deviation coefficient values calculated at a certain time and 1 hour, 2 hours and 3 hours in the future are 5,6 and 12 respectively, it can be known from fig. 3 that 2 weather requests can be skipped, and the next weather parameter will be requested after three hours.
The invention also provides a weather information acquisition device based on the electric appliance. The device may be implemented on an appliance. For example, may be implemented as a weather service unit on an appliance that may communicate with a controller of the appliance.
Fig. 5 is a block diagram of an embodiment of an apparatus for acquiring weather information based on an electrical appliance according to the present invention. As shown in fig. 5, the appliance-based weather information acquiring apparatus 100 includes an acquiring unit 110, a requesting unit 120, and a first receiving unit 130.
The obtaining unit 110 is configured to obtain internet of things card information of the electrical appliance.
The internet of things card is similar to a mobile phone SIM card, is a special SIM card proposed by operators (such as mobile, Unicom and telecommunication companies) aiming at the industrial application field, and can carry out GPRS wireless data transmission through the internet of things card to realize remote control. The information of the internet of things card includes, for example: at least one of ICCID, IMEI and ISMI.
The request unit 120 is configured to send the internet of things card information to a remote server, so as to request the remote server to query weather parameters of the location of the electrical appliance according to the internet of things card information. The first receiving unit 130 is configured to receive the weather parameter of the location where the electrical appliance is located, which is returned by the remote server.
Specifically, the information of the Internet of things card of the electric appliance is used as a parameter to be sent to a remote server, the server is requested to inquire weather parameters of the position of the electric appliance, the remote server obtains the position information of the position of the electric appliance according to the information of the Internet of things card, and obtains the weather parameters of the position of the electric appliance from the weather server according to the position information. More specifically, the remote server identifies a corresponding Internet of things operator according to the Internet of things card information, acquires position information of the position of the electrical appliance through an information interface of the corresponding Internet of things operator, acquires weather parameters of the position of the electrical appliance from a weather server according to the position information, and returns the weather parameters. And receiving the weather parameters of the position of the electric appliance returned by the remote server, so that the electric appliance can be controlled according to the weather parameters of the position. For example, the electric appliance is an air conditioner, and the operation of the air conditioner can be controlled according to weather parameters of the position.
The weather parameters specifically include: weather parameters at the current time and weather parameters in the future, for example, weather parameters every preset time in the future. For example, the weather parameters returned by the remote server include current real-time weather information and weather forecast information for each hour of the next several hours.
Optionally, the requesting unit 120 sends the internet of things card information to a remote server every preset time interval, so as to request the remote server to query weather parameters of the location of the electrical appliance according to the internet of things card information. For example, to save traffic, weather parameters are requested at a certain frequency, for example, once in 1 hour.
Optionally, the appliance may actively obtain weather parameters of the location. For example, when the electric appliance needs to acquire the weather parameters, the electric appliance sends a request to the weather service unit to actively acquire the weather parameters of the position.
Optionally, the apparatus 100 further comprises a second receiving unit and a returning unit (not shown). The second receiving unit is used for receiving a request that the electrical appliance actively acquires the weather parameters of the position; the return unit is used for returning the weather parameters of the position of the electric appliance at the time closest to the request time to the electric appliance when the second receiving unit receives the request of the electric appliance for actively acquiring the weather parameters of the position of the electric appliance; or for the weather parameters which can not be calculated, returning the data of the time nearest to the request time, for the weather parameters which can be calculated, interpolating the weather parameters at the request time and the weather parameters at the future preset time according to the time difference between the request time and the time of obtaining the weather parameters last time to obtain the weather parameter values at the request time, and returning the weather parameter values to the electric appliance.
In a specific embodiment, when the second receiving unit receives a request for actively acquiring the weather parameter of the location sent by the controller of the electrical appliance, the returning unit returns the weather parameter of the location of the electrical appliance at the time closest to the request time to the controller of the electrical appliance. For example, the weather service unit has queried 13: 00. 14:00, 15: and 00, if the weather parameter of the position where the electric appliance requests at 13:08, returning to 13:00, and if the unit requests at 13:45, returning to 14: 00.
In another specific embodiment, when the second receiving unit receives a request for actively acquiring the weather parameter of the location sent by the controller of the electrical appliance, the returning unit returns data of the time nearest to the request time for the weather parameter that cannot be calculated, and interpolates the weather parameter of the request time and the weather parameter of the third preset time in the future according to the time difference between the request time and the time for acquiring the weather parameter last time for the weather parameter that can be calculated, so as to obtain the weather parameter of the request time.
Specifically, the weather parameter that cannot be calculated is a weather parameter that is not represented by a numerical value, such as a weather condition, and is generally represented by sunny, light rain, heavy rain, and the like. And returning the weather parameter value or the weather parameter predicted value of the time nearest to the request time for the weather parameter which cannot be calculated. That is, the weather parameter value or the weather parameter predicted value at the time closest to the current request time is returned. For example, 13: 00. 14:00, 15: the predicted value of the weather parameter of 00 hour is returned to 13:00 weather condition if the electric appliance (such as an air conditioning unit) requests the weather condition at 13:08, and is returned to 14:00 weather condition if the unit requests the weather condition at 13: 45.
For the calculable weather parameters, namely parameters which can be represented by numerical values, such as temperature, air pressure, humidity and the like, the weather parameters at the requested time are calculated by using an interpolation method and returned to the electric appliances (such as an air conditioning unit). According to the ratio (i.e. the time ratio) of the time difference between the request time and the time for obtaining the weather parameters last time (less than 1 hour) to the time interval for obtaining the weather parameters, the calculation method is that the time difference (unit min)/the time interval for obtaining the weather parameters (e.g. 60min), if the unit requests the weather conditions at 13:08, the last time base point is 13:00, the ratio is (13:08-13:00)/60 is 8/60), and the weather parameters at the request time and the weather parameters at the preset time in the future (e.g. 1 hour in the future) are interpolated according to the set interpolation method to obtain the weather parameters at the request time.
Taking linear interpolation as an example, w represents a weather parameter, t represents time, wi represents a weather parameter value of a requested time, w1Weather parameter value, w, representing a preset time in the future (e.g. 1 hour in the future)0Representing the current weather parameter value, tiIndicates the time of request, t0Representing the last time the weather parameter was acquired, the weather parameter value for the requested time is available:
Figure BDA0003161000430000141
since the position of the operator needs to be determined before the weather parameter is acquired, in the related technology, the operator is requested to inquire the geographical position of the operator, and then the position information is used as the parameter and sent to the remote server to request the weather parameter from the remote server. This means that two data requests need to be made each time weather parameters are requested. According to the embodiment of the invention, two requests are simplified into one request, so that the flow cost can be saved.
Optionally, the apparatus 100 further comprises a determining unit (not shown). The determining unit is used for comparing the current environment parameter with a future weather parameter predicted value after requesting the weather parameter of the position, determining a deviation coefficient according to the difference value between the current environment parameter and the future weather parameter predicted value and a preset weight coefficient, and determining to increase the frequency of requesting the weather parameter from the remote server and/or decrease the frequency of requesting the weather parameter from the remote server according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a preset skipping threshold.
The deviation coefficient represents the difference between the predicted value and the actual value, the larger the deviation coefficient is, the larger the difference between the predicted value and the actual value is, the more inaccurate the predicted result is, and otherwise, the more accurate the predicted result is. The frequency adding threshold value is that when the deviation coefficient is larger than a certain value, the result of the current cache prediction is deemed to be completely untrustworthy, and the weather parameter prediction value needs to be requested again. The skip threshold is a value below which the cached prediction result is deemed reliable and does not require data retrieval. The future weather parameter predicted value comprises a weather parameter of each preset time in the future.
When the deviation coefficient is larger than the preset frequency adding threshold value, adding a request before the next weather parameter request; and when the deviation coefficient is smaller than the preset skipping threshold value, reducing one request, and taking the weather parameter predicted value corresponding to the next weather parameter request time in the future weather parameter predicted values as the weather parameter of the next weather parameter request time.
The deviation factor is calculated based on at least one weather parameter. Optionally, the at least one weather parameter comprises: at least one of ambient temperature, humidity, barometric pressure, and wind speed.
For example, to facilitate the deep understanding of the deviation coefficient, the four parameters of the ambient temperature, the humidity, the air pressure and the wind speed are simplified, and the calculation method is as follows:
Figure BDA0003161000430000161
where θ is a deviation coefficient, Δ T represents a temperature difference, CTRepresenting the temperature accuracy range constant, ωTRepresenting the weight corresponding to the temperature; Δ H represents the humidity difference, CHRepresenting the humidity accuracy range constant, ωHRepresenting the weight corresponding to the temperature; Δ P represents a pressure difference, CPRepresenting the constant, ω, of the accuracy range of the air pressurePRepresenting the weight corresponding to the air pressure; Δ W represents the wind speed difference, CWRepresenting wind speed accuracy range constant, ωWRepresenting the weight corresponding to the wind speed.
Assuming that the skip threshold is 10 and the addition threshold is 100, if the value of the deviation coefficient from the future 1 hour is calculated to be 200 at a time, 200>100, this time indicates that a weather request needs to be added in the half hour in the future; if the deviation coefficient values calculated at a certain time and 1 hour, 2 hours and 3 hours in the future are 5,6 and 12 respectively, it can be known from fig. 3 that 2 weather requests can be skipped, and the next weather parameter will be requested after three hours.
The invention also provides a storage medium corresponding to the electric appliance-based weather parameter acquisition method, wherein a computer program is stored on the storage medium, and the computer program is used for realizing the steps of any one of the methods when being executed by a processor.
The invention also provides an electric appliance corresponding to the electric appliance-based weather parameter acquisition method, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of any one of the methods when executing the program.
The invention also provides an electric appliance corresponding to the electric appliance-based weather parameter acquisition device, which comprises any one of the electric appliance-based weather parameter acquisition devices.
Therefore, according to the scheme provided by the invention, the operator of the Internet of things card is identified through remote service, and the positioning is realized by using the corresponding interface, so that the flow cost can be saved, and the implementation process of the electric appliance side is simplified; according to the technical scheme of the invention, the weather request frequency can be dynamically adjusted by combining the local environment parameters and the acquired weather parameters, and the flow expenditure is reduced.
The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Other examples and implementations are within the scope and spirit of the invention and the following claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hardwired, or a combination of any of these. In addition, each functional unit may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and the parts serving as the control device may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only an example of the present invention, and is not intended to limit the present invention, and it is obvious to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (12)

1. A weather parameter acquisition method based on an electric appliance is characterized by comprising the following steps:
acquiring the Internet of things card information of the electric appliance;
sending the information of the Internet of things card to a remote server to request the remote server to inquire weather parameters of the position of the electric appliance according to the information of the Internet of things card;
receiving weather parameters of the position of the electrical appliance returned by the remote server;
the remote server acquires the position information of the position of the electric appliance according to the Internet of things card information and acquires the weather parameters of the position of the electric appliance from a weather server according to the position information.
2. The method according to claim 1, wherein the obtaining, by the remote server, the location information of the location of the appliance according to the internet of things card information comprises:
and the remote server identifies the corresponding Internet of things operator according to the Internet of things card information so as to acquire the position information of the position of the electrical appliance through the information interface of the corresponding Internet of things operator.
3. The method according to claim 1 or 2, wherein the sending the internet of things card information to a remote server to request the remote server to query weather parameters of the position of the electric appliance according to the internet of things card information comprises:
and sending the Internet of things card information to a remote server every preset time length so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information.
4. The method according to any one of claims 1-3, further comprising:
when a request for actively acquiring the weather parameters of the position sent by a controller of the electric appliance is received, returning the weather parameters of the position of the electric appliance at the time nearest to the request time to the controller of the electric appliance; alternatively, the first and second electrodes may be,
and returning data of the time nearest to the request time for the weather parameters which cannot be calculated, interpolating the weather parameters at the request time and the weather parameters at the future preset time for the weather parameters which can be calculated according to the time difference between the request time and the time of obtaining the weather parameters last time to obtain the weather parameter values at the request time, and returning the weather parameter values to the controller of the electric appliance.
5. The method according to any one of claims 1-4, further comprising:
after the weather parameter of the position is requested, comparing the current environment parameter with the predicted value of the future weather parameter, determining a deviation coefficient according to the difference value between the current environment parameter and the predicted value of the future weather parameter and a preset weight coefficient, and determining to increase the frequency of requesting the weather parameter from the remote server and/or decrease the frequency of requesting the weather parameter from the remote server according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a skipping threshold.
6. An electrical appliance-based weather parameter acquisition device, comprising:
the acquisition unit is used for acquiring the Internet of things card information of the electric appliance;
the request unit is used for sending the Internet of things card information to a remote server so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information;
the first receiving unit is used for receiving the weather parameters of the position where the electric appliance is located, which are returned by the remote server;
the remote server acquires the position information of the position of the electric appliance according to the Internet of things card information and acquires the weather parameters of the position of the electric appliance from a weather server according to the position information.
7. The apparatus according to claim 6, wherein the remote server obtains the location information of the location of the electrical appliance according to the internet of things card information, and the method comprises:
and the remote server identifies the corresponding Internet of things operator according to the Internet of things card information so as to acquire the position information of the position of the electrical appliance through the information interface of the corresponding Internet of things operator.
8. The apparatus according to claim 6 or 7, wherein the requesting unit sends the internet of things card information to a remote server to request the remote server to query weather parameters of the location of the electrical appliance according to the internet of things card information, and includes:
and sending the Internet of things card information to a remote server every preset time length so as to request the remote server to inquire weather parameters of the position of the electric appliance according to the Internet of things card information.
9. The apparatus of any of claims 6-8, further comprising:
the second receiving unit is used for receiving a request for actively acquiring the weather parameters of the position sent by the controller of the electric appliance;
the return unit is used for returning the weather parameters of the position of the electric appliance at the time closest to the request time to the controller of the electric appliance when the second receiving unit receives the request of the electric appliance for actively acquiring the weather parameters of the position of the electric appliance; or for the weather parameters which can not be calculated, returning the data of the time nearest to the request time, for the weather parameters which can be calculated, interpolating the weather parameters at the request time and the weather parameters at the future preset time according to the time difference between the request time and the time of obtaining the weather parameters last time to obtain the weather parameter values at the request time, and returning the weather parameter values to the controller of the electric appliance.
10. The apparatus of any one of claims 6-9, further comprising:
the determining unit is used for comparing the current environment parameter with a future weather parameter predicted value after requesting the weather parameter of the position, determining a deviation coefficient according to the difference value between the current environment parameter and the future weather parameter predicted value and a preset weight coefficient, and determining to increase the frequency of requesting the weather parameter from the remote server and/or decrease the frequency of requesting the weather parameter from the remote server according to the magnitude relation between the deviation coefficient and a preset frequency adding threshold or a preset skipping threshold.
11. A storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
12. An appliance comprising a processor, a memory, and a computer program stored on the memory and operable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program or comprising the appliance-based weather parameter acquisition apparatus of any one of claims 6 to 10.
CN202110791185.2A 2021-07-13 2021-07-13 Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance Active CN113483452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110791185.2A CN113483452B (en) 2021-07-13 2021-07-13 Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110791185.2A CN113483452B (en) 2021-07-13 2021-07-13 Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance

Publications (2)

Publication Number Publication Date
CN113483452A true CN113483452A (en) 2021-10-08
CN113483452B CN113483452B (en) 2022-03-08

Family

ID=77938564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110791185.2A Active CN113483452B (en) 2021-07-13 2021-07-13 Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance

Country Status (1)

Country Link
CN (1) CN113483452B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002245102A (en) * 2001-02-14 2002-08-30 Matsushita Electric Works Ltd Method and system for controlling building environment
CN101093468A (en) * 2006-06-19 2007-12-26 上海新纳广告传媒有限公司 Method for automatic timed updating data of weather forecast at terminal
CN101841895A (en) * 2010-03-11 2010-09-22 华为终端有限公司 Method and device for carrying out data transmission on terminal services
CN104596035A (en) * 2015-01-06 2015-05-06 广东美的制冷设备有限公司 Air conditioner controller matching method and system as well as mobile terminal based on geographical position
CN106091248A (en) * 2016-06-13 2016-11-09 珠海格力电器股份有限公司 Cooler compressor electric heating controlling method and device
CN106209981A (en) * 2016-06-23 2016-12-07 珠海格力电器股份有限公司 Hot water machine and the method obtaining Weather information, device and system
US20180224148A1 (en) * 2017-02-03 2018-08-09 Lg Electronics Inc. Air-conditioner system and control method
US20200217540A1 (en) * 2017-09-30 2020-07-09 Gd Midea Air-Conditioning Equipment Co., Ltd. Method for controlling an air conditioner, electronic device, and computer-readable storage medium
CN111651495A (en) * 2020-04-13 2020-09-11 珠海格力电器股份有限公司 Air conditioner data processing method, device and system, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002245102A (en) * 2001-02-14 2002-08-30 Matsushita Electric Works Ltd Method and system for controlling building environment
CN101093468A (en) * 2006-06-19 2007-12-26 上海新纳广告传媒有限公司 Method for automatic timed updating data of weather forecast at terminal
CN101841895A (en) * 2010-03-11 2010-09-22 华为终端有限公司 Method and device for carrying out data transmission on terminal services
CN104596035A (en) * 2015-01-06 2015-05-06 广东美的制冷设备有限公司 Air conditioner controller matching method and system as well as mobile terminal based on geographical position
CN106091248A (en) * 2016-06-13 2016-11-09 珠海格力电器股份有限公司 Cooler compressor electric heating controlling method and device
CN106209981A (en) * 2016-06-23 2016-12-07 珠海格力电器股份有限公司 Hot water machine and the method obtaining Weather information, device and system
US20180224148A1 (en) * 2017-02-03 2018-08-09 Lg Electronics Inc. Air-conditioner system and control method
US20200217540A1 (en) * 2017-09-30 2020-07-09 Gd Midea Air-Conditioning Equipment Co., Ltd. Method for controlling an air conditioner, electronic device, and computer-readable storage medium
CN111651495A (en) * 2020-04-13 2020-09-11 珠海格力电器股份有限公司 Air conditioner data processing method, device and system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113483452B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
US7917157B2 (en) Location services for mobile communication system
CN107726548B (en) Air conditioner control method, electronic device, and computer-readable storage medium
US7818016B2 (en) Method and system for providing a location-based alert service in wireless communication environment
CN1217202C (en) Method and apparatus for transfering location estimates from first transceiver to second transceiver
KR102066308B1 (en) Determining availability of an access network
KR102415859B1 (en) Method for estimating location, electronic apparatus and server
EP1473959A1 (en) Efficient tracking method for location determination of mobile units
EP3308559B1 (en) Method and system for determining a positioning interval of a mobile terminal
CN106850857B (en) Personalized service pushing method and system based on user information
CN102187693B (en) Method for conditional location retrieval
US9615211B2 (en) Server for home appliance network system
CN103052152A (en) Method and device for positioning mobile terminal and mobile terminal
CN103517405A (en) Network positioning method and system, mobile terminal and network-side apparatus
JP5953990B2 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL SYSTEM, AND COMMUNICATION CONTROL METHOD
CN106546252B (en) Navigation method and device
CN113483452B (en) Weather parameter acquisition method and device based on electric appliance, storage medium and electric appliance
US9020524B2 (en) Information processing apparatus, information management server, information processing method, information management method, program, and information processing system
WO2010097587A1 (en) Access point availability estimation
CN105682031A (en) Method and device for automatically switching network positioning services
CN105657178A (en) Method and mobile terminal for displaying weather information
CN116600347A (en) Edge calculation dynamic adjustment and unloading method based on path prediction
GB2405556A (en) Performance enhancement in a portable communication device
CN115269050A (en) Multi-map calling method and device, storage medium and computer equipment
CN107872785B (en) Terminal attachment method and system, and mobility management entity
CN112423227B (en) Intelligent power saving method and system for 5G terminal, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant