static void Main(string[] args)
        {
            var topHelper     = new TopProcessHelper();
            var sensorsHelper = new SensorsProcessHelper();

            while (true)
            {
                var sampling_time    = DateTime.Now;
                var usage_info       = topHelper.GetCurrentTopProcessReadings();
                var temperature_info = sensorsHelper.GetCurrentSensorsProcessReadings();
                ManageNewData(usage_info, temperature_info, sampling_time);
                ManageOldData(sampling_time);
                Thread.Sleep(60000
                             );
            }
        }
Example #2
0
 public TemperatureController() : base()
 {
     _sensorsHelper = new SensorsProcessHelper();
 }