Summary of the invention
The embodiment of the present invention provides automatically watering method, computer equipment and the readable storage medium storing program for executing of a kind of intelligence community,
Inefficiency and accuracy to solve the problems, such as plant watering is low.
A kind of automatically watering method of intelligence community, comprising:
Obtain the plant mark of target plant, wherein target plant described in the plant mark unique identification;
It is identified according to the plant, obtains the target plant of plant mark unique identification in the soil under normal growth
The bottom target water content being collected in advance, middle part target water content and top target water content;
It is identified according to the plant, obtains the target bottom soil where the target plant of the plant mark unique identification
In the current water content in bottom, the current water content in middle part in middle of target soil and the top in target top soil it is current
Water content;
If the current water content in bottom is less than the bottom target water content, the current water content in the middle part is less than the middle part
The current water content of target water content and the top is less than the top target water content, then is identified, obtained according to the plant
Take the target hydrogen ionexponent for being adapted to the target water of target plant growth of plant mark unique identification and
Target water temperature, while preset first irrigation amount, the target hydrogen ionexponent and the target water temperature are sent to visitor
Family end, so that the client uses the target hydrogen ionexponent of the target water temperature of first irrigation amount
The target water, to target bottom soil, the middle of target soil and the target top where the target plant
Portion's soil waters;
If the current water content in bottom is greater than or equal to the bottom target water content, the current water content in the middle part is less than institute
It states middle part target water content and the current water content in the top is less than the top target water content, then according to the plant mark
Know, the target hydrogen ion concentration that acquisition is adapted to the target water of the target plant growth of the plant mark unique identification refers to
Several and target water temperature, while preset second irrigation amount, the target hydrogen ionexponent and the target water temperature being sent
To client, so that the client is referred to using the target hydrogen ion concentration of the target water temperature of second irrigation amount
Several target water, to target bottom soil, the middle of target soil and the mesh where the target plant
Mark top soil waters;
If the current water content in bottom be greater than or equal to the bottom target water content, the current water content in the middle part be greater than or
It is less than the top target water content equal to the current water content of the middle part target water content and the top, then according to
Plant mark obtains the target hydrogen ion for being adapted to the target water of target plant growth of the plant mark unique identification
Concentration index and target water temperature, while by preset third irrigation amount, the target hydrogen ionexponent and the target water
Temperature is sent to client, so that the client is using the target hydrogen ion of the target water temperature of the third irrigation amount
The target water of concentration index, to where the target plant target bottom soil, the middle of target soil and
The target top soil waters, wherein first irrigation amount is greater than second irrigation amount, second irrigation amount
Greater than the third irrigation amount.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, the processor realize the automatic watering function of above-mentioned intelligence community when executing the computer program
The step of method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of calculation machine program realizes the automatically watering method of above-mentioned intelligence community when being executed by processor.
In the automatically watering method of above-mentioned intelligence community, computer equipment and readable storage medium storing program for executing, by first obtaining target
The plant of plant identifies, and then obtains adopting under the normal growth in the soil of the target plant of plant mark unique identification in advance
Next bottom target water content, middle part target water content and the top target water content collected accurately obtains plant mark
The current water content in bottom in the soil of target bottom where the target plant of unique identification, the middle part in middle of target soil are worked as
The current water content in top in preceding water content and target top soil, if next the current water content in bottom is less than bottom mesh
It is aqueous less than top target less than the current water content of middle part target water content and top to mark water content, the current water content in middle part
Amount, if the current water content in bottom is greater than or equal to bottom target water content, the current water content in middle part is less than middle part target and contains
The current water content of water and top be less than top target water content, if the current water content in bottom be greater than or equal to bottom mesh
Mark water content, the current water content in middle part is greater than or equal to the current water content of middle part target water content and top and is less than top target
Water content, then the target hydrogen ion concentration that acquisition is adapted to the target water of the target plant growth of plant mark unique identification refer to
Number, and the target water temperature for being adapted to the target water of target plant growth of plant mark unique identification is obtained, finally by target hydrogen
Ion concentration index and target water temperature are sent to client, so that client uses accurate target water according to corresponding irrigation amount
The target water of mild accurately target hydrogen ionexponent, to target bottom soil, the middle of target soil where target plant
Earth and target top soil are automatically and accurately watered, because of the current water content in the bottom got, the current water content in middle part
The current actual conditions of soil where accurately reflecting target plant with the current water content in top, while being planted using target is adapted to
The target water of the target hydrogen ionexponent of the target water temperature of object growth is to the target bottom soil where target plant, target
Middle part soil and target top soil water, and then ensure that and accurately pour according to the actual situation target plant
Water improves the accuracy of plant watering.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The automatically watering method of intelligence community provided by the present application can be applied in the application environment such as Fig. 1, the application environment
Including server-side and client, wherein client is communicated by cable network or wireless network with server-side.Wherein, objective
Family end can be, but not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable set
It is standby.Server-side can be realized with the server-side cluster of the either multiple server-side compositions of independent server-side.Client is used for
The current water content of the target soil where target plant is acquired, server-side is for receiving and analyzing current water content.
In one embodiment, it as shown in Fig. 2, providing a kind of automatic watering function method of intelligence community, is applied in this way in Fig. 1
In server-side for be illustrated, include the following steps:
S101, the plant mark for obtaining target plant, wherein plant identifies unique identification target plant.
Specifically, in intelligence community, region that each target plant is planted and plant mark are established pair in advance
It should be related to, server-side needs to obtain the current water content of the target soil where target plant according to each target plant
The region planted and plant mark establish corresponding relationship, obtain the plant mark of each target plant.
Wherein, plant identifies unique identification target plant.Target soil include target bottom soil, middle of target soil and
Target top soil, current water content include the current water content in bottom, the current water content of the current water content in middle part and top.
It should be noted that target bottom soil is the soil of the bottom of the target soil where target plant, in target
Portion's soil is the soil at the middle part of the target soil where target plant, and target top soil is the target soil where target plant
The soil at the top of earth.The particular content of plant mark, can be set, herein with no restrictions according to practical application.
S102, it is identified according to plant, under the normal growth in the soil for obtaining the target plant of plant mark unique identification
The bottom target water content being collected in advance, middle part target water content and top target water content.
Specifically, server-side is identified according to plant, obtain the target plant of plant mark unique identification in the soil just
The storage road of the bottom target water content being collected in advance, middle part target water content and top target moisture content value under being frequently grown
Then diameter extracts bottom target water content, middle part target water content and top target water content according to the store path.
Wherein, bottom target water content refers to that the water content of the place target bottom soil of target plant, middle part target contain
Water refers to that the water content of the place middle of target soil of target plant, top target water content refer to the place mesh of target plant
Mark the water content of top soil.
S103, it is identified, is obtained in the target bottom soil where plant identifies the target plant of unique identification according to plant
The current water content in bottom, the current water content in middle part in middle of target soil and the top in target top soil currently contain
Water.
Specifically, client is using the bottom in the target bottom soil where soil moisture content detector acquisition target plant
The current water content in middle part in the current water content in portion, middle of target soil and the top in target top soil are currently aqueous
Amount, and the current water content in collected bottom, the current water content of the current water content in middle part and top are sent to server-side, it takes
Business end receives the current water content in bottom of the target plant of plant mark unique identification in real time or within a preset period of time, middle part is worked as
The current water content of preceding water content and top obtains the target plant institute of plant mark unique identification that is, identifying according to plant
Target bottom soil in the current water content in bottom, and identified according to plant, obtain the target of plant mark unique identification
The current water content in middle part in middle of target soil where plant, and identified according to plant, obtain the unique mark of plant mark
The current water content in top in target top soil where the target plant of knowledge.
Further, it is identified according to plant, obtains the target bottom where the target plant of plant mark unique identification
The current water content in middle part in the current water content in bottom, middle of target soil in soil and the top in target top soil
After current water content, further includes: judge whether the current water content in bottom is less than bottom target water content, the current water content in middle part
Whether it is less than whether the current water content of middle part target water content or top is less than top target water content.
If S104, the current water content in bottom are less than bottom target water content, the current water content in middle part is less than middle part target and contains
The current water content of water and top is less than top target water content, then is identified according to plant, and acquisition is adapted to plant mark only
The target hydrogen ionexponent and target water temperature of the target water of the target plant growth of one mark, while preset first being poured
Water, target hydrogen ionexponent and target water temperature are sent to client, so that client uses the target of the first irrigation amount
The target water of the target hydrogen ionexponent of water temperature, to where target plant target bottom soil, middle of target soil and
Target top soil waters.
Specifically, because different plants requires different, different plants to the temperature of water the hydrogen ionexponent of water
Degree requires difference, so in order to be watered with the target water of suitable hydrogen ionexponent to plant, if bottom is worked as
Preceding water content is less than bottom target water content, the current water content in middle part is less than the current water content of middle part target water content and top
It less than top target water content, is then identified according to plant, obtains the target plant growth for being adapted to plant mark unique identification
The target hydrogen ionexponent and target water temperature of target water, while preset first irrigation amount, target hydrogen ion concentration being referred to
Several and target water temperature is sent to client, when client receive preset first irrigation amount, target hydrogen ionexponent and
When target water temperature, using the target water of the target hydrogen ionexponent of the target water temperature of the first irrigation amount, to target plant institute
Target bottom soil, middle of target soil and target top soil water, meanwhile, server-side return execute judges bottom
Whether the current water content in portion is less than bottom target water content, whether the current water content in middle part is less than middle part target water content or top
Whether current water content is less than top target water content.
If S105, the current water content in bottom are greater than or equal to bottom target water content, the current water content in middle part is less than middle part
The current water content of target water content and top is less than top target water content, then is identified according to plant, and acquisition is adapted to plant
The target hydrogen ionexponent and target water temperature of the target water of the target plant growth of unique identification are identified, while will be preset
Second irrigation amount, target hydrogen ionexponent and target water temperature are sent to client, so that client uses the second irrigation amount
Target water temperature target hydrogen ionexponent target water, to target bottom soil, the middle of target where target plant
Soil and target top soil water.
Specifically, because different plants requires different, different plants to the temperature of water the hydrogen ionexponent of water
Degree requires difference, so in order to be watered with the target water of suitable hydrogen ionexponent to plant, if bottom is worked as
Preceding water content is greater than or equal to bottom target water content, the current water content in middle part is less than middle part target water content and top is current
Water content is less than top target water content, then is identified according to plant, obtains the target plant for being adapted to plant mark unique identification
The target hydrogen ionexponent and target water temperature of the target water of growth, while by preset second irrigation amount, target hydrogen ion
Concentration index and target water temperature are sent to client, when client receives preset second irrigation amount, target hydrogen ion concentration
When index and target water temperature, using the target water of the target hydrogen ionexponent of the target water temperature of the second irrigation amount, to target
Target bottom soil, middle of target soil and target top soil where plant water, meanwhile, server-side, which returns, to be executed
Judge whether the current water content in bottom is less than bottom target water content, whether the current water content in middle part is less than middle part target water content
Or whether the current water content in top is less than top target water content.
It should be noted that the first irrigation amount is greater than the second irrigation amount, according to different water content, carry out using different
Irrigation amount waters to target plant, to improve the accuracy of plant watering.
If S106, the current water content in bottom are greater than or equal to bottom target water content, the current water content in middle part is greater than or waits
It is less than top target water content in the current water content of middle part target water content and top, is then identified according to plant, obtains and adapt to
In the target hydrogen ionexponent and target water temperature of the target water of the target plant growth of plant mark unique identification, simultaneously will
Preset third irrigation amount, target hydrogen ionexponent and target water temperature are sent to client, so that client uses third
The target water of the target hydrogen ionexponent of the target water temperature of irrigation amount, to target bottom soil, the mesh where target plant
Mark middle part soil and target top soil water, wherein the second irrigation amount is greater than third irrigation amount.
Specifically, because different plants requires different, different plants to the temperature of water the hydrogen ionexponent of water
Degree requires difference, so in order to be watered with the target water of suitable hydrogen ionexponent to plant, if bottom is worked as
Preceding water content is greater than or equal to bottom target water content, the current water content in middle part is greater than or equal to middle part target water content and top
The current water content in portion is less than top target water content, then is identified according to plant, obtains the mesh for being adapted to plant mark unique identification
The target hydrogen ionexponent and target water temperature of the target water of plant growth are marked, while by preset third irrigation amount, target
Hydrogen ionexponent and target water temperature are sent to client, when client receive preset third irrigation amount, target hydrogen from
When sub- concentration index and target water temperature, client uses the mesh of the target hydrogen ionexponent of the target water temperature of third irrigation amount
Water is marked, is watered to target bottom soil, middle of target soil and the target top soil where target plant, meanwhile, clothes
During the return execution of business end judges whether the current water content in bottom is less than bottom target water content, whether the current water content in middle part is less than
Whether the current water content of portion's target water content or top is less than top target water content.Wherein, the second irrigation amount is poured greater than third
Water.
Further, if the current water content in bottom is less than bottom target water content, the current water content in middle part is equal to or more than
The current water content of middle part target water content and top is less than top target water content, then exports the first water content miscue letter
Breath.
Further, if the current water content in bottom is less than bottom target water content, the current water content in middle part is equal to or more than
The current water content of middle part target water content and top is equal to or more than top target water content, then exports the second water content mistake
Prompt information.
Further, if the current water content in bottom is greater than or equal to bottom target water content, the current water content in middle part is less than
The current water content of middle part target water content and top is equal to or more than top target water content, then exports third water content mistake
Prompt information.
Further, if the current water content in bottom is greater than or equal to bottom target water content, the current water content in middle part is greater than
Or be equal to the current water content of middle part target water content and top and be equal to or more than top target water content, then drain command is sent out
Send to client, for client be based on drain command, to where target plant target bottom soil, middle of target soil and
Target top soil carry out drainage sunk well, and return execution judge the current water content in bottom whether be less than bottom target water content,
Whether the current water content in middle part is less than middle part target water content or whether the current water content in top is less than top target water content, connects
The rainy information that rain detection sensor is sent is accepted, for example infrared ray is emitted using infrared detector, when infrared ray encounters rain
When drop, infrared reflection is returned, to detect raining;It is kept off the rain corresponding relationship based on preset information, obtains the letter that rains
Cease corresponding instruction of keeping off the rain, wherein information of raining is the size of rainfall;The instruction that will keep off the rain is sent to the system of keeping off the rain, for gear
Rain system is based on instruction of keeping off the rain, and carries out processing of keeping off the rain to target bottom soil, middle of target soil and target top soil, than
Such as, rainwater is carried out to block processing using the tent that keeps off the rain, when rainfall is big, rainwater is blocked using the thick and solid tent that keeps off the rain
Processing, when rainfall is small, carries out rainwater to block processing using the thin tent that keeps off the rain, while exporting target plant water shortage does not mention
Show message, to guarantee that plant is not watered excessively.
It should be noted that the first water content miscue information, the second water content miscue information, third water content
The particular content of miscue information and the target plant not prompting message of water shortage, can be set according to practical application, this
Place is with no restrictions.
It should be noted that the first irrigation amount is according to the first ratio between the current water content in bottom and bottom target water content
To the current water content of the second comparison result and top between result, the current water content in middle part and middle part target water content and push up
Third comparison result between portion's target water content, determination obtain.Second irrigation amount is according to the current water content in middle part and middle part mesh
The third between the current water content of the second comparison result and top and top target water content between mark water content compares knot
Fruit determination obtains.Third irrigation amount is true according to the third comparison result between the current water content in top and top target water content
Surely it obtains.
In the corresponding embodiment of Fig. 2, the plant by first obtaining target plant is identified, and it is unique then to obtain plant mark
The bottom target water content being collected in advance, middle part target water content under the normal growth in the soil of the target plant of mark
With top target water content, the target bottom soil where the target plant of plant mark unique identification is next accurately obtained
In the current water content in bottom, the current water content in middle part in middle of target soil and the top in target top soil it is current
Water content, if next the current water content in bottom is less than bottom target water content, the current water content in middle part is less than middle part target
The current water content of water content and top be less than top target water content, if the current water content in bottom be greater than or equal to bottom
It is aqueous less than top target that target water content, the current water content in middle part are less than the current water content of middle part target water content and top
Amount, if the current water content in bottom is greater than or equal to bottom target water content, the current water content in middle part is greater than or equal to middle part
The current water content of target water content and top is less than top target water content, then obtains and be adapted to plant mark unique identification
The target hydrogen ionexponent of the target water of target plant growth, and obtain the target plant for being adapted to plant mark unique identification
The target water temperature of the target water of object growth, is finally sent to client for target hydrogen ionexponent and target water temperature, for
Client uses the target water of accurate target water temperature and accurate target hydrogen ionexponent according to corresponding irrigation amount, right
Target bottom soil, middle of target soil and target top soil where target plant are automatically and accurately watered, because
The current water content in the bottom got, the current water content of the current water content in middle part and top accurately reflect soil where target plant
The current actual conditions of earth, while the mesh of the target hydrogen ionexponent using the target water temperature for being adapted to target plant growth
Mark water waters to target bottom soil, middle of target soil and the target top soil where target plant, and then guarantees
It accurately waters according to the actual situation to target plant, improves the accuracy of plant watering.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of computer equipment is provided, which can be server-side, internal junction
Composition can be as shown in Figure 3.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile readable storage medium, built-in storage.The non-volatile readable storage medium is stored with operating system, computer journey
Sequence and database.The built-in storage provides for the operation of operating system and computer program in non-volatile readable storage medium
Environment.The database of the computer equipment is for storing data involved by the automatically watering method of intelligence community.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of automatically watering method of intelligence community.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize above-described embodiment intelligence community when executing computer program
The step of automatically watering method, such as step S101 shown in Fig. 2 to step S106.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
The automatically watering method of intelligence community in above method embodiment is realized when machine program is executed by processor.Ordinary skill
Personnel are understood that realize all or part of the process in above-described embodiment method, are that can instruct phase by computer program
The hardware of pass is completed, and the computer program can be stored in a non-volatile computer and can be read in readable storage medium storing program for executing,
The computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, each reality provided herein
Apply any reference used in example to memory, storage, database or other media, may each comprise it is non-volatile and/or
Volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM
(EPROM), electrically erasable ROM(EEPROM) or flash memory.Volatile memory may include random-access memory (ram)
Or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM(SRAM),
Dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM(ESDRAM), it is same
Walk link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus
Dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.