A weather reminding method based on a smart door lock and related equipment
By detecting the state of the smart lock's bolt to determine user behavior and using pre-stored weather forecast information for voice broadcasting, the problem of not being able to obtain weather information when the wireless network is disconnected is solved, ensuring that users can obtain weather information in a timely manner when leaving home, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN KAADAS INTELLIGENT TECH CO LTD
- Filing Date
- 2023-11-01
- Publication Date
- 2026-05-12
AI Technical Summary
Existing smart door locks cannot obtain and broadcast weather information when the wireless network is disconnected, causing users to be unable to obtain weather information in a timely manner.
By detecting the state of the latch, user behavior is determined, and pre-stored weather forecast information is used for voice broadcasting, including both long and short connection network modes, to ensure that weather information can still be obtained and broadcast when the wireless network is disconnected.
It enables accurate acquisition and broadcasting of weather information even when the wireless network is disconnected, reducing reliance on the wireless network and improving the convenience and user experience of obtaining weather forecasts.
Smart Images

Figure CN117489211B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a weather reminder method, system, smart lock, and computer-readable storage medium based on a smart door lock. Background Technology
[0002] With the development of technology, more and more smart home products have emerged. In daily life, people often encounter situations such as forgetting to bring an umbrella and having to turn back home, forgetting to close windows and letting rain drip into the room, and forgetting to bring in clothes drying outdoors and getting them wet. As smart door lock products are widely used in daily life, smart door locks can remind people of the weather conditions when they leave home, allowing them to bring rain gear, close windows, and bring in clothes in a timely manner according to the weather.
[0003] However, current smart locks obtain weather information by connecting to a server via a wireless network. When there is no wireless network, the smart lock cannot obtain weather information in a timely manner, nor can it broadcast the weather information to the user in a timely manner.
[0004] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0005] The main objective of this invention is to provide a weather reminder method, system, smart lock, and computer-readable storage medium based on a smart lock, aiming to solve the problem in the prior art where the smart lock cannot obtain weather information and broadcast weather information to the user when the wireless network connection is disconnected, resulting in the user not being able to obtain weather information in a timely manner when leaving home.
[0006] To achieve the above objectives, the present invention provides a weather reminder method based on a smart door lock, the method comprising the following steps:
[0007] When a change in the latch state is detected, user behavior information is determined;
[0008] If the user's behavior information indicates that they have gone out, retrieve the pre-stored weather forecast information according to the preset network connection method;
[0009] Obtain the current date and provide a voice broadcast based on the current date and the weather forecast information.
[0010] Optionally, in the aforementioned weather reminder method based on smart door locks, the weather forecast information includes the specific content of the weather forecast for the current day and for a preset number of days after the current day.
[0011] Optionally, the weather reminder method based on smart door locks, wherein determining user behavior information when a change in the lock tongue state is detected, specifically includes:
[0012] When a change in the latch state is detected, electronic logic feedback is obtained;
[0013] If the electronic logic feedback indicates internal unlocking, then the user's behavior information is determined to be exiting the premises.
[0014] If the electronic logic feedback indicates external unlocking, then the user's behavior information is determined to be returning home.
[0015] Optionally, the weather reminder method based on smart door locks, wherein determining the user's behavior information when a change in the lock tongue state is detected, further includes:
[0016] The operating status of the wireless network is determined based on the first preset interval;
[0017] If the operating state is a no-network state, a weather forecast acquisition request is sent to the pre-bound mobile device, and the weather forecast information sent by the mobile device is received, wherein the weather forecast information is obtained by the mobile device on a preset cloud server;
[0018] If the operating status is a normal network status, a weather forecast retrieval request is sent to the cloud server, and the weather forecast information returned by the cloud server is received.
[0019] The acquired weather forecast information is stored in a way that overwrites the stored outdated weather forecast information.
[0020] Optionally, in the aforementioned weather alert method based on smart door locks, the network connection method includes a long-connection network connection method and a short-connection network connection method;
[0021] If the user's behavior information indicates that they are going out, the system retrieves pre-stored weather forecast information according to a preset network connection method, specifically including:
[0022] When the user's behavior information indicates that they have left home, obtain the preset network connection method;
[0023] If the network connection method is a long-connection network connection method, then the pre-stored weather forecast information is directly obtained;
[0024] If the network connection method is a short connection network connection method, then obtain the update time of the pre-stored weather forecast information;
[0025] If the difference between the update time and the current time is greater than the second preset interval, a weather forecast information update request is sent to the mobile device or the cloud server.
[0026] If no weather forecast update is received from the mobile device or the cloud server within the third preset interval, the pre-stored weather forecast information is retrieved.
[0027] Optionally, the weather reminder method based on a smart door lock, wherein obtaining the current date and performing voice broadcast based on the current date and the weather forecast information specifically includes:
[0028] Obtain the current date when the user leaves home, and select the corresponding weather forecast details from the weather forecast information based on the current date;
[0029] The weather forecast will be read aloud based on its specific content.
[0030] Optionally, the weather alert method based on a smart door lock further includes:
[0031] The system receives a custom voice package sent by a cloud server. The custom voice package is configured by the user through a pre-bound mobile device, and the configuration information is synchronized to the cloud server. The cloud server selects the appropriate voice package based on the configuration information.
[0032] The weather forecast information is broadcast via voice according to the custom voice package.
[0033] Furthermore, to achieve the above objectives, the present invention also provides a weather alert system based on a smart door lock, wherein the weather alert system based on the smart door lock includes:
[0034] The behavior determination module is used to determine the user's behavior information when a change in the lock tongue state is detected.
[0035] The forecast acquisition module is used to obtain pre-stored weather forecast information according to the preset network connection method if the user's behavior information is "going out".
[0036] The voice broadcast module is used to obtain the current date and perform voice broadcast based on the current date and the weather forecast information.
[0037] In addition, to achieve the above objectives, the present invention also provides a smart door lock, wherein the smart door lock includes: a memory, a processor, and a weather reminder program based on the smart door lock stored in the memory and executable on the processor, wherein when the weather reminder program based on the smart door lock is executed by the processor, it implements the steps of the weather reminder method based on the smart door lock as described above.
[0038] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a weather reminder program based on a smart lock, and when the weather reminder program based on the smart lock is executed by a processor, it implements the steps of the weather reminder method based on the smart lock as described above.
[0039] In this invention, when a change in the latch state is detected, the user's behavior information is determined. If the user's behavior information indicates leaving home, pre-stored weather forecast information is obtained according to a preset network connection method. The current date is obtained, and a voice broadcast is performed based on the current date and the weather forecast information. This invention determines the user's behavior information by checking the latch state and then performs a voice broadcast based on that behavior information, thereby achieving accurate door opening detection and improving the practicality of weather broadcasts. Furthermore, by pre-stored weather forecast information in the smart lock, the voice broadcast is performed based on the stored weather forecast information when the user opens the door, solving the problem of weather forecast broadcasts not being possible when the wireless network is disconnected. This reduces reliance on wireless networks, allowing users to obtain the corresponding weather forecast information every time they leave home, enabling them to make appropriate arrangements and preparations. This improves the convenience of obtaining weather forecast information and enhances the user experience. Attached Figure Description
[0040] Figure 1 This is a flowchart of a preferred embodiment of the weather reminder method based on a smart door lock according to the present invention;
[0041] Figure 2 This is a schematic diagram showing the connection of each device in a preferred embodiment of the weather reminder method based on smart door locks of the present invention;
[0042] Figure 3 This is a schematic diagram illustrating the principle of a preferred embodiment of the weather reminder system based on a smart door lock according to the present invention;
[0043] Figure 4 A schematic diagram of the operating environment of a preferred embodiment of the smart door lock of the present invention. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0045] The weather reminder method based on smart door locks described in the preferred embodiment of the present invention, such as... Figure 1 As shown and Figure 2As shown, the smart lock includes an electronic lock body, a communication module such as WIFI / Bluetooth, a voice module, and a storage module. The smart lock, cloud server, and mobile terminal can communicate with each other. The weather reminder method based on the smart lock includes the following steps:
[0046] Step S10: When a change in the lock tongue state is detected, determine the user's behavior information.
[0047] Specifically, when a smart lock detects a change in the state of the electronic lock's bolt, it needs to determine the user's behavior information. This is because a change in the bolt state corresponds to opening and closing the door. Opening the door is further divided into internal unlocking and external unlocking. Internal unlocking corresponds to the user preparing to leave, while external unlocking corresponds to the user opening the door to return home. Therefore, it is necessary to determine the user's specific behavior information so that the smart lock can subsequently determine whether to broadcast weather forecast information to the user.
[0048] Furthermore, the step of determining user behavior information when a change in the latch state is detected specifically includes:
[0049] When a change in the lock tongue state is detected, electronic logic feedback is obtained; if the electronic logic feedback indicates internal unlocking, the user's behavior is determined to be leaving the house; if the electronic logic feedback indicates external unlocking, the user's behavior is determined to be returning home.
[0050] Specifically, when the smart lock detects a change in the bolt state of the electronic lock body, it acquires electronic logic feedback. This feedback determines whether the smart lock is unlocked from the inside or the outside. This feedback can be generated based on the user's unlocking method. For example, if the user unlocks the door using an external button (such as a fingerprint or password lock), external unlocking feedback is generated. If the user unlocks the door mechanically using an internal mechanism (such as a handle or knob, achieved via a Hall sensor), internal unlocking feedback is generated. This feedback can be generated by technicians through button configuration on the smart lock. If the smart lock receives internal unlocking feedback, it determines the user is leaving the house, and a weather forecast announcement is required. If the smart lock receives external unlocking feedback, it determines the user is returning home, and a weather forecast announcement is not required. This application determines whether a weather forecast should be broadcast to the user by judging whether the smart lock is unlocked from the inside or the outside. This makes the weather forecast broadcast more accurate and avoids the smart lock broadcasting the weather forecast when the user returns home, thus improving the intelligence of the voice broadcast and enhancing the user experience.
[0051] Furthermore, the step of determining user behavior information when a change in the latch state is detected includes, prior to:
[0052] The operating status of the wireless network is determined according to a first preset interval; if the operating status is no network, a weather forecast acquisition request is sent to the pre-bound mobile device, and the weather forecast information sent by the mobile device is received, wherein the weather forecast information is obtained by the mobile device from a preset cloud server; if the operating status is normal network, a weather forecast acquisition request is sent to the cloud server, and the weather forecast information returned by the cloud server is received; the acquired weather forecast information is stored in a way that overwrites the stored outdated weather forecast information.
[0053] Specifically, before the smart lock can broadcast weather forecast information to the user via voice, the weather forecast information needs to be stored in the smart lock's storage module. In a preferred embodiment of this application, the smart lock can either connect to a preset cloud server via a wireless network to directly obtain weather forecast information from the cloud server, or obtain the corresponding weather forecast information through a mobile device pre-bound to the smart lock. Therefore, the smart lock needs to determine the operating status of the wireless network first.
[0054] In a preferred embodiment of this application, the smart lock first determines the operating status of the wireless network (WIFI) based on a first preset interval (e.g., 1 hour, 2 hours, the specific time can be set by the user as needed). If the wireless network is in a no-network state, the smart lock can communicate with a mobile device pre-bound to the smart lock via its Bluetooth (or Zigbee) communication module (the communication protocol can be Bluetooth or Zigbee, etc., near-field communication protocols, which are not limited in this application and can be selected according to the actual situation), and send a weather forecast request to the mobile device. After receiving the weather forecast request, the mobile device connects to the cloud server through the corresponding smart lock application (hereinafter referred to as APP). Then, the cloud server obtains the weather forecast information through the public weather interface and returns the weather forecast information to the APP. After obtaining the weather forecast information, the APP synchronizes the weather forecast information to the smart lock through the near-field communication protocol. It should be noted that, in addition to updating the weather forecast information via the APP at the first preset interval, the smart door lock can also update the weather forecast information automatically when the user logs into the APP, or the user can actively update the weather forecast information by clicking the preset weather forecast information update button.
[0055] If the smart lock determines that the wireless network is functioning normally, then the connection between the smart lock and the cloud server is uninterrupted. Therefore, the smart lock can directly send a weather forecast request to the cloud server. The cloud server then retrieves the corresponding weather forecast information from the public weather interface through the request and directly returns the weather forecast information to the smart lock. This invention can select the update method for the weather forecast information in the smart lock based on the wireless network's operating status, making the weather forecast information acquisition method more robust. This ensures that the smart lock can successfully complete the weather forecast information update, guaranteeing the timeliness of the weather forecast information and ensuring that users receive the latest weather forecast information, thus improving the user experience.
[0056] It should be noted that, in a preferred embodiment of this application, the weather forecast information obtained by the cloud server includes the specific content of the weather forecast for the day of storage (i.e., the day the weather forecast information is obtained) and for a preset number of days after the day of storage. For example, if the date of storage of the weather forecast information is October 1st, and the preset number of days is set to 7 days, then the stored weather forecast information is for seven days from October 1st to October 7th. Furthermore, the specific content of the weather forecast includes information such as date, temperature, humidity, weather, wind speed, air quality, update time, and timestamp. This allows the cloud server to provide users with voice broadcasts of weather forecast information even when there is no wireless network, thus improving the reliability of the weather forecast.
[0057] After the smart lock obtains weather forecast information, it stores the information in its internal storage module. During storage, a check is performed because the acquired weather forecast includes an update time. This time is compared to the update time of the weather forecast already stored in the module. If the update time of the newly acquired weather forecast is earlier than or the same as the service weather update time of the weather forecast in the storage module, it is not updated. If the update time of the newly acquired weather forecast is later than the service weather update time of the weather forecast in the storage module, it is determined that the weather forecast in the storage module is outdated. The newly acquired weather forecast is then stored by overwriting the existing information, retaining only the weather forecast with the latest service weather update time.
[0058] Furthermore, during the network configuration between the smart lock and the cloud server, the cloud server obtains the IP address of the smart lock when establishing the connection and queries the city information corresponding to the smart lock's IP address through a public IP query interface. Then, when the smart lock / APP obtains the corresponding weather forecast information through the cloud server, the cloud server directly obtains the weather forecast information based on the city information corresponding to the smart lock. The cloud server can update the city information of the smart lock as needed through scheduled tasks set by technicians in the background, or it can receive updates from users through the APP by manually modifying the city information corresponding to the smart lock. This allows the cloud server to automatically query city information through IP address and complete the acquisition of weather forecast information, ensuring the intelligence of weather forecast information acquisition. In addition, it can also improve the accuracy of the weather forecast information obtained by the cloud server by allowing users to manually calibrate the city information.
[0059] Step S20: If the user's behavior information is "going out", obtain the pre-stored weather forecast information according to the preset network connection method.
[0060] Specifically, when a smart lock determines a user's behavior information, such as when they leave the house, it will retrieve weather forecast information pre-stored in the smart lock's storage module using different methods based on the user's preset network connection settings in the background.
[0061] Furthermore, the network connection method includes a long-connection network connection method and a short-connection network connection method; if the user's behavior information indicates that they are going out, obtaining pre-stored weather forecast information according to the preset network connection method specifically includes:
[0062] When the user's behavior information indicates that they are going out, the system retrieves the preset network connection method. If the network connection method is a long-connection network connection, the system directly retrieves the pre-stored weather forecast information. If the network connection method is a short-connection network connection, the system retrieves the update time of the pre-stored weather forecast information. If the difference between the update time and the current time is greater than a second preset interval, the system sends a weather forecast information update request to the mobile device or the cloud server. If no weather forecast update information is received from the mobile device or the cloud server within a third preset interval, the system retrieves the pre-stored weather forecast information.
[0063] Specifically, in a preferred embodiment of this application, the networking method includes a long-connection networking method and a short-connection networking method. The long-connection networking method has two situations: one is that as long as the wireless network is running normally, the smart lock will maintain a connection with the cloud server or continuously; the other is that when the wireless network is not available, as long as the mobile device is within the near-field communication range of the smart lock, it will maintain a connection with the mobile device. The short-connection networking method is that when the smart lock is in sleep mode, regardless of the operating status of the wireless network, the smart lock is always disconnected from the cloud server or mobile device until the smart lock is woken up.
[0064] When a user's activity indicates they are leaving the house, the smart lock first obtains the corresponding network connection information. If the network connection is a persistent connection, the weather forecast information stored in the smart lock will be updated according to the user's preset interval. Therefore, the weather forecast information stored in the smart lock is always the latest weather forecast information. When the user is about to leave the house, the smart lock directly obtains the weather forecast information stored in the smart lock and directly broadcasts it via voice.
[0065] If the network connection is a short-connection connection, the smart lock is disconnected from the cloud server or mobile device when in sleep mode, so the weather forecast information on the smart lock is not updated in real time. When the user wakes up the smart lock when leaving the house, the smart lock will retrieve the update time of the weather forecast information pre-stored in the storage module, subtract the update time from the current time, and obtain the difference between the current time and the weather forecast update time. If the difference is less than or equal to a second preset interval (e.g., 12 hours, which can be set by the user), then the smart lock will directly retrieve the pre-stored weather forecast information and broadcast it via voice; if the difference is greater than the second preset interval... If a pre-stored weather forecast needs updating, the smart lock will send an update request to the mobile device or cloud server (the specific sending option depends on the wireless network's operating status). If the smart lock does not receive the updated weather forecast within the third preset interval (e.g., ten seconds), it will directly retrieve the pre-stored weather forecast from the storage module to avoid delaying the user, using this information as the basis for subsequent voice broadcasts. If the updated weather forecast is successfully received within the third preset interval, it will be broadcast verbally. This application's smart lock obtains weather forecast information by determining the network connection method, ensuring real-time weather forecasts and enabling quick voice broadcasts to the user when they leave, improving the efficiency of voice weather forecast broadcasts, avoiding excessive waiting time, and enhancing the user experience.
[0066] Step S30: Obtain the current date and broadcast the weather forecast information via voice.
[0067] Specifically, the smart door lock will obtain the current date when the user leaves home, then select the corresponding weather forecast from the weather forecast information based on the current date, and then broadcast the weather forecast by voice.
[0068] Furthermore, the step of obtaining the current date and performing voice broadcast based on the current date and the weather forecast information specifically includes:
[0069] Obtain the user's current date when they leave home, select the corresponding weather forecast details from the weather forecast information based on the current date, and then broadcast the weather forecast details via voice.
[0070] Specifically, the smart lock first obtains the current date corresponding to when the user leaves home. Since the smart lock stores weather forecast details for a preset number of days, it selects the weather forecast details corresponding to the current date from multiple weather forecast details and then broadcasts the weather forecast details through the voice module in the smart lock to remind the user of the corresponding weather conditions.
[0071] It's important to note that, under normal circumstances, the weather forecast information in smart locks is updated promptly. Therefore, when a smart lock broadcasts the weather forecast via voice, it broadcasts the specific weather forecast content for that day from the stored forecast information. However, there are situations where the smart lock cannot update the weather forecast information for an extended period (e.g., the wireless network is unavailable and communication with mobile devices is impossible). In such cases, the smart lock can perform offline voice broadcasts based on the weather forecast information stored for a preset number of days. The smart lock will then select the corresponding weather forecast content based on the current date. The number of days for offline voice broadcasts is the same as the preset number of days for the stored weather forecast information. For example, if the preset number of days for storing the weather forecast information is seven days, then when the smart lock cannot update, it can perform offline voice broadcasts for seven days based on the pre-stored weather forecast information. This prevents the smart lock from ceasing voice broadcasts to the user due to the inability to update the weather forecast information, making the weather forecast broadcasts to the user more stable, able to cope with more unexpected situations, and ensuring the robustness of the smart lock's weather broadcasting capabilities.
[0072] Furthermore, the weather alert method based on smart door locks also includes:
[0073] The system receives a custom voice package sent by a cloud server. The custom voice package is configured by the user through a pre-bound mobile device, and the configuration information is synchronized to the cloud server. The cloud server selects the appropriate voice package based on the configuration information. The system then broadcasts the weather forecast information via voice according to the custom voice package.
[0074] Specifically, users can customize the voice package for the smart lock's voice broadcasts on an app on a mobile device pre-linked to the smart lock. After making a selection and clicking the confirmation button, the mobile device will synchronize the configuration information of the user-selected custom voice package to the cloud server. The cloud server will then select from a pre-set voice library based on the configuration information to obtain the user-selected custom voice package and send it to the smart lock. When the smart lock broadcasts weather forecast information, it will play the custom voice package, satisfying the user's personalized needs and making the user more involved in the process of the smart lock broadcasting weather forecast information, thus improving user satisfaction.
[0075] Furthermore, such as Figure 3 As shown, based on the above-described weather alert method based on smart locks, the present invention also provides a weather alert system based on smart locks, wherein the weather alert system based on smart locks includes:
[0076] The location and time data acquisition module 51 is used to acquire the user's current location and time data when the user is detected wearing a sleep headband;
[0077] The behavior determination module 51 is used to determine the user's behavior information when a change in the lock tongue state is detected.
[0078] The forecast acquisition module 52 is used to acquire pre-stored weather forecast information according to a preset network connection method if the user's behavior information is going out.
[0079] The voice broadcast module 53 is used to obtain the current date and perform voice broadcast based on the current date and the weather forecast information.
[0080] Furthermore, such as Figure 4 As shown, based on the above-mentioned weather reminder method and system based on smart door locks, the present invention also provides a smart door lock, which includes a processor 10, a memory 20 and a display 30. Figure 4 Only some components of the smart lock are shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0081] In some embodiments, the memory 20 may be an internal storage unit of the smart lock, such as a hard drive or memory. In other embodiments, the memory 20 may be an external storage device of the smart lock, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc. Further, the memory 20 may include both internal and external storage units of the smart lock. The memory 20 is used to store application software and various types of data installed on the smart lock, such as the program code for installing the smart lock. The memory 20 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 20 stores a weather reminder program 40 based on the smart lock, which can be executed by the processor 10 to implement the weather reminder method based on the smart lock in this application.
[0082] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 20 or process data, such as executing the weather reminder method based on the smart door lock.
[0083] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-screen liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 30 is used to display information about the smart lock and to display a visual user interface. The components 10-30 of the smart lock communicate with each other via a system bus.
[0084] In one embodiment, when the processor 10 executes the smart lock-based weather alert program 40 stored in the memory 20, the following steps are performed:
[0085] When a change in the latch state is detected, user behavior information is determined;
[0086] If the user's behavior information indicates that they have gone out, retrieve the pre-stored weather forecast information according to the preset network connection method;
[0087] Obtain the current date and provide a voice broadcast based on the current date and the weather forecast information.
[0088] The weather forecast information includes the specific content of the weather forecast for the current day and for a preset number of days after the current day.
[0089] Specifically, determining the user's behavior information when a change in the latch state is detected includes:
[0090] When a change in the latch state is detected, electronic logic feedback is obtained;
[0091] If the electronic logic feedback indicates internal unlocking, then the user's behavior information is determined to be exiting the premises.
[0092] If the electronic logic feedback indicates external unlocking, then the user's behavior information is determined to be returning home.
[0093] The step of determining user behavior information when a change in the latch state is detected includes, prior to:
[0094] The operating status of the wireless network is determined based on the first preset interval;
[0095] If the operating state is a no-network state, a weather forecast acquisition request is sent to the pre-bound mobile device, and the weather forecast information sent by the mobile device is received, wherein the weather forecast information is obtained by the mobile device on a preset cloud server;
[0096] If the operating status is a normal network status, a weather forecast retrieval request is sent to the cloud server, and the weather forecast information returned by the cloud server is received.
[0097] The acquired weather forecast information is stored in a way that overwrites the stored outdated weather forecast information.
[0098] The network connection methods include long connection network connection and short connection network connection;
[0099] If the user's behavior information indicates that they are going out, the system retrieves pre-stored weather forecast information according to a preset network connection method, specifically including:
[0100] When the user's behavior information indicates that they have left home, obtain the preset network connection method;
[0101] If the network connection method is a long-connection network connection method, then the pre-stored weather forecast information is directly obtained;
[0102] If the network connection method is a short connection network connection method, then obtain the update time of the pre-stored weather forecast information;
[0103] If the difference between the update time and the current time is greater than the second preset interval, a weather forecast information update request is sent to the mobile device or the cloud server.
[0104] If no weather forecast update is received from the mobile device or the cloud server within the third preset interval, the pre-stored weather forecast information is retrieved.
[0105] The step of obtaining the current date and then performing a voice broadcast based on the current date and the weather forecast information specifically includes:
[0106] Obtain the current date when the user leaves home, and select the corresponding weather forecast details from the weather forecast information based on the current date;
[0107] The weather forecast will be read aloud based on its specific content.
[0108] The weather alert method based on smart door locks also includes:
[0109] The system receives a custom voice package sent by a cloud server. The custom voice package is configured by the user through a pre-bound mobile device, and the configuration information is synchronized to the cloud server. The cloud server selects the appropriate voice package based on the configuration information.
[0110] The weather forecast information is broadcast via voice according to the custom voice package.
[0111] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a weather reminder program based on a smart lock, and the weather reminder program based on a smart lock, when executed by a processor, implements the steps of the weather reminder method based on a smart lock as described above.
[0112] In summary, this invention provides a weather reminder method and related equipment based on a smart door lock. The method includes: determining user behavior information when a change in the lock tongue state is detected; if the user's behavior information indicates leaving home, obtaining pre-stored weather forecast information according to a preset network connection method; obtaining the current date; and performing a voice broadcast based on the current date and the weather forecast information. This invention determines user behavior information by checking the lock tongue state and then performs a voice broadcast based on that behavior information, thereby achieving accurate door opening detection and improving the practicality of weather broadcasts. Furthermore, by pre-stored weather forecast information in the smart door lock, the invention solves the problem of weather forecasts not being available when the wireless network is disconnected, reducing reliance on wireless networks and allowing users to obtain corresponding weather forecast information every time they leave home, enabling them to make appropriate arrangements and preparations. This improves the convenience of obtaining weather forecast information and enhances the user experience.
[0113] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or smart lock that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or smart lock. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or smart lock that includes that element.
[0114] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The computer-readable storage medium can be a memory, magnetic disk, optical disk, etc.
[0115] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.
Claims
1. A weather alert method based on a smart door lock, characterized in that, The weather alert method based on smart door locks includes: When a change in the latch state is detected, user behavior information is determined; If the user's behavior information indicates that they have gone out, retrieve the pre-stored weather forecast information according to the preset network connection method; Obtain the current date and provide a voice broadcast based on the current date and the weather forecast information; The weather forecast information includes the specific content of the weather forecast for the current day and for a preset number of days after the current day; When a change in the latch state is detected, the user's behavior information is determined, specifically including: When a change in the latch state is detected, electronic logic feedback is obtained; If the electronic logic feedback indicates internal unlocking, then the user's behavior information is determined to be exiting the premises. If the electronic logic feedback indicates external unlocking, then the user's behavior information is determined to be returning home; If a user opens the door using the door opening button on the smart lock facing the outside of the room, electronic logic feedback for external unlocking is generated. If the user opens the door mechanically using the door opening device located inside the room, electronic feedback logic for internal unlocking is generated. The process of determining user behavior information upon detecting a change in the latch state also includes, prior to: The operating status of the wireless network is determined based on the first preset interval; If the operating state is a no-network state, a weather forecast acquisition request is sent to the pre-bound mobile device, and the weather forecast information sent by the mobile device is received, wherein the weather forecast information is obtained by the mobile device on a preset cloud server; If the operating status is a normal network status, a weather forecast retrieval request is sent to the cloud server, and the weather forecast information returned by the cloud server is received. The acquired weather forecast information is stored in a way that overwrites the stored outdated weather forecast information.
2. The weather reminder method based on a smart door lock according to claim 1, characterized in that, The network connection methods include long-connection network connection and short-connection network connection; If the user's behavior information indicates that they are going out, the system retrieves pre-stored weather forecast information according to a preset network connection method, specifically including: When the user's behavior information indicates that they have left home, obtain the preset network connection method; If the network connection method is a long-connection network connection method, then the pre-stored weather forecast information is directly obtained; If the network connection method is a short connection network connection method, then obtain the update time of the pre-stored weather forecast information; If the difference between the update time and the current time is greater than the second preset interval, a weather forecast information update request is sent to the mobile device or the cloud server. If no weather forecast update is received from the mobile device or the cloud server within the third preset interval, the pre-stored weather forecast information is retrieved.
3. The weather reminder method based on a smart door lock according to claim 1, characterized in that, The step of obtaining the current date and performing voice broadcast based on the current date and the weather forecast information specifically includes: Obtain the current date when the user leaves home, and select the corresponding weather forecast details from the weather forecast information based on the current date; The weather forecast will be read aloud based on its specific content.
4. The weather reminder method based on a smart door lock according to claim 1, characterized in that, The weather alert method based on smart door locks also includes: The system receives a custom voice package sent by a cloud server. The custom voice package is configured by the user through a pre-bound mobile device, and the configuration information is synchronized to the cloud server. The cloud server selects the appropriate voice package based on the configuration information. The weather forecast information is broadcast via voice according to the custom voice package.
5. A weather alert system based on a smart door lock, wherein the weather alert system based on a smart door lock is used to implement the weather alert method based on a smart door lock as described in any one of claims 1-4, characterized in that, The weather alert system based on smart door locks includes: The behavior determination module is used to determine the user's behavior information when a change in the lock tongue state is detected. The forecast acquisition module is used to obtain pre-stored weather forecast information according to the preset network connection method if the user's behavior information is "going out". The voice broadcast module is used to obtain the current date and perform voice broadcast based on the current date and the weather forecast information.
6. A smart door lock, characterized in that, The smart lock includes: a memory, a processor, and a weather alert program based on the smart lock stored in the memory and executable on the processor. When the weather alert program based on the smart lock is executed by the processor, it implements the steps of the weather alert method based on the smart lock as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a weather alert program based on a smart lock, which, when executed by a processor, implements the steps of the weather alert method based on a smart lock as described in any one of claims 1-4.