Esempio n. 1
0
        static void Run(DateTime from, DateTime to)
        {
            var fromT = from.ToString("yyyy-MM-dd");
            Console.WriteLine("Starting {0} -> {1}", from, to);

            var wu = new Utils.WeatherUnderground.Downloader();
            var data = wu.WeatherData("Tokyo", from, to);

            var jsonsx = JsonConvert.SerializeObject(data);

            File.WriteAllText(string.Format(@"D:\Projects\GitHub\ema\Data\WeatherJapan-{0}.json", fromT), jsonsx);

            Console.WriteLine("Done year");
        }
Esempio n. 2
0
        static void Run(DateTime from, DateTime to)
        {
            var fromT = from.ToString("yyyy-MM-dd");

            Console.WriteLine("Starting {0} -> {1}", from, to);

            var wu   = new Utils.WeatherUnderground.Downloader();
            var data = wu.WeatherData("Tokyo", from, to);

            var jsonsx = JsonConvert.SerializeObject(data);

            File.WriteAllText(string.Format(@"D:\Projects\GitHub\ema\Data\WeatherJapan-{0}.json", fromT), jsonsx);

            Console.WriteLine("Done year");
        }