Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- var winston = require('winston'),
- soap = require('soap'),
- url = 'http://weather.rcware.eu:9876/WeatherForecast',
- args = {"licence":"myCompanyPrivateLicense", // sorry, i can't public this
- "forecastPointId":1,
- "timeStep":3600,
- "begin":"2013-07-01T05:57:16Z",
- "end":"2013-07-03T05:57:16Z",
- "variableCommonName":"TMAX-2m"
- };
- winston.add(winston.transports.File, {
- filename: './log/weather2.log',
- handleExceptions: true
- });
- soap.createClient(url, function(err, client) {
- if (err) {
- winston.log('error', err);
- }
- winston.log('info', client);
- /*client.GetWeatherDataInterval(args, function(err, result) {
- if (err) {
- winston.log('warn', err);
- }
- winston.log('info', result);
- });*/
- });
Advertisement
Add Comment
Please, Sign In to add comment