Summary of the invention
The embodiment of the present invention provides environmental warning method, electronic equipment and the storage medium of a kind of production of crude drugs, medicinal herb grower, medicine
Quotient can initiate early warning inquiry by terminal, and monitoring range is wide, and not needing medicinal herb grower pharmacist has very high professional, and it is raw to be conducive to medicinal material
Environmental warning is universal during production.
First aspect of the embodiment of the present invention provides a kind of environmental warning method of production of crude drugs, comprising:
Early warning inquiry request is obtained from terminal, the early warning inquiry request includes medicinal material kind mark;
Obtain the information that the corresponding medicinal material place of production is identified with the medicinal material kind;
Obtain environmental threshold value information corresponding with the medicinal material kind mark;
Obtain the environmental parameter in the medicinal material place of production;
Judge whether to need early warning according to the environmental parameter and the environmental threshold value information;
If desired early warning, Xiang Suoshu terminal send warning information.
In some embodiments, the if desired early warning, Xiang Suoshu terminal send warning information, specifically include:
If desired early warning judges whether be transmitted across warning information to the terminal in preset time period;
If not being transmitted across warning information to the terminal in preset time period, early warning letter is generated according to the environmental parameter
Breath, and the warning information is sent to the terminal.
In some embodiments, the if desired early warning, Xiang Suoshu terminal send warning information, specifically further include:
If being transmitted across warning information to the terminal in preset time period, adjusted according to the environmental parameter described pre-
Alert information, and warning information adjusted is sent to the terminal.
In some embodiments, the environmental threshold value information includes weather condition threshold value, described to obtain the medicinal material place of production
Environmental parameter, specifically include:
The weather parameters in the medicinal material place of production is obtained from weather server;
It is described to judge whether to need early warning according to the environmental parameter and the environmental threshold value information, it specifically includes:
Whether weather warning is needed according to the weather parameters and the weather condition threshold decision.
In some embodiments, the weather parameters includes that temperature parameter, air humidity parameter, wind-force parameter, weather are existing
Image information, weather warning information, in air quality information at least one of.
In some embodiments, the weather parameters includes weather information data, historical weather data, weather forecast number
According in, disaster alarm data at least one of, the weather condition threshold value includes live threshold information, history threshold information, pre-
Report threshold information;
It is described that whether weather warning is needed according to the weather parameters and the weather condition threshold decision, it specifically includes:
Judge whether to need weather information early warning according to the weather information data and the live threshold information;And/or
Judge whether to need weather history early warning according to the historical weather data and the history threshold information;And/or
Judge whether to need weather forecast early warning according to the data of weather forecast and the threshold value information;And/or
If the weather parameters includes the disaster alarm data, it is judged as and needs weather disaster early warning.
In some embodiments, the environmental threshold value information includes edaphic condition threshold value, described to obtain the medicinal material place of production
Environmental parameter, specifically include:
The soil parameters in the medicinal material place of production is obtained from soil information server;
It is described to judge whether to need early warning according to the environmental parameter and the environmental threshold value information, it specifically includes:
Soil early warning whether is needed according to the soil parameters and the edaphic condition threshold decision.
In some embodiments, the soil parameters include PH parameter, water parameters, humidity parameter, in nutrient parameter
At least one of.
In some embodiments, described to obtain environmental condition threshold value corresponding with the medicinal material kind mark, it specifically includes:
Production phase information corresponding with the medicinal material kind mark is inquired according to current time;
Obtain environmental threshold value information corresponding with medicinal material kind mark and the production phase information.
In some embodiments, the method also includes:
It is obtained from the terminal and grows live picture, growth assessment information is generated according to the live picture of the growth;
The growth assessment information is sent to the terminal.
Second aspect of the embodiment of the present invention provides a kind of electronic equipment, including memory and processor, the memory
For storing program instruction;If the processor executes described program instruction, the environmental warning method of above-mentioned production of crude drugs is realized
The step of.
The third aspect of the embodiment of the present invention provides a kind of storage medium, and the storage medium is stored with computer program,
If the computer program is executed by processor, the step of realizing the environmental warning method of above-mentioned production of crude drugs.
Compared with prior art, the beneficial effect of the embodiment of the present invention is: initiating early warning inquiry by terminal, then basis
The medicinal material kind mark of the terminal association obtains corresponding with the medicinal material kind mark medicinal material place of production, and with the medicinal material kind pair
The environmental threshold value information answered;And then the environmental parameter in the medicinal material place of production is obtained, judge whether to need to the kind medicinal material in each place of production
Production environment make early warning;When needing early warning, warning information is sent to terminal, convenient for holding medicinal herb grower, the pharmacist of the terminal
The risk of the weather, soil environment that face during certain production of crude drugs process, such as plantation, storage is understood in time, thus and
Poor environment adverse effect caused by production of crude drugs is reduced or avoided in Shi Shihang corresponding measure.Monitoring range is wide, is not required to key medicine
Pesticide quotient have it is very high professional, conducive to during production of crude drugs environmental warning it is universal.
Embodiment one
Such as a kind of environmental warning method that Fig. 1 is production of crude drugs, comprising the following steps:
Step S110, early warning inquiry request is obtained from terminal, the early warning inquiry request includes medicinal material kind mark.
When the medicinal herb grower or pharmacist of certain medicinal material want the production warning information of this kind of medicinal material of inquiry, sent out by the terminal held
Early warning inquiry request is sent, which includes the medicinal material kind mark of this kind of medicinal material, such as Radix Glehniae.
Step S120, the information that the corresponding medicinal material place of production is identified with the medicinal material kind is obtained.
Inquiry identifies the letter in the corresponding medicinal material place of production with early warning inquiry request traditional Chinese medicinal materials assortment from variety source tables of data
Breath, if traditional Chinese medicinal materials assortment mark includes Radix Glehniae, the corresponding medicinal material place of production includes Hebei province Anguo City, Hebei province Baoding
City, Chengde City, Hebei Province and Shijiazhuang City of Hebei Province.
Step S130, environmental threshold value information corresponding with the medicinal material kind mark is obtained.
In the early warning inquiry request got according to step S110 medicinal material kind mark, as Radix Notoginseng, glutinous rehmannia, radix saposhnikoviae or
Radix Glehniae obtains environmental threshold value information corresponding with corresponding medicinal material kind mark.
In some possible embodiments, step S130 obtains environmental threshold value information corresponding with the medicinal material kind mark
Including weather condition threshold value, storage stage high temperature such as corresponding with medicinal material kind mark glutinous rehmannia goes rancid 30 degrees Celsius of temperature threshold value,
Or mildew air humidity threshold 65% corresponding with medicinal material kind mark radix saposhnikoviae.
In some possible embodiments, as shown in Fig. 2, including four environmental threshold value information, each ring in environmental threshold value library
Border threshold information corresponds to corresponding production phase, such as plantation, harvest, storage stage.
In some possible embodiments, step S130 obtains environmental threshold value letter corresponding with the medicinal material kind mark
Breath, specifically includes:
Step S131, production phase information corresponding with the medicinal material kind mark is inquired according to current time.
For example, current time is March 8, then environmental threshold value library is inquired, show that glutinous rehmannia is corresponding gives birth to medicinal material kind mark
Production session information is storage stage, and production phase information corresponding with medicinal material kind mark Radix Glehniae is the plantation stage.
Step S132, environmental threshold value information corresponding with medicinal material kind mark and the production phase information is obtained.
For example, obtaining environmental threshold value information corresponding with the storage stage of glutinous rehmannia: temperature is more than 30 degrees Celsius, and high temperature is walked
Oil;And environmental threshold value information corresponding with the plantation stage of Radix Glehniae: temperature will cause freeze injury lower than 0 degree Celsius.
By the production phase information of current time inquiry and medicinal material, and then obtain environment corresponding with production phase information
Threshold information, convenient for filtering out the early warning project that the current production phase needs to pay close attention to from the huge threshold library of data volume,
Improve specific aim, the timeliness of environmental warning.
Step S140, the environmental parameter in the medicinal material place of production is obtained.
In some possible embodiments, step S140 obtains the environmental parameter in the medicinal material place of production, specifically includes:
Step S141, the weather parameters in the medicinal material place of production is obtained from weather server.
In some possible embodiments, joined by weather interface task from the weather that weather server obtains the medicinal material place of production
Number, can be divided into following 4 subtasks:
1. weather information and air quality task: crossing 7 points per hour and execute 1 time.If there is request failure or parsing result
The website of failure then retains unsuccessfully station code, waits and re-requesting.
2. weather forecast and index number of price task: daily execute 3 times, be respectively as follows: at daily 8 points 12 minutes, 11 points 12 minutes, 18 points
12 points.If there is the website of request failure or parsing result failure, then retain unsuccessfully station code, waits and re-requesting.
3. weather warning task: executing 1 time within every 10 minutes.If there is the website of request failure or parsing result failure, no
Retain failure station code, directly skips and wait next round request task.
4. request unsuccessfully executes task: executing 1 time within every 5 minutes.Again by the failure station code recorded in above-mentioned task
It makes requests.
In some possible embodiments, step S140 obtains the environmental parameter in the medicinal material place of production, specifically:
Obtain environmental parameter corresponding with the environmental threshold value information that step S130 is got.
Such as certain medicinal material kind for getting of step S130 includes temperature in certain production phase corresponding environmental threshold value information
Threshold value and humidity threshold, then it only need to include corresponding to environmental threshold value information that step S140, which obtains the environmental parameter in the medicinal material place of production,
Environmental parameter, such as temperature threshold and humidity threshold.
Step S150, judge whether to need early warning according to the environmental parameter and the environmental threshold value information.
When the environmental threshold value information includes weather condition threshold value, step S150 is according to the environmental parameter and the environment
Threshold information judges whether to need early warning, specifically include:
Step S151, whether weather warning is needed according to the weather parameters and the weather condition threshold decision.
In some possible embodiments, the weather parameters include temperature parameter, air humidity parameter, wind-force parameter,
Weather phenomenon information, weather warning information, in air quality information at least one of.
The weather condition threshold value comparison that the relevant parameter information of weather parameters and step S130 are obtained, such as by temperature parameter
Go rancid compared with 30 degrees Celsius of temperature threshold value with storage stage high temperature, if temperature parameter is greater than 30 degrees Celsius, is judged as needs
Weather warning is judged as if temperature parameter is not more than 30 degrees Celsius and does not need weather warning;For another example, air humidity is joined
Number, if air humidity parameter is greater than 65%, is judged as compared with the air humidity threshold 65% that goes mouldy and needs weather warning, such as
Fruit air humidity parameter is not more than 65%, then is judged as and does not need weather warning.
In other feasible embodiments, the weather parameters includes weather information data, historical weather data, weather
At least one of in forecast data, disaster alarm data.The weather condition threshold value includes live threshold information, history threshold value letter
Breath, threshold value information.
Weather information data are specially real-time weather, can specifically be obtained by weather information and air quality task;History
Weather data is the weather data of the past period, such as can be 24 hourly rainfall depths, can be by weather information data accumulation
It obtains;Data of weather forecast is the weather of a period of time in future, can specifically be obtained by weather forecast and index number of price task;Disaster
Warning data for example can be the warning data of meteorological disaster, such as hail, typhoon, can specifically be obtained by weather warning task.
As preferred embodiment, step S151 according to the weather parameters and the weather condition threshold decision whether
Weather warning is needed, at least one of step S1511- step S1514 is specifically included.
Step S1511, judge whether to need weather information according to the weather information data and the live threshold information
Early warning.
For example, temperature parameter is greater than 30 degrees Celsius in weather information data, then it is judged as and needs weather information early warning, if
Temperature parameter is not more than 30 degrees Celsius, then is judged as and does not need weather information early warning.
Step S1512, judge whether to need weather history according to the historical weather data and the history threshold information
Early warning.
For example, 24 hourly rainfall depths are 60 milliliters in historical weather data, it is more than history threshold information, such as water logging risk threshold
50 milliliters of value, then judgement needs weather history early warning.
Step S1513, judge whether to need weather forecast according to the data of weather forecast and the threshold value information
Early warning.
For example, data of weather forecast is continuous 5 day cloudy day, threshold value information is to have mildew risk at continuous three day cloudy day,
Then judgement needs weather forecast early warning, to forecast mildew risk, alerting prevention.
If step S1514, the described weather parameters includes the disaster alarm data, it is judged as and needs weather disaster early warning.
For example, weather parameters includes hail warning data, then it is judged as and needs weather disaster early warning.
In other feasible embodiments, the environmental threshold value information that step S130 is obtained includes edaphic condition threshold value.
Step S140 is specifically included according to environmental parameter corresponding with the location information of the terminal is obtained:
Step S142, the soil of the terminal location is obtained from soil information server according to the location information of the terminal
Parameter.
In some possible embodiments, the soil parameters includes PH parameter, water parameters, humidity parameter, nutrient ginseng
At least one of in number.For example, Chinese weather net is provided with the soil datas such as soil moisture, soil information server is available
Such soil parameters.Soil information server can also obtain each medicinal material production by being laid in the soil testing assemblies in each medicinal material place of production
The soil parameters on ground.
Step S150 judges whether to need early warning, specifically include according to the environmental parameter and the environmental threshold value information:
Step S152, whether soil early warning is needed according to the soil parameters and the edaphic condition threshold decision.
For example, relative moisture of the soil 80, edaphic condition threshold value is rotten risk in the soil parameters in the medicinal material place of production
Humidity threshold is 70, then judgement needs soil early warning.
Step S160, if desired early warning, Xiang Suoshu terminal send warning information.
Warning information is sent to the terminal for initiating early warning inquiry request, it is timely convenient for the corresponding medicinal herb grower of terminal, pharmacist
Solution early warning inquiry request traditional Chinese medicinal materials assortment identifies the production process of corresponding medicinal material, weather, the soil faced during such as plantation, storage
Poor environment unfavorable shadow caused by production of crude drugs is reduced or avoided to carry out corresponding measure in time in the risk of the environment such as earth
It rings.
It in some possible embodiments, include medicinal material kind mark from the early warning inquiry request that terminal obtains, such as north is husky
Ginseng, further includes the location information of the terminal, such as Hebei province.
The information for identifying the corresponding medicinal material place of production with the medicinal material kind that then step S120 is obtained includes that Radix Glehniae exists
The place of production in Hebei province, such as Anguo City, Baoding, the Chengde city He Jiazhuan.Step S130 specifically obtains ring corresponding with Radix Glehniae
Border threshold information, step S140 obtain be environmental parameter of the Radix Glehniae in the Hebei province place of production Nei Ge, as Anguo City, Baoding,
The environmental parameter in the Chengde city He Jiazhuan.
If step S150 judgement needs early warning, identified according to the position of the terminal in early warning inquiry request and medicinal material kind
Warning information is sent to the terminal.
In some possible embodiments, it is illustrated in figure 3 the display interface that certain terminal gets warning information, the terminal
Associated medicinal material kind is identified as Radix Glehniae, therefore obtains the medicinal material kind that early warning inquiry request includes from the terminal and be identified as north
The root of straight ladybell;The terminal is located at Hebei province, thus in main cue Hebei province Radix Glehniae environmental warning.Early warning packet in display interface
Weather forecast early warning is included, i.e. advance notice has thunder shower;Including weather disaster early warning, i.e. advance notice has hail weather;It further include storage day
Gas early warning, prompting temperature is more than 30 degrees Celsius, and medicinal material meeting high temperature goes rancid;Further include weather information early warning, prompts air humidity super
Crossing 65% medicinal material has mildew risk etc..
In some possible embodiments, step S160 if desired early warning, Xiang Suoshu terminal sends warning information, specific to wrap
It includes:
Step S161, if desired early warning judges whether be transmitted across warning information to the terminal in preset time period.
If step S162, not being transmitted across warning information to the terminal in preset time period, according to the environmental parameter
Warning information is generated, and sends the warning information to the terminal.
If step S150 judgement needs early warning, inquire in preset time period, such as the same day whether early warning, if
Warning information is not then generated according to environmental parameter, environmental threshold value information and suggestion content, and warning information is sent to the end
End.
In some possible embodiments, step S160 if desired early warning, Xiang Suoshu terminal sends warning information, specific to go back
Include:
If step S163, being transmitted across warning information to the terminal in preset time period, according to the environmental parameter
The warning information is adjusted, and sends warning information adjusted to the terminal.
If in preset time period, such as the same day early warning, then the corresponding information of warning information is modified, such as by environment
Threshold information and suggestion content upgrading, send warning information adjusted to early warning host and/or positioned at the medicinal material place of production
Terminal, to prompt related personnel it is further noted that risk prevention system.
In some possible embodiments, as shown in figure 4, the environmental warning method of production of crude drugs further include:
Step S171, it is obtained from the terminal and grows live picture, growth assessment is generated according to the live picture of the growth
Information.
When medicinal herb grower or pharmacist need to assess the upgrowth situation of medicinal material, the life of concurrent drug delivery material is shot by the terminal held
Long fact picture.
Step S172, the growth assessment information is sent to the terminal.
After the growth fact picture for receiving certain medicinal material of certain terminal transmission, the picture can be both shown, for professional
It studies and judges, obtains growth assessment information, can also be judged by intelligent algorithm live picture is grown, show that growth assessment is believed
Breath;The growth assessment information is sent to the terminal, the growth situation of medicinal material is understood convenient for medicinal herb grower or pharmacist.
The environmental warning method of provided in an embodiment of the present invention kind of production of crude drugs initiates early warning inquiry by terminal, then
Obtain corresponding with the medicinal material kind mark medicinal material place of production according to the medicinal material kind of terminal association mark, and with the medicinal material product
The corresponding environmental threshold value information of kind;And then the environmental parameter in the medicinal material place of production is obtained, judge whether to need to the kind medicinal material each
The production environment in the place of production makes early warning;When needing early warning, to terminal send warning information, convenient for hold the terminal medicinal herb grower,
Pharmacist understands the risk of the weather, soil environment that face during certain production of crude drugs process, such as plantation, storage in time, from
And corresponding measure is carried out in time, poor environment adverse effect caused by production of crude drugs is reduced or avoided.Monitoring range is wide, is not required to
Key medicine pesticide quotient have it is very high professional, conducive to during production of crude drugs environmental warning it is universal.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part, such as:
A kind of storage medium, the storage medium are stored with computer program, if the computer program is held by processor
The step of going, realizing the environmental warning method of aforementioned production of crude drugs.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, service
Device computer, handheld device or portable device, laptop device, multicomputer system, microprocessor-based system, machine top
Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, including any of the above system or equipment
Distributed computing environment etc., such as embodiment two.