public function command()
 {
     $geyser_id = Request::post('geyser_id');
     $element_select = Request::post('e');
     $gstate_select = Request::post('g');
     $schedule_select = Request::post('s');
     $settings_url = "http://localhost:8080/om2m/nscl/applications/geyser_" . $geyser_id . "/containers/SETTINGS/contentInstances";
     $schedule_url = "http://localhost:8080/om2m/nscl/applications/Scheduler/containers/SCHEDULE_" . $geyser_id . "/contentInstances";
     if (!empty($element_select)) {
         $data = '{"Gstate":' . '"' . $gstate_select . '"' . '}';
         DashboardController::doPOST($settings_url, $data);
     } else {
         if (!empty($gstate_select)) {
             $data = '{"Rstate":' . '"' . $element_select . '"' . '}';
             DashboardController::doPOST($settings_url, $data);
         } else {
             if (!empty($schedule_select)) {
                 if (strcmp($schedule_select, "low") == 0) {
                     $data = "40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40";
                 } else {
                     if (strcmp($schedule_select, "smart") == 0) {
                         $data = "35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,60,60,60,60,60,60,60,60,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,50,50,50,50,50,50,50,50,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35";
                     } else {
                         if (strcmp($schedule_select, "high") == 0) {
                             $data = "65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65";
                         }
                     }
                 }
                 DashboardController::doPOST($schedule_url, $data);
             }
         }
     }
     $this->View->render('dashboard/index');
 }