Skip to content
Snippets Groups Projects
Commit fbf19044 authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

Usage and sample configuration

Added descriptive text for technical usage and sample configuration
parent e85260e1
Branches
Tags
1 merge request!2Bhabesh20200618
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -361,7 +361,7 @@ public class AlternariaModel extends I18nImpl implements Model{ ...@@ -361,7 +361,7 @@ public class AlternariaModel extends I18nImpl implements Model{
* *
* date : Expression date is undefined on line 20, column 19 in Templates/Classes/Code/GeneratedMethodBody. Expression time is undefined on line 20, column 27 in Templates/Classes/Code/GeneratedMethodBody. * date : Expression date is undefined on line 20, column 19 in Templates/Classes/Code/GeneratedMethodBody. Expression time is undefined on line 20, column 27 in Templates/Classes/Code/GeneratedMethodBody.
*/ */
return "TODO"; return this.getText("sampleconfig", Model.DEFAULT_LANGUAGE);
} }
/** /**
......
...@@ -19,7 +19,13 @@ name=TOMCAST (FAST - Dew) model ...@@ -19,7 +19,13 @@ name=TOMCAST (FAST - Dew) model
description=TODO description=TODO
statusInterpretation=The model's warning status will be green (no infection risk) until the accumulated risk value is 5 points below the threshold value that signifies an infection risk. From that value and until the threshold value is exceeded, the warning will be yellow (possible infection risk), and above that, the warning status will be red (high infection risk). statusInterpretation=The model's warning status will be green (no infection risk) until the accumulated risk value is 5 points below the threshold value that signifies an infection risk. From that value and until the threshold value is exceeded, the warning will be yellow (possible infection risk), and above that, the warning status will be red (high infection risk).
usage=TODO usage=Description of required input parameters:\n\
timeZone - What timezone the calculation is for. Necessary to calculate daily values from the provided hourly values. \
See this list of time zones: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones (Column "TZ")\n\
observations - list of weather data. The following parameters are required:\n\
* TM - Average temperature (Degrees Celcius)\n\
* BT - Leaf wetness (Minutes/hour) (IF you don't have leaf wetness, you must provide UM (relative humidity). Then we will calculate the leaf wetness.\n\
sprayingDate - (Optional) Farmers can choose multiple spraying dates (upto four spraying dates).
license= Copyright (c) 2020 NIBIO <http://www.nibio.no/>. \ license= Copyright (c) 2020 NIBIO <http://www.nibio.no/>. \
\ \
This file is part of Altenaria Model. \ This file is part of Altenaria Model. \
...@@ -36,3 +42,28 @@ NIBIO Open Source License for more details. \ ...@@ -36,3 +42,28 @@ NIBIO Open Source License for more details. \
You should have received a copy of the NIBIO Open Source License \ You should have received a copy of the NIBIO Open Source License \
along with Altenaria Model. If not, see <http://www.nibio.no/licenses/>. along with Altenaria Model. If not, see <http://www.nibio.no/licenses/>.
sampleconfig={ \n\
\t "loginInfo": { \n\
\t\t "username": "example", \n\
\t\t "password": "example" \n\
\t }, \n\
\t "modelId": "ALTERNARIA", \n\
\t "configParameters": { \n\
\t "timeZone": "Europe/Oslo", \n\
\t "observations": [ \n\
\t { \n\
\t\t "elementMeasurementTypeId": "TM", \n\
\t\t "logIntervalId": 1, \n\
\t\t "timeMeasured": "2018-08-11T00:00:00+02:00", \n\
\t\t "value": 10.46 \n\
\t }, \n\
\t { \n\
\t\t "elementMeasurementTypeId": "BT", \n\
\t\t "logIntervalId": 1, \n\
\t\t "timeMeasured": "2018-08-11T00:00:00+02:00", \n\
\t\t "value": 60.0 \n\
\t } \n\
\t ] \n\
\t } \n\
} \n\
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment