Commit 445895cb authored by project's avatar project

--no commit message

--no commit message
parent 21e438ce
var request = require('request');
var request = require('request').defaults({ encoding: null });
function execute_function(context,response){
var job_id = context.jobconfig.job_id;
......
......@@ -47,6 +47,7 @@ function to_string(obj)
str_data = 'null';
}else if(obj instanceof Buffer){
str_data = obj.toString('base64');
//str_data = obj;
}else{
str_data = JSON.stringify(obj);
}
......
{
"job_id" : "img-dir",
"active" : true,
"trigger" : {
"type": "cron",
"cmd": "5,10,15,20,25,30,35,40,45,50,55,0 * * * *"
},
"data_in" : {
"type": "http-request",
"param": {
"url": "http://203.155.220.231/Radar/pics/zfiltered.jpg"
}
},
"data_transform" : {
"type": "noop"
},
"data_out" : {
"type": "dir",
"param": {
"path" : "D:/tmdimg"
}
}
}
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