/** * Created by Martin on 15/02/2016. */ var http = require('http'), request = require('request'), calHandler = require('./calHandler'), util = require('util'); var jsonfile = require('jsonfile'); var log4js = require('log4js'); var logger = log4js.getLogger(); require('sugar-date'); var file = __dirname + '/' + 'cal.json'; function saveData(v) { jsonfile.writeFileSync(file, v); } module.exports = { getCal: function () { calHandler.getSimpleCalV2('https://www.tripit.com/feed/ical/private/DB96E4BB-94A9BD8F9CC1CF51C6CC0D920840F4F5/tripit.ics', function(v) { logger.debug(v) ; }); } }; module.exports.getCal();