Summary of the invention
The embodiment of the present invention provides a kind of production of crude drugs weather warning method, electronic equipment and storage medium, is needing day
When gas early warning, weather warning information is sent, during the production of crude drugs for understanding certain region in time so as to manager, medicinal herb grower, pharmacist
The weather risk faced, monitoring range is wide, do not need medicinal herb grower pharmacist have it is very high professional, be conducive to production of crude drugs during day
Gas early warning is popularized.
First aspect of the embodiment of the present invention provides a kind of production of crude drugs weather warning method, comprising:
Obtain the weather parameters of default region;
Obtain medicinal material kind mark corresponding with the default region;
Obtain weather condition threshold value corresponding with the medicinal material kind mark;
Whether weather warning is needed according to the weather parameters and the weather condition threshold decision;
If desired weather warning generates and sends weather warning information.
In some embodiments, the weather warning information is sent to weather warning host and/or is located at described default
The terminal of region.
In some embodiments, the if desired weather warning generates and sends weather warning information, specifically includes:
If desired weather warning is associated with the terminal mark of the medicinal material kind mark according to the medicinal material kind identifier lookup
Know;
It is sent according to the terminal iidentification for being associated with the medicinal material kind mark to the terminal for being located at the default region
The weather warning information.
In some embodiments, the if desired weather warning generates and sends weather warning information, specifically includes:
If desired weather warning judges whether generated and be transmitted across weather warning information in preset time period;
If not generating and being transmitted across weather warning information in preset time period, is generated and sent according to the weather parameters
Weather warning information.
In some embodiments, the if desired weather warning generates and sends weather warning information, specifically further include:
If weather warning information has been generated and be transmitted across in preset time period, adjusted according to the weather parameters raw
At weather warning information, send weather warning information adjusted.
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, described to obtain weather 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 weather condition threshold value corresponding with medicinal material kind mark and the production phase information.
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, above-mentioned production of crude drugs weather warning method is realized
Step.
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 above-mentioned production of crude drugs weather warning method.
Compared with prior art, the beneficial effect of the embodiment of the present invention is: the weather parameters by obtaining default region, with
And the medicinal material kind of default region production, and then obtain weather condition threshold value corresponding with the medicinal material kind and be used as whether carry out day
The judgment criteria of gas early warning;When needing weather warning, weather warning information is sent;So that manager, medicinal herb grower, pharmacist are timely
The production of crude drugs process of certain region is solved, the weather risk faced during such as plantation, storage, so that corresponding measure is carried out in time,
Adverse weather adverse effect caused by production of crude drugs is reduced or avoided.Monitoring range is wide, does not need medicinal herb grower pharmacist with very high
It is professional, conducive to during production of crude drugs weather warning it is universal.
Embodiment one
If Fig. 1 is a kind of production of crude drugs weather warning method, comprising the following steps:
Step S110, the weather parameters of default region is obtained.
It is previously stored with the information of multiple regions in early warning list, as default region, such as Hebei province, is also possible to medicine
Anguo City, Baoding, the Chengde, Shijiazhuang City in the main place of production such as Hebei province of material.
According to preset sequence or according to the specified weather parameters for successively obtaining each default region in early warning list, so as to
It is subsequent to judge whether each default region needs weather warning.
In some possible embodiments, joined by weather interface task from the weather that weather server obtains default region
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, 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.
In some possible embodiments, the weather parameters includes that weather information data, historical weather data, weather are pre-
At least one of in count off evidence, disaster alarm data.Wherein weather information data are specially real-time weather, specifically can be by weather
Live and air quality task obtains;Historical weather data is the weather data of the past period, such as can be 24 hours
Rainfall can be obtained by weather information data accumulation;Data of weather forecast is the weather of a period of time in future, specifically can be by weather
Forecast and index number of price task obtain;Disaster alarm data for example can be the warning data of meteorological disaster, such as hail, typhoon
Deng can specifically be obtained by weather warning task.
Step S120, medicinal material kind mark corresponding with the default region is obtained.
For example, certain default region is Hebei province, the medicinal material kind of the default region plantation includes Radix Notoginseng, glutinous rehmannia, radix saposhnikoviae, north
The root of straight ladybell etc., therefore the corresponding medicinal material kind mark in this default region includes Radix Notoginseng, glutinous rehmannia, radix saposhnikoviae, Radix Glehniae etc. with Hebei province.
Step S130, weather condition threshold value corresponding with the medicinal material kind mark is obtained.
Medicinal material kind corresponding with the default region mark got according to step S120, such as glutinous rehmannia, radix saposhnikoviae, Radix Glehniae,
Obtain weather condition threshold value corresponding with the medicinal material kind mark.
In some possible embodiments, step S130 obtains weather condition threshold corresponding with the medicinal material kind mark
Value, such as can go rancid 30 degrees Celsius of temperature threshold value for storage stage high temperature corresponding with this medicinal material kind mark of glutinous rehmannia, or
Person's mildew air humidity threshold 65% corresponding with this windproof medicinal material kind mark.
In some possible embodiments, as shown in Fig. 2, including four weather threshold informations, each day in weather threshold library
Gas threshold information corresponds to corresponding production phase, such as plantation, harvest, storage stage.
Step S130 obtains weather condition threshold value corresponding with the medicinal material kind mark, 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 weather threshold library is inquired, show that Hebei province identifies glutinous rehmannia phase with medicinal material kind
The production phase information answered is storage stage, and production phase information corresponding with medicinal material kind mark Radix Glehniae is the plantation stage.
Step S132, weather condition threshold value corresponding with medicinal material kind mark and the production phase information is obtained.
Obtain weather condition threshold value corresponding with the storage stage of glutinous rehmannia: temperature is more than 30 degrees Celsius, and high temperature goes rancid;And
Weather condition threshold value 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 weather corresponding with production phase information
Condition threshold, convenient for filtering out the weather warning item that the current production phase needs to pay close attention to from the huge threshold library of data volume
Mesh improves specific aim, the timeliness of weather warning.
Step S140, 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.
In some possible embodiments, the weather condition threshold value include live threshold information, it is history threshold information, pre-
Report threshold information.
As preferred embodiment, step S140 according to the weather parameters and the weather condition threshold decision whether
Weather warning is needed, at least one of step S141- step S144 is specifically included.
Step S141, judge whether to need weather information pre- according to the weather information data and the live threshold information
It is alert.
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 S142, judge whether to need weather history pre- according to the historical weather data and the history threshold information
It is alert.
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 S143, judge whether to need weather forecast pre- according to the data of weather forecast and the threshold value information
It is alert.
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 it is judged as and needs weather forecast early warning, forecasts mildew risk, alerting prevention.
If step S144, 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.
Step S150, if desired weather warning generates and sends weather warning information.
In some possible embodiments, the weather warning information that step S150 is generated is sent to weather warning host
And/or the terminal positioned at the default region.
Weather warning information is sent to early warning host, is grasped convenient for manager and presets ground under current preset Rule of judgment
Domain, such as the weather warning situation of one or more medicinal materials in one or more medicinal materials place of production.The position of multiple terminals is stored in advance
Information, if desired weather warning, then send weather warning information to the terminal for being located at the default region.By weather warning information
It is sent to the terminal for being located at corresponding default region, convenient for default region, as medicinal herb grower, the pharmacist in certain medicinal material place of production understand currently in time
The weather risk faced during medicinal material production process under weather condition, such as plantation, storage, so that corresponding measure is carried out in time,
Adverse weather adverse effect caused by production of crude drugs is reduced or avoided.
In some possible embodiments, step S150 if desired weather warning generates and sends weather warning information, tool
Body includes:
Step S151, if desired weather warning, is associated with the medicinal material kind mark according to the medicinal material kind identifier lookup
The terminal iidentification of knowledge.
In some possible embodiments, the mark of medicinal material kind associated by multiple terminals has been stored in advance, has indicated terminal
Holder pays close attention to the production status that the medicinal material kind identifies corresponding medicinal material;The incidence relation that terminal is identified with medicinal material kind can pass through
It binds and realizes in terminal.
Step S152, the terminal iidentification of the medicinal material kind mark is associated with according to positioned at the default region
Terminal sends the weather warning information.
If desired weather warning, then according to medicinal material kind corresponding with default region identify and with the medicinal material kind mark pair
The terminal iidentification answered sends weather warning information to the corresponding terminal of terminal iidentification, that is, is associated with the end of medicinal material kind mark
End.
In some possible embodiments, it is illustrated in figure 3 the terminal being located in default region Hebei province and gets weather
The display interface of warning information.The medicinal material kind of the terminal association is identified as Radix Glehniae.The secondary weather warning includes weather forecast
Early warning, i.e. advance notice have thunder shower;Including weather disaster early warning, i.e. advance notice has hail weather;Further include storage weather warning, prompts
Temperature is more than 30 degrees Celsius, and medicinal material meeting high temperature goes rancid;It further include weather information early warning, prompting air humidity is more than that 65% medicinal material has
Risk of going mouldy etc..
In some possible embodiments, step S150 if desired weather warning generates and sends weather warning information, tool
Body includes:
Step S153, if desired weather warning judges whether generated and be transmitted across weather warning letter in preset time period
Breath.
If step S154, not generating and being transmitted across weather warning information in preset time period, according to the weather parameters
Generate and send weather warning information.
If step S140 needs weather warning, inquire in preset time period, such as the same day whether weather warning mistake,
Weather warning information is generated according to weather parameters, weather condition threshold value and suggestion content if not, and weather warning is believed
Breath is sent to weather warning host and/or the terminal positioned at the medicinal material place of production.
In some possible embodiments, step S150 if desired weather warning generates and sends weather warning information, tool
Body further include:
If step S155, having generated and being transmitted across weather warning information in preset time period, according to the weather parameters
The weather warning information generated is adjusted, weather warning information adjusted is sent.
If in preset time period, such as the same day weather warning mistake, then the corresponding information of weather warning information is modified,
Such as weather condition threshold value and suggestion content are upgraded, send weather warning information adjusted to weather warning host and/or position
Terminal in the medicinal material place of production, to prompt related personnel it is further noted that risk prevention system.
Production of crude drugs weather warning method provided in an embodiment of the present invention, by obtaining the weather parameters of default region, with
And the medicinal material kind of default region production, and then obtain weather condition threshold value corresponding with the medicinal material kind and be used as whether carry out day
The judgment criteria of gas early warning;When needing weather warning, weather warning information is sent;So that manager, medicinal herb grower, pharmacist are timely
The production of crude drugs process of certain region is solved, the weather risk faced during such as plantation, storage, so that corresponding measure is carried out in time,
Adverse weather adverse effect caused by production of crude drugs is reduced or avoided.Monitoring range is wide, does not need medicinal herb grower pharmacist with very high
It is professional, conducive to during production of crude drugs weather 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 aforementioned production of crude drugs weather warning method.
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.