Commit 54c3a9ca authored by project's avatar project

--no commit message

--no commit message
parent 26843a44
...@@ -143,7 +143,7 @@ var job_config = { ...@@ -143,7 +143,7 @@ var job_config = {
} }
var ag = { var ag = {
"job_id" : "002", "job_id" : "agritronics-gistda-01",
"active" : true, "active" : true,
"trigger" : { "trigger" : {
"type": "cron", "type": "cron",
...@@ -152,14 +152,14 @@ var ag = { ...@@ -152,14 +152,14 @@ var ag = {
"data_in" : { "data_in" : {
"type": "agritronics", "type": "agritronics",
"profile": { "profile": {
"station_id": "GISDA-02", "station_id": "GISDA-01",
"latitude": "", "latitude": "",
"longitude": "" "longitude": ""
}, },
"param": { "param": {
"url": "http://agritronics.nstda.or.th/ws/get.php", "url": "http://agritronics.nstda.or.th/ws/get.php",
"appkey": "0c5a295bd8c07a081f4f0061eee6665c38", "appkey": "0c5a295bd8c07a081f4f0061eee6665c38",
"station_id": "GISTDA-02", "station_id": "GISTDA-01",
"data_types": [ "data_types": [
{"type": "1", "node_id": "4096"}, {"type": "1", "node_id": "4096"},
{"type": "2", "node_id": "4096"}, {"type": "2", "node_id": "4096"},
...@@ -172,7 +172,7 @@ var ag = { ...@@ -172,7 +172,7 @@ var ag = {
{"type": "2021", "node_id": "7328"}, {"type": "2021", "node_id": "7328"},
{"type": "2022", "node_id": "7328"} {"type": "2022", "node_id": "7328"}
], ],
"init_observed_date": "2017-03-21", "init_observed_date": "2017-03-20",
"init_observed_time": "12:00:00" "init_observed_time": "12:00:00"
} }
}, },
...@@ -184,6 +184,7 @@ var ag = { ...@@ -184,6 +184,7 @@ var ag = {
} }
} }
var JobTask = ctx.getLib('jobexecutor/lib/jobtask'); var JobTask = ctx.getLib('jobexecutor/lib/jobtask');
var job = new JobTask({ var job = new JobTask({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment